]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/keymap.yaml
Merge branch 'PR-find-on-type' of https://github.com/ilius/micro into ilius-PR-find...
[micro.git] / runtime / syntax / keymap.yaml
1 filetype: keymap
2
3 detect:
4     filename: "\\.(k|key)?map$|Xmodmap$"
5
6 rules:
7     - statement: "\\b(add|clear|compose|keycode|keymaps|keysym|remove|string)\\b"
8     - statement: "\\b(control|alt|shift)\\b"
9     - constant.number: "\\b[0-9]+\\b"
10     - special: "="
11     - constant.string:
12         start: "\""
13         end: "\""
14         skip: "\\\\."
15         rules:
16             - constant.specialChar: "\\\\."
17     - constant.string:
18         start: "'"
19         end: "'"
20         skip: "\\\\."
21         rules:
22             - constant.specialChar: "\\\\."
23     - comment:
24         start: "^!"
25         end: "$"
26         rules: []
27