2017-02-18 23:17:07 +03:00
|
|
|
filetype: keymap
|
|
|
|
|
2017-03-21 21:55:22 +03:00
|
|
|
detect:
|
2017-02-18 23:17:07 +03:00
|
|
|
filename: "\\.(k|key)?map$|Xmodmap$"
|
|
|
|
|
|
|
|
rules:
|
|
|
|
- statement: "\\b(add|clear|compose|keycode|keymaps|keysym|remove|string)\\b"
|
2017-03-21 21:55:22 +03:00
|
|
|
- identifier: "\\b(control|alt|shift)\\b"
|
2017-02-18 23:17:07 +03:00
|
|
|
- constant.number: "\\b[0-9]+\\b"
|
2017-03-21 21:55:22 +03:00
|
|
|
- symbol: "="
|
|
|
|
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
|
|
|
|
- comment: "^!.*$"
|
|
|
|
- indent-char.whitespace: "[[:space:]]+$"
|
|
|
|
- indent-char: " + +| + +"
|