Enum SyntaxTokenKind
What a token of source text is, as far as its spelling and its place in a line say: the classification a listing is highlighted by.
public enum SyntaxTokenKind
Fields
Comment = 1A comment: from the
'or theRemthat starts it to the end of the logical line.Identifier = 5A name: of a variable, a procedure, a type, a member. Which of them is not known from the spelling.
Keyword = 0A reserved word or a keyword of the language, as it is used as one (
Dim,If,Print).Number = 3A numeric literal, a date literal, or the line number that labels a line (MS-VBAL §3.3.2).
Operator = 4An operator or a delimiter (
+,=,().String = 2A string literal, with its quotes.
TypeName = 6The name of a type, where its place says it is one: after
As,As NeworImplements.
Remarks
A syntax token kind is lexical. It never says what a name means: that a word is an identifier is known from the text alone, while that it is the name of a constant is a fact of the module it is in, which a consumer adds (SemanticTokenLegend).