D and vi syntax files

This commit is contained in:
Colin Rioux
2017-02-16 18:51:26 -05:00
parent b4bdad79e1
commit 294dc2415b
2 changed files with 146 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
filetype: vi
detect:
filename: "(^|/|\\.)(ex|vim)rc$|\\.vim"
rules:
- identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
- statement: "\\b([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\\b"
- statement: "\\b(snor|nun|nm|set|if|endif|let|unlet)\\b"
- statement: "[!&=]"
- constant.number: "\\b[0-9]+\\b"
- constant.string:
start: "\""
end: "\""
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "'"
rules:
- constant.specialChar: "\\\\."
- constant.comment:
start: "\""
end: "$"
rules: []