Add options to overwrite colors of certain C++ Attributes in files of
New entries will appear in
Fonts and Colors →
Each will begin with
C++ Attribute: prefix.
- Edit their color values, until you want to keep extension default ones (listed below).
- If you don't want to change some attribute's color at all, set it's
Item foreground value to
|Default Attributes without extension
||Color Attributes with extension enabled
In order to provide fast execution, some rare syntax patterns are not supported by extension right now.
There are no plans to waive those restrictions until intellisense shall classify C++ attributes.
Due to high cost of parsing
balanced-token, extension non greedily matches anything between
SnapshotSpan, splits content by
, and trims, then finally matches standard attributes. Thus, attribute containing nested double squares can be incorrectly colored, eg
Comments in attributes are not supported. They are treated as text for faster execution. This can cause some attributes to be incorrectly colored, eg
[[using/*civ1*/civ2: fast, nodiscard]].
If multiline attribute will be split into multiple spans upon classification, it won't be matched at all.
deprecated attribute's reason, if present, must be enclosed in
", and such created
string-literal can be prefixed by any number of characters different than
[[deprecated(u8"Use API v2 instead.")]], but not
Contract's expression can not contain
]]. Parsing expression could be too complex and expensive for this simple extension, eg
[[ensures axiom R: Internal::TextDB::EntryExists("[[" + R + "]]")]].