File: gitcommit

package info (click to toggle)
dte 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,152 kB
  • sloc: ansic: 28,421; sh: 94; awk: 56; makefile: 13; sed: 1
file content (40 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
37
38
39
40
syntax gitcommit

state start text
    char # comment-start
    noeat text

state text
    char "\n" start
    eat this

state comment-start comment
    char "\n" start
    char "\t" newfile comment
    str ' On branch ' branch comment
    str ' Changes to be committed:' comment added
    str ' Changed but not updated:' comment modified
    str ' Untracked files:' comment untracked
    eat comment

state comment
    char "\n" start
    eat this

state branch notice
    char "\n" start
    eat this

# Label or new file, not known yet
state newfile
    # Buffer anything but \n or :
    char "\n" start
    # Anything else but : (-n inverts bitmap)
    char -bn : this
    # Recolor buffered bytes to label
    recolor label
    noeat file

state file
    char "\n" start
    eat this