aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/lexers/git.tes
blob: d4c3aa2eb069efcf9c83e828cf204bdf9fef3a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
!*
 * 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]{[:
  :M[color.comment],1M[color.set]

  J< .-Z"= 1; '
    0A-#"= ESSTARTSTYLING 1,(Q.lESLINELENGTH)ESSETSTYLING '
  :L; %.l>
]:}