micro/runtime/syntax/vi.yaml

14 lines
457 B
YAML
Raw Normal View History

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