diff --git a/test/--.tmcolor b/test/--.tmcolor new file mode 100644 index 0000000..47c1cf3 --- /dev/null +++ b/test/--.tmcolor @@ -0,0 +1,78 @@ +comment — for comments. +comment.line — line comments, we specialize further so that the type of comment start character(s) can be extracted from the scope. +comment.line.double-slash — // comment +comment.line.double-dash — -- comment +comment.line.number-sign — # comment +comment.line.percentage — % comment +comment.line.character — other types of line comments. +comment.block — multi-line comments like /* … */ and . +comment.block.documentation — embedded documentation. + +constant — various forms of constants. +constant.numeric — those which represent numbers, e.g. 42, 1.3f, 0x4AB1U. +constant.character — those which represent characters, e.g. <, \e, \031. +constant.escape — escape sequences like \e would be constant.character.escape. +constant.language — constants (generally) provided by the language which are “special” like true, false, nil, YES, NO, etc. +constant.other — other constants, e.g. colors in CSS. + +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. +entity.name — we are naming the larger entity. +entity.name.function — the name of a function. +entity.name.type — the name of a type declaration or class. +entity.name.tag — a tag name. +entity.name.section — the name is the name of a section/heading. +entity.other — other entities. +entity.other.inherited-class — the superclass/baseclass name. +entity.other.attribute-name — the name of an attribute (mainly in tags). + +invalid — stuff which is “invalid”. +invalid.illegal — illegal, e.g. an ampersand or lower-than character in HTML (which is not part of an entity/tag). +invalid.deprecated — for deprecated stuff e.g. using an API function which is deprecated or using styling with strict HTML. + +keyword — keywords (when these do not fall into the other groups). +keyword.control — mainly related to flow control like continue, while, return, etc. +keyword.operator — operators can either be textual (e.g. or) or be characters. +keyword.other — other keywords. + +markup — this is for markup languages and generally applies to larger subsets of the text. +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. +markup.bold — bold text (text which is strong and similar should preferably be derived from this name). +markup.heading — a section header. Optionally provide the heading level as the next element, for example markup.heading.2.html for