-
Notifications
You must be signed in to change notification settings - Fork 17
/
ini.jsf
104 lines (83 loc) · 2.07 KB
/
ini.jsf
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# JOE syntax highlight file for INI files
# License: GPL v2 or any later version
# by Christian Nicolai (http://mycrobase.de)
# contributions by Todd Lewis (https://github.com/utoddl)
=Idle
=Comment green
=Constant cyan
=Escape bold cyan
=Bad bold red
=Key
=Separator bold
=Section bold magenta
=SectionBracket bold magenta
:line_start Idle
* key noeat mark
"\n" line_start
" \t\r" line_start # leading spaces
";#" line_comment recolor=-1
"[" section_start noeat
"=" missing_key recolor=-1
:line_comment Comment
* line_comment
"\n" line_start
:section_start SectionBracket
* section mark noeat
"[" section_start
:section Section
* section
"]" section_end noeat
"\n" unexpected_end noeat recolormark
:section_end SectionBracket
* unexpected_end noeat
"]" section_end mark
"\n" line_start
:unexpected_end Bad
* unexpected_end
"\n" line_start
:missing_key Bad
* value_pre noeat
:key Key
* key
"=:" sep noeat mark
"\n" unexpected_end noeat recolormark
:sep Separator
* value_pre noeat
"=:" value_pre
:value_pre Idle
* value noeat mark
" \t\r" value_pre
"\n" unexpected_end noeat recolormark
:value Constant
* value
"\\" value_esc mark
"\n" line_start
" " value_maybe_comment recolor=-1
:value_maybe_comment Idle
* value noeat
";#" line_comment recolor=-1
:value_esc Escape
* value_esc_bad noeat recolormark
"0abtrn;#=:\\" value_esc_end recolormark
"x" value_esc_unicode1
"\n" value mark
:value_esc_bad Bad
* value noeat mark
:value_esc_end Escape
* value noeat mark
:value_esc_unicode1 Escape
* value_esc_bad noeat recolormark
"0-9a-fA-F" value_esc_unicode2
"\n" unexpected_end noeat recolormark
:value_esc_unicode2 Escape
* value_esc_bad noeat recolormark
"0-9a-fA-F" value_esc_unicode3
"\n" unexpected_end noeat recolormark
:value_esc_unicode3 Escape
* value_esc_bad noeat recolormark
"0-9a-fA-F" value_esc_unicode4
"\n" unexpected_end noeat recolormark
:value_esc_unicode4 Escape
* value_esc_bad noeat recolormark
"0-9a-fA-F" value_esc_end recolormark
"\n" unexpected_end noeat recolormark