mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-19 21:10:15 +02:00
cfengine3: Removed rule attempting to highlight variable names
This rule is problematic for 2 reasons: * The regex is buggy, it doesn't work for more advanced cases when there are other attributes before slist, or string, or whatever the type is. * In the context of CFEngine policy language, it's just a bit confusing. Yes, they are variable names, but they are also quoted strings, and what we call promisers. It looks better, more consistent and less confusing if they are highlighted in the same way as other strings and promisers. Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
This commit is contained in:
parent
111921a080
commit
6538430570
@ -70,18 +70,6 @@
|
|||||||
<token type="NameFunction"/>
|
<token type="NameFunction"/>
|
||||||
</bygroups>
|
</bygroups>
|
||||||
</rule>
|
</rule>
|
||||||
<rule pattern="(")([^"]+)(")(\s+)(string|slist|int|real)(\s*)(=>)(\s*)">
|
|
||||||
<bygroups>
|
|
||||||
<token type="Punctuation"/>
|
|
||||||
<token type="NameVariable"/>
|
|
||||||
<token type="Punctuation"/>
|
|
||||||
<token type="Text"/>
|
|
||||||
<token type="KeywordType"/>
|
|
||||||
<token type="Text"/>
|
|
||||||
<token type="Operator"/>
|
|
||||||
<token type="Text"/>
|
|
||||||
</bygroups>
|
|
||||||
</rule>
|
|
||||||
<rule pattern="(\S+)(\s*)(=>)(\s*)">
|
<rule pattern="(\S+)(\s*)(=>)(\s*)">
|
||||||
<bygroups>
|
<bygroups>
|
||||||
<token type="KeywordReserved"/>
|
<token type="KeywordReserved"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user