Remove remaining color-specific rules to reduce complexities

This commit is contained in:
2025-06-15 13:55:10 -04:00
parent a7fa7b7921
commit 3143b900ee
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ rules:
- constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
- constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
- identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
- cyan: "[\\(|\\)|/|+|\\-|\\*|\\[|.|,|;]"
- special: "[\\(|\\)|/|+|\\-|\\*|\\[|.|,|;]"
- statement: "\\b(break|case|catch|continue|default|delete|do|else|finally)\\b"
- statement: "\\b(for|function|get|if|in|instanceof|new|return|set|switch)\\b"
- statement: "\\b(switch|this|throw|try|typeof|var|void|while|with|const|let)\\b"
+2 -2
View File
@@ -17,8 +17,8 @@ rules:
- statement: "(flavor|echo|foreach|if|else|fi(;)?|elif|case|esac(;)?|for|done|shift|chmod|chown(info)?|pwd|join|lastword|notdir|or)[[:space:]]"
- statement: "\\$\\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
- statement: "\\$\\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
- red: "([[:space:]]|^)(rm|rmdir|exit)[[:space:]]"
- magenta: "([[:space:]]|^)(gcc|ld)[[:space:]]"
- keyword: "([[:space:]]|^)(rm|rmdir|exit)[[:space:]]"
- special: "([[:space:]]|^)(gcc|ld)[[:space:]]"
- type: "^.+:"
- identifier: "[()$]"
- constant.string:
+1 -1
View File
@@ -13,7 +13,7 @@ rules:
- type: "\\b(bool|bytearray|bytes|classmethod|complex|dict|enumerate|filter|float|frozenset|int|list|map|memoryview|object|property|range|reversed|set|slice|staticmethod|str|super|tuple|type|zip)\\b"
- identifier: "def [a-zA-Z_0-9]+"
- statement: "\\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\\b"
- brightgreen: "@.*[(]"
- special: "@.*[(]"
- statement: "([.:;,+*|=!\\%@]|<|>|/|-|&)"
- statement: "([(){}]|\\[|\\])"
- constant.number: "\\b[0-9]+\\b"