Identifier

object Identifier

Configurable base parsers for identifiers in code blocks.

class Object
trait Matchable
class Any

Type members

Classlikes

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

Configurable base parser for identifiers in code blocks.

Configurable base parser for identifiers in code blocks.

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.

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.