mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 06:30:28 +09:00
Add converted syntax files
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
filetype: makefile
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "([Mm]akefile|\\.ma?k)$"
|
||||
header: "^#!.*/(env +)?[bg]?make( |$)"
|
||||
|
||||
rules:
|
||||
- preproc: "\\<(ifeq|ifdef|ifneq|ifndef|else|endif)\\>"
|
||||
- statement: "^(export|include|override)\\>"
|
||||
- operator: "^[^:= ]+:"
|
||||
- operator: "([=,%]|\\+=|\\?=|:=|&&|\\|\\|)"
|
||||
- preproc: "\\b(ifeq|ifdef|ifneq|ifndef|else|endif)\\b"
|
||||
- preproc: "^(export|include|override)\\b"
|
||||
- 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:]]"
|
||||
@@ -16,20 +16,9 @@ rules:
|
||||
- statement: "\\$\\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
|
||||
- identifier: "^.+:"
|
||||
- identifier: "[()$]"
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- constant.string:
|
||||
start: "'"
|
||||
end: "'"
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
|
||||
- identifier: "\\$+(\\{[^} ]+\\}|\\([^) ]+\\))"
|
||||
- identifier: "\\$[@^<*?%|+]|\\$\\([@^<*?%+-][DF]\\)"
|
||||
- identifier: "\\$\\$|\\\\.?"
|
||||
- comment:
|
||||
start: "#"
|
||||
end: "$"
|
||||
rules: []
|
||||
- comment: "(^|[[:space:]])#([^{].*)?$"
|
||||
- comment: "^ @#.*"
|
||||
|
||||
Reference in New Issue
Block a user