Identifier

laika.parse.code.common.Identifier
object Identifier

Configurable base parsers for identifiers in code blocks.

Attributes

Source
Identifier.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Identifier.type

Members list

Type members

Classlikes

Configurable base parser for identifiers in code blocks.

Configurable base parser for identifiers in code blocks.

Attributes

Source
Identifier.scala
Supertypes
class Parser[CodeSpan]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

Parses an alphanumeric identifier; digits are not allowed as start characters.

Parses an alphanumeric identifier; digits are not allowed as start characters.

Other characters like underscore are not allowed by this base parser, but can be added to the returned instance with the withIdStartChars or withIdPartChars methods.

Attributes

Source
Identifier.scala
def forCharacterSets(startChars: Type[Char], partChars: Type[Char]): IdParser

Parses an identifier based on the specified character sets.

Parses an identifier based on the specified character sets.

Value parameters

partChars

the characters not allowed to appear as the first character, but at any other position of the identifier

startChars

the characters allowed to appear in any position of the identifier, including the first character

Attributes

Returns
Source
Identifier.scala

Concrete fields

Function that applies the TypeName category to identifiers starting with an uppercase letter, and the Identifier category to those starting with a lowercase letter.

Function that applies the TypeName category to identifiers starting with an uppercase letter, and the Identifier category to those starting with a lowercase letter.

Attributes

Source
Identifier.scala