SyntaxRules defines the rules for parsing text for color coding.
Slots
- blockCommentEndSource
-
const Str? blockCommentEnd
End token for multi-line block comments
- blockCommentStartSource
-
const Str? blockCommentStart
Start token for multi-line block comments
- blockCommentsNestSource
-
const Bool blockCommentsNest := false
Can block comments be nested (default is false).
- bracketsSource
-
const Str brackets := "(){}[]"
Bracket characters defaults to "()[]{}".
- commentsSource
-
const Str[]? comments
Start tokens for single line comments to end of line (list of strings).
- keywordsSource
-
const Str[]? keywords
List of the keywords.
-
static internal SyntaxRules load(SyntaxOptions options, File? f, Str? firstLine)
- strsSource
-
const SyntaxStr[]? strs
String and character literal styles