File: debcontrol.jsf

package info (click to toggle)
joe 4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,800 kB
  • ctags: 3,201
  • sloc: ansic: 49,924; sh: 4,279; makefile: 171; csh: 26
file content (61 lines) | stat: -rw-r--r-- 1,362 bytes parent folder | download | duplicates (4)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# JOE syntax highlight file for debian/control
# 2016-02-10 Thomas Goirand <zigo@debian.org>

=Idle
=Error          red bold
=Comment	green
=Field		cyan
=Versnum	cyan bold
=Var            magenta

# Start in headers. We know we're out at the first blank line.
:start Idle
        "#"     comment
        *       fieldname       noeat

:fieldname Field
#	*	main
        "#"     comment
        " "     main            noeat
#        "a-zA-Z_"	feildname

:field Field
        "#"     comment
        ":"     main
        "\n"    fieldname       noeat
        *       field

:main Idle
        "#"     comment
        "$"	subst		recolor=-1
        *       main
	"("	versnum		noeat
        " "     main
        "\n"    fieldname       noeat# strings
#        "Section:" fieldname
#done

:versnum Versnum
	"#"	comment
	".\ \:=()><~\+\-0-9a-z"	versnum
	")"	main
	"\n"	fieldname	noeat

:comment Comment
  *             comment         recolor=-2
  "\n"          main

:subst Var
        *               main noeat
        "("             main    recolor=-2 # don't try for now
        "{"             subst_brack
        "a-zA-Z_"       subst_name
        "0-9*@?\-$_!#"  main

:subst_name Var
        *               main            noeat recolor=-1
        "a-zA-Z0-9_"    subst_name

:subst_brack Var
        *               subst_brack
        "}"             main