mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-02 07:07:15 -04:00
lexer for history
This commit is contained in:
@@ -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.*$"
|
||||||
Reference in New Issue
Block a user