init
This commit is contained in:
27
micro/syntax/keymap.yaml
Normal file
27
micro/syntax/keymap.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
filetype: keymap
|
||||
|
||||
detect:
|
||||
filename: "\\.(k|key)?map$|Xmodmap$"
|
||||
|
||||
rules:
|
||||
- statement: "\\b(add|clear|compose|keycode|keymaps|keysym|remove|string)\\b"
|
||||
- statement: "\\b(control|alt|shift)\\b"
|
||||
- constant.number: "\\b[0-9]+\\b"
|
||||
- special: "="
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
skip: "\\\\."
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- constant.string:
|
||||
start: "'"
|
||||
end: "'"
|
||||
skip: "\\\\."
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- comment:
|
||||
start: "^!"
|
||||
end: "$"
|
||||
rules: []
|
||||
|
||||
Reference in New Issue
Block a user