Table of Contents

Enum TextMateElementSource.Group

Namespace
Sccg.Builtin.Sources
Assembly
Sccg.Builtin.dll
public enum TextMateElementSource.Group

Fields

Comment = 0

comment ― for comments.

CommentBlock = 7

comment.block ― multi-line comments like /* … */ and .

CommentBlockDocumentation = 8

comment.block.documentation ― embedded documentation.

CommentLine = 1

comment.line ― line comments, we specialize further so that the type of comment start character(s) can be extracted from the scope.

CommentLineCharacter = 6

comment.line.character ― other types of line comments.

CommentLineDouble_dash = 3

comment.line.double-dash ― -- comment

CommentLineDouble_slash = 2

comment.line.double-slash ― // comment

CommentLineNumber_sign = 4

comment.line.number-sign ― # comment

CommentLinePercentage = 5

comment.line.percentage ― % comment

Constant = 9

constant ― various forms of constants.

ConstantCharacter = 11

constant.character ― those which represent characters, e.g. <, \e, \031.

ConstantCharacterEscape = 12

constant.character.escape ― escape sequences like \e would be constant.character.escape.

ConstantLanguage = 13

constant.language ― constants (generally) provided by the language which are “special” like true, false, nil, YES, NO, etc.

ConstantNumeric = 10

constant.numeric ― those which represent numbers, e.g. 42, 1.3f, 0x4AB1U.

ConstantOther = 14

constant.other ― other constants, e.g. colors in CSS.

Entity = 15

entity ― an entity refers to a larger part of the document, for example a chapter, class, function, or tag. We do not scope the entire entity as entity.* (we use meta.* for that). But we do use entity.* for the “placeholders” in the larger entity, e.g. if the entity is a chapter, we would use entity.name.section for the chapter title.

EntityName = 16

entity.name ― we are naming the larger entity.

EntityNameFunction = 17

entity.name.function ― the name of a function.

EntityNameSection = 20

entity.name.section ― the name is the name of a section/heading.

EntityNameTag = 19

entity.name.tag ― a tag name.

EntityNameType = 18

entity.name.type ― the name of a type declaration or class.

EntityOther = 21

entity.other ― other entities.

EntityOtherAttribute_name = 23

entity.other.attribute-name ― the name of an attribute (mainly in tags).

EntityOtherInherited_class = 22

entity.other.inherited-class ― the superclass/baseclass name.

Invalid = 24

invalid ― stuff which is “invalid”.

InvalidDeprecated = 26

invalid.deprecated ― for deprecated stuff e.g. using an API function which is deprecated or using styling with strict HTML.

InvalidIllegal = 25

invalid.illegal ― illegal, e.g. an ampersand or lower-than character in HTML (which is not part of an entity/tag).

Keyword = 27

keyword ― keywords (when these do not fall into the other groups).

KeywordControl = 28

keyword.control ― mainly related to flow control like continue, while, return, etc.

KeywordOperator = 29

keyword.operator ― operators can either be textual (e.g. or) or be characters.

KeywordOther = 30

keyword.other ― other keywords.

Markup = 31

markup ― this is for markup languages and generally applies to larger subsets of the text.

MarkupBold = 34

markup.bold ― bold text (text which is strong and similar should preferably be derived from this name).

MarkupHeading = 35

markup.heading ― a section header. Optionally provide the heading level as the next element, for example markup.heading.2.html for

in HTML.
MarkupItalic = 36

markup.italic ― italic text (text which is emphasized and similar should preferably be derived from this name).

MarkupList = 37

markup.list ― list items.

MarkupListNumbered = 38

markup.list.numbered ― numbered list items.

MarkupListUnnumbered = 39

markup.list.unnumbered ― unnumbered list items.

MarkupOther = 42

markup.other ― other markup constructs.

MarkupQuote = 40

markup.quote ― quoted (sometimes block quoted) text.

MarkupRaw = 41

markup.raw ― text which is verbatim, e.g. code listings. Normally spell checking is disabled for markup.raw.

MarkupUnderline = 32

markup.underline ― underlined text.

markup.underline.link ― this is for links, as a convenience this is derived from markup.underline so that if there is no theme rule which specifically targets markup.underline.link then it will inherit the underline style.

Meta = 43

meta ― the meta scope is generally used to markup larger parts of the document. For example the entire line which declares a function would be meta.function and the subsets would be storage.type, entity.name.function, variable.parameter etc. and only the latter would be styled. Sometimes the meta part of the scope will be used only to limit the more general element that is styled, most of the time meta scopes are however used in scope selectors for activation of bundle items. For example in Objective-C there is a meta scope for the interface declaration of a class and the implementation, allowing the same tab-triggers to expand differently, depending on context.

Storage = 44

storage ― things relating to “storage”.

StorageModifier = 46

storage.modifier ― a storage modifier like static, final, abstract, etc.

StorageType = 45

storage.type ― the type of something, class, function, int, var, etc.

String = 47

string ― strings.

StringInterpolated = 54

string.interpolated ― strings which are “evaluated”: date, $(pwd).

StringOther = 56

string.other ― other types of strings (should rarely be used).

StringQuoted = 48

string.quoted ― quoted strings.

StringQuotedDouble = 50

string.quoted.double ― double quoted strings: "foo".

StringQuotedOther = 52

string.quoted.other ― other types of quoting: $'shell', %s{...}.

StringQuotedSingle = 49

string.quoted.single ― single quoted strings: 'foo'.

StringQuotedTriple = 51

string.quoted.triple ― triple quoted strings: """Python""".

StringRegexp = 55

string.regexp ― regular expressions: /(\w+)/.

StringUnquoted = 53

string.unquoted ― for things like here-docs and here-strings.

Support = 57

support ― things provided by a framework or library should be below support.

SupportClass = 59

support.class ― when the framework/library provides classes.

SupportConstant = 61

support.constant ― constants (magic values) provided by the framework/library.

SupportFunction = 58

support.function ― functions provided by the framework/library. For example NSLog in Objective-C is support.function.

SupportOther = 63

support.other ― the above should be exhaustive, but for everything else use support.other.

SupportType = 60

support.type ― types provided by the framework/library, this is probably only used for languages derived from C, which has typedef (and struct). Most other languages would introduce new types as classes.

SupportVariable = 62

support.variable ― variables provided by the framework/library. For example NSApp in AppKit.

Variable = 64

variable ― variables. Not all languages allow easy identification (and thus markup) of these.

VariableLanguage = 66

variable.language ― reserved language variables like this, super, self, etc.

VariableOther = 67

variable.other ― other variables, like $some_variables.

VariableParameter = 65

variable.parameter ― when the variable is declared as the parameter.