Fix comment detection.

This commit is contained in:
Todd Lewis 2017-02-02 21:03:40 -05:00
parent 536587cc1e
commit 7ba201799e
1 changed files with 18 additions and 3 deletions

View File

@ -1,4 +1,5 @@
# JOE syntax highlight file for YAML # JOE syntax highlight file for YAML
# by Christian Nicolai (http://mycrobase.de)
=Idle =Idle
=Comment green =Comment green
@ -11,7 +12,7 @@
=Directive red =Directive red
=Reference yellow =Reference yellow
=LocalType fg_310 # brown =LocalType blue
=BlockDelim bold blue =BlockDelim bold blue
=BadTab inverse red =BadTab inverse red
@ -19,13 +20,26 @@
:line_start Idle :line_start Idle
* maybe_key noeat * maybe_key noeat
"\t" bad_tab recolor=-1 "\t" bad_tab recolor=-1
"#" maybe_lscomment1
" " line_start " " line_start
:maybe_lscomment1 Idle
* maybe_key noeat
" " line_comment recolor=-2
:maybe_idlecomment Comment
* idle noeat
"#" maybe_idlecomment2
:maybe_idlecomment2 Comment
* idle recolor=-2
" " line_comment recolor=-2
:idle Constant :idle Constant
* idle * idle
"\n" line_start "\n" line_start
" " maybe_idlecomment
"%" directive recolor=-1 "%" directive recolor=-1
"#" line_comment recolor=-1
"'" string_sq_1 recolor=-1 "'" string_sq_1 recolor=-1
"\"" string_dq_1 recolor=-1 "\"" string_dq_1 recolor=-1
"{[]}" brace recolor=-1 "{[]}" brace recolor=-1
@ -35,7 +49,8 @@
:maybe_key Idle :maybe_key Idle
* maybe_key1 recolor=-1 mark * maybe_key1 recolor=-1 mark
"\n%#'\"{[]}*&!" idle noeat "\n" line_start
"%#'\"{[]}*&!" idle noeat
"-" maybe_block1 mark "-" maybe_block1 mark
:maybe_key1 Constant :maybe_key1 Constant