joe-syntax/ini.jsf

105 lines
2.1 KiB
Plaintext
Raw Normal View History

# 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