blob: 491ec1eaa3344a5cc7b4e3e8263427b089af3e59 (
plain)
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
27
28
29
30
|
!*
* Git commit and rebase messages
*
* NOTE: This is not a real lexer.
* It only styles the document once.
*!
@[lexer.test.git]{
:EN*/COMMIT_EDITMSGQ*"S -1 '
:EN*/TAG_EDITMSGQ*"S -1 '
:EN*/MERGE_MSGQ*"S -1 '
:EN*/git-rebase-todoQ*
}
@[lexer.set.git]{[:
1ESSETWRAPMODE
:M[color.comment],1M[color.set]
J< .-Z"= 1; '
0A-#"=
ESSTARTSTYLING 1,(Q.lESLINELENGTH)ESSETSTYLING
!* only the first line gets the fold level header *!
-2ESGETSTYLEINDEXAT-1"N 1024#(2^*13) | 1025 ',Q.lESSETFOLDLEVEL
'
!* empty line *!
0A-10"= 1024#(2^*12),Q.lESSETFOLDLEVEL '
:L; %.l>
]:}
|