2017-02-18 23:17:07 +03:00
|
|
|
filetype: vi
|
|
|
|
|
2017-03-21 21:55:22 +03:00
|
|
|
detect:
|
2017-02-18 23:17:07 +03: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 21:55:22 +03:00
|
|
|
- symbol.operator: "[!&=]"
|
|
|
|
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
|
2017-02-18 23:17:07 +03:00
|
|
|
- constant.number: "\\b[0-9]+\\b"
|
2017-03-21 21:55:22 +03:00
|
|
|
- comment: "(^|[[:space:]])\\\"[^\"]*$"
|