Identifier

laika.parse.code.common.Identifier$
object Identifier

Configurable base parsers for identifiers in code blocks.

Attributes

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

Members list

Type members

Classlikes

case class IdParser(idStartChars: Type[Char], nonStartChars: Type[Char], category: String => CodeCategory, prefixParser: Option[PrefixedParser[String]], allowDigitBeforeStart: Boolean) extends PrefixedParser[CodeSpan], CodeSpanParser

Configurable base parser for identifiers in code blocks.

Configurable base parser for identifiers in code blocks.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
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

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