This commit is contained in:
Leandro Afonso
2025-09-27 18:39:59 +01:00
commit f0cdef9259
1220 changed files with 77975 additions and 0 deletions

27
micro/syntax/keymap.yaml Normal file
View 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: []