Highlight more keywords

This commit is contained in:
Jesse Portnoy
2023-07-19 16:40:38 +01:00
parent b5d8dddab5
commit 3737694512
+4 -3
View File
@@ -9,12 +9,13 @@ rules:
- statement: "^(export|include|override)\\>" - statement: "^(export|include|override)\\>"
- operator: "^[^:= ]+:" - operator: "^[^:= ]+:"
- operator: "([=,%]|\\+=|\\?=|:=|&&|\\|\\|)" - operator: "([=,%]|\\+=|\\?=|:=|&&|\\|\\|)"
- statement: "\\$\\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]" - statement: "\\$\\((abspath|addprefix|addsuffix|and|basename|call|dir|mkdir)[[:space:]]"
- statement: "\\$\\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]" - statement: "(([a-z]+(-)?)?install(-)?([a-z]+)?(-)?([a-z]+))"
- statement: "\\$\\((error|eval|filter|filter-out|findstring|firstword|case|esac|if|else|for|done|shift)[[:space:]]"
- statement: "\\$\\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]" - statement: "\\$\\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
- statement: "\\$\\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]" - statement: "\\$\\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
- statement: "\\$\\((value|warning|wildcard|word|wordlist|words)[[:space:]]" - statement: "\\$\\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
- identifier: "^.+:" - type: "^.+:"
- identifier: "[()$]" - identifier: "[()$]"
- constant.string: - constant.string:
start: "\"" start: "\""