TODO: I need to expand this, but for now I just want to document the
common syntax classes...
=Idle
=Ident
=Bad
=DefinedIdent +Ident
=DefinedFunction +DefinedIdent
DefinedIdent
. This is the identifier in a function=DefinedType +DefinedIdent
DefinedIdent
. This is the identifier in a type=Label +DefinedIdent
=Preproc
=Precond +Preproc
=Define +DefinedIdent +Preproc
=Include +Preproc
=IncLocal +String +Preproc
=IncSystem +Preproc +Keyword
=Attribute +Define +Preproc
=Comment
=TODO +Comment
=Constant
=Number +Constant
=Boolean +Constant
true
or false
=String +Constant
=Escape
=StringEscape +Escape +String
=Character +String +Constant
=CharacterEscape +StringEscape +Character
=Regex +String
=Variable +Escape
$foo
or %bar%
=Docstring +Comment
=DocstringLabel +Docstring
TODO
in docstrings in Python. Should be renamed.=DocEscape +Escape +Docstring
=StringVariable +StringEscape
=Keyword
=Statement +Keyword
for
, if
, switch
, etc in C.=Loop +Statement
=Conditional +Statement
=Operator +Keyword
in
, is
, etc+
, *
, -
, /
, etc. Those are typically handled by Control
.=Type
=StorageClass +Type +Keyword
volatile
, static
,const
, etc.=Structure +Type +Keyword
struct
, class
, etc.=Brace
{
, }
=Control
(Yes, the bases are weird for diff)
=diff.DelLine +Escape
=diff.AddLine +DefinedIdent
=diff.ChgLine +Preproc
=CppKeyword +Keyword
=Tag +DefinedFunction +DefinedIdent
=TagName +Tag
=TagEnd +Tag
=Attr +Type
=Entity +Escape
=StringEntity +StringEscape +Entity
=Namespace +Comment
More in XML and HTML:
* PIStart
, PIBody
, PIEnd
* CdataEdge
, CdataBody
* Decl