2017-02-18 20:17:07 +00:00
|
|
|
filetype: vi
|
|
|
|
|
|
2017-03-21 19:07:39 +00:00
|
|
|
detect:
|
2017-02-18 20:17:07 +00:00
|
|
|
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"
|
2017-03-21 19:07:39 +00:00
|
|
|
- statement: "[!&=]"
|
2017-02-18 20:17:07 +00:00
|
|
|
- constant.number: "\\b[0-9]+\\b"
|
2017-03-21 19:07:39 +00:00
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
|
start: "\""
|
2017-03-28 00:53:08 +00:00
|
|
|
end: "\""
|
2017-03-29 13:45:16 +00:00
|
|
|
skip: "\\\\."
|
2017-03-21 19:07:39 +00:00
|
|
|
rules:
|
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
|
start: "'"
|
2017-03-28 00:53:08 +00:00
|
|
|
end: "'"
|
2017-03-29 13:45:16 +00:00
|
|
|
skip: "\\\\."
|
2017-03-21 19:07:39 +00:00
|
|
|
rules:
|
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
2019-10-26 08:51:38 +00:00
|
|
|
- comment:
|
2017-03-21 19:07:39 +00:00
|
|
|
start: "\""
|
|
|
|
|
end: "$"
|
|
|
|
|
rules: []
|
|
|
|
|
|
2017-03-22 23:03:06 +00:00
|
|
|
|