2017-02-18 23:17:07 +03:00
|
|
|
filetype: vi
|
|
|
|
|
2017-03-21 22:07:39 +03:00
|
|
|
detect:
|
2017-02-18 23:17:07 +03:00
|
|
|
filename: "(^|/|\\.)(ex|vim)rc$|\\.vim"
|
|
|
|
|
|
|
|
rules:
|
2023-06-06 03:39:12 +03:00
|
|
|
- identifier: "[A-Za-z_][A-Za-z0-9_]*[(]+[A-Za-z0-9_:.,\\s]*[)]+"
|
|
|
|
- special: "[()]+"
|
2017-02-18 23:17:07 +03:00
|
|
|
- statement: "\\b([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\\b"
|
2023-06-06 03:39:12 +03:00
|
|
|
- statement: "\\b(snor|nun|nm|set|if|endif|let|unlet|source)\\b"
|
|
|
|
- statement: "[!&=?]"
|
2017-02-18 23:17:07 +03:00
|
|
|
- constant.number: "\\b[0-9]+\\b"
|
2017-03-21 22:07:39 +03:00
|
|
|
|
2023-06-06 03:39:12 +03:00
|
|
|
- comment:
|
|
|
|
start: "(^\"|[ \t]+\" |[ \t]+\"$)"
|
|
|
|
end: "$"
|
|
|
|
rules: []
|
|
|
|
|
2017-03-21 22:07:39 +03:00
|
|
|
- constant.string:
|
|
|
|
start: "\""
|
2017-03-28 03:53:08 +03:00
|
|
|
end: "\""
|
2017-03-29 16:45:16 +03:00
|
|
|
skip: "\\\\."
|
2017-03-21 22:07:39 +03:00
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
start: "'"
|
2017-03-28 03:53:08 +03:00
|
|
|
end: "'"
|
2017-03-29 16:45:16 +03:00
|
|
|
skip: "\\\\."
|
2017-03-21 22:07:39 +03:00
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\."
|