SyntaxKind Enum

Identifies the kind of regular-expression syntax node, token, or trivia.

public enum SyntaxKind

Fields

NameValueDescription
None0
List1A sequence of children held in one slot. Shared by every language, and so fixed at 1.
Pattern2
Alternation3
Sequence4
Quantified5
SimpleQuantifier6
RangeQuantifier7
SkippedText8
Literal9
CharacterEscape10
CharacterClassEscape11
UnicodeCategory12
AnyCharacter13
Anchor14
QuotedLiteral15
Backreference16
NamedBackreference17
InlineOptions18
Recursion19
BacktrackingVerb20
CharacterClass21
CharacterRange22
PosixCharacterClass23
CollatingElement24
ClassSubtraction25
ClassSetOperation26
ClassStringLiteral27
CapturingGroup28
NamedGroup29
BalancingGroup30
NonCapturingGroup31
AtomicGroup32
OptionsGroup33
BranchResetGroup34
Lookaround35
Conditional36
ConditionalReference37
Callout38
LiteralToken39A single ordinary character that matches itself.
EscapeToken40A complete character escape such as \n, \x41, A, \cA, or \052.
ClassEscapeToken41A shorthand class escape: \d, \D, \w, \W, \s, or \S.
AnchorToken42An anchor: ^, $, \b, \B, \A, \Z, \z, \G, or \K.
DotToken43
BarToken44
AsteriskToken45
PlusToken46
QuestionToken47
OpenBraceToken48
CloseBraceToken49
CommaToken50
NumberToken51The digits of a {n,m} bound.
OpenParenToken52
CloseParenToken53
OpenBracketToken54
CloseBracketToken55
CaretToken56The ^ that negates a character class.
HyphenToken57The - of a character range or of a .NET class subtraction.
GroupKindToken58The marker that follows ( and selects the group kind, such as ?:, ?>, or ?<=.
OptionsToken59An inline option run such as imnsx-imnsx.
ColonToken60The : that ends the header of an options group.
NameToken61A capture-group or backreference name.
OpenNameToken62The < or ' that introduces a name.
CloseNameToken63The > or ' that ends a name.
BackreferenceToken64A numbered backreference such as \1.
NamedBackreferenceStartToken65The \k that introduces a named backreference.
CategoryStartToken66The \p or \P that introduces a Unicode category or block.
CategoryNameToken67
QuoteStartToken68The \Q that starts a quoted literal run.
QuoteTextToken69
QuoteEndToken70The \E that ends a quoted literal run.
PosixClassStartToken71The [:, [., or [= that opens a POSIX bracket expression.
PosixClassNameToken72
PosixClassEndToken73The :], .], or =] that closes a POSIX bracket expression.
RecursionToken74The body of a PCRE recursion construct such as R or 1 in (?R) and (?1).
VerbToken75A PCRE backtracking verb such as *SKIP.
CalloutToken76The body of a PCRE callout, such as the 1 of (?C1).
ClassSetOperatorToken77A JavaScript v-mode class set operator: && or --.
SlashToken78The / delimiter of a JavaScript regular-expression literal.
FlagsToken79The flag letters that follow a JavaScript regular-expression literal.
BadToken80Text the parser could not recognize. Kept so the pattern still round-trips.
EndOfPatternToken81
WhitespaceTrivia82Whitespace that is insignificant because extended mode is in effect.
PatternCommentTrivia83An extended-mode # comment, up to but not including the terminating line feed.
InlineCommentTrivia84A (?#…) comment. Recognized in every mode, not only in extended mode.