handle comment in plain scalars

This commit is contained in:
Todd Lewis 2017-05-07 20:48:58 -04:00
parent d35bc8d3d5
commit 44616813ea
1 changed files with 10 additions and 5 deletions

View File

@ -23,15 +23,11 @@
"#" line_comment recolor=-1
" " line_start
:maybe_idlecomment Comment
* idle noeat
"#" line_comment recolor=-1
:idle Constant
* plain_scalar noeat
"\n" line_start
" " maybe_idlecomment
"%" directive recolor=-1
" " maybe_idle_comment
"'" string_sq_1 recolor=-1
"\"" string_dq_1 recolor=-1
"{[]}" brace recolor=-1
@ -43,6 +39,7 @@
* plain_scalar
"\t" bad_tab recolor=-1
"\n" line_start noeat
" " maybe_plain_scalar_comment
:maybe_key Idle
* maybe_key1 recolor=-1 mark
@ -66,6 +63,14 @@
:bad_tab BadTab
* line_start noeat
:maybe_plain_scalar_comment Comment
* plain_scalar noeat
"#" line_comment
:maybe_idle_comment Comment
* idle noeat
"#" line_comment
:line_comment Comment
* line_comment
"\n" line_start