X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fmakefile.yaml;h=7e90cdeb76aac90646299dbc6a0cb13f0d8673f6;hb=54c23cae72d7237bc898a59f79aad0acffdf0ffe;hp=da390ea331e644d036e87c6f0c4656aad21107e6;hpb=54bb99d7580cc1bc76507ce64ff78ef2038c8066;p=micro.git diff --git a/runtime/syntax/makefile.yaml b/runtime/syntax/makefile.yaml index da390ea3..7e90cdeb 100644 --- a/runtime/syntax/makefile.yaml +++ b/runtime/syntax/makefile.yaml @@ -7,8 +7,8 @@ detect: rules: - preproc: "\\<(ifeq|ifdef|ifneq|ifndef|else|endif)\\>" - statement: "^(export|include|override)\\>" - - operator: "^[^:= ]+:" - - operator: "([=,%]|\\+=|\\?=|:=|&&|\\|\\|)" + - symbol.operator: "^[^:= ]+:" + - symbol.operator: "([=,%]|\\+=|\\?=|:=|&&|\\|\\|)" - statement: "\\$\\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]" - statement: "\\$\\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]" - statement: "\\$\\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]" @@ -19,11 +19,13 @@ rules: - constant.string: start: "\"" end: "\"" + skip: "\\\\." rules: - constant.specialChar: "\\\\." - constant.string: start: "'" end: "'" + skip: "\\\\." rules: - constant.specialChar: "\\\\." - identifier: "\\$+(\\{[^} ]+\\}|\\([^) ]+\\))" @@ -33,3 +35,4 @@ rules: start: "#" end: "$" rules: [] +