Scopes class abstract final

Standard scope names used by the built-in grammars and themes.

Scopes are plain dotted strings, so grammars may use any name. A theme resolves a.b.c by trying a.b.c, then a.b, then a, so a custom scope such as keyword.control.flow still picks up the keyword style.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

addition → const String
An added line in a diff.
attribute → const String
A markup attribute name.
code → const String
Inline or block code inside prose.
comment → const String
A comment.
commentDoc → const String
A documentation comment.
deletion → const String
A removed line in a diff.
emphasis → const String
Emphasized (italic) text.
function → const String
A function or method name.
heading → const String
A document heading.
interpolation → const String
An interpolated expression inside a string, such as ${x}.
invalid → const String
Invalid or illegal syntax.
keyword → const String
A reserved word.
A link or URL.
literal → const String
A literal constant such as true, false or null.
meta → const String
Metadata such as annotations, attributes or preprocessor directives.
number → const String
A numeric literal.
operator → const String
An operator.
property → const String
A property or object key.
punctuation → const String
Punctuation such as brackets and separators.
quote → const String
A quotation.
regexp → const String
A regular expression literal.
string → const String
A string literal, including its delimiters.
stringEscape → const String
An escape sequence inside a string, such as \n.
strong → const String
Strong (bold) text.
tag → const String
A markup tag name.
type → const String
A type name.
typeBuiltin → const String
A type provided by the language or its core library.
variable → const String
A variable reference, such as $HOME in a shell script.
variableLanguage → const String
A language-defined variable such as this or super.