lexer for history

This commit is contained in:
Jesse Portnoy committed 2023-11-01 12:18:12 +00:00
1 parent 5cbe31b3ce
commit e6ac037ec6
1 file changed
+10
+10
View File
@@ -0,0 +1,10 @@
filetype: history
detect:
filename: "(\\.history)"
rules:
- constant.number: "^\\s+\\d+\\s"
# export HISTTIMEFORMAT="%F %T: " to get the best highlighting
- preproc: "([0-9]{4}\\-[0-9]{2}\\-[0-9]{2}\\s[0-9]{2}:[0-9]{2}:[0-9]{2})"
- type: ":\\s.*$"