-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathqash.vim
More file actions
26 lines (21 loc) · 758 Bytes
/
qash.vim
File metadata and controls
26 lines (21 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if exists("b:current_syntax")
finish
endif
syntax clear
syntax match qashCommand "!open-account\|!import"
syntax match qashKeyword "asset\|expense\|equity\|income\|liability"
syntax match qashNumber "-\?[0-9,]\+"
syntax match qashDate "\d\{4}-\d\{2}-\d\{2}"
syntax match qashLineComment "//.\+"
syntax match qashTag "#.\+"
syntax region qashRangeComment start="(\*" end="\*)" contains=qashRangeComment
syntax region qashQuote start="\"" end="\""
highlight link qashCommand Keyword
highlight link qashKeyword Type
highlight link qashNumber Number
highlight link qashDate Constant
highlight link qashQuote String
highlight link qashLineComment Comment
highlight link qashRangeComment Comment
highlight link qashTag Label
let b:current_syntax = "qash"