Vixen
02b45cc4
csharp
public enum CodeTokenKind

What a run of characters is, as far as colouring it is concerned.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ A presentation category, not a parse. These are the distinctions a reader's eye uses, which is a much smaller set than a language's grammar — and deliberately so: a highlighter that reported syntax nodes would have to be a parser, would have to be one per language, and would have to be right about a file that is half-typed. Every kind here is written through to a class the theme selects on, in the same way ControlVariant is.

Fields and properties (8)

  • Plain

    Anything with no opinion about it, including whitespace.

  • Keyword

    A reserved word.

  • Type

    A type name, by whatever rule the tokenizer uses.

  • Number

    A numeric literal.

  • String

    A string or character literal.

  • Comment

    A comment, of either shape.

  • Operator

    An operator or a bracket.

  • Directive

    A preprocessor line, an attribute, an annotation.

Used by (6)

  • CStyleTokenizerVixen.Ui.Controls.Advanced
  • CodeEditorTestsVixen.Ui.Controls.Advanced.Tests
  • CodeSpanVixen.Ui.Controls.Advanced
  • CodeTokenVixen.Ui.Controls.Advanced
  • CodeTokenizerTestsVixen.Ui.Controls.Advanced.Tests
  • PlainTokenizerVixen.Ui.Controls.Advanced