]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/vi.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / vi.yaml
1 filetype: vi
2
3 detect:
4     filename: "(^|/|\\.)(ex|vim)rc$|\\.vim"
5
6 rules:
7     - identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
8     - statement: "\\b([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\\b"
9     - statement: "\\b(snor|nun|nm|set|if|endif|let|unlet)\\b"
10     - statement: "[!&=]"
11     - constant.number: "\\b[0-9]+\\b"
12
13     - constant.string:
14         start: "\""
15         end: "\""
16         skip: "\\\\."
17         rules:
18             - constant.specialChar: "\\\\."
19
20     - constant.string:
21         start: "'"
22         end: "'"
23         skip: "\\\\."
24         rules:
25             - constant.specialChar: "\\\\."
26
27     - comment:
28         start: "\""
29         end: "$"
30         rules: []
31         
32