micro/runtime/syntax/keymap.yaml

15 lines
420 B
YAML
Raw Normal View History

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