mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 22:54:23 +01:00
handle comment in plain scalars
This commit is contained in:
parent
d35bc8d3d5
commit
44616813ea
15
yaml.jsf
15
yaml.jsf
@ -23,15 +23,11 @@
|
|||||||
"#" line_comment recolor=-1
|
"#" line_comment recolor=-1
|
||||||
" " line_start
|
" " line_start
|
||||||
|
|
||||||
:maybe_idlecomment Comment
|
|
||||||
* idle noeat
|
|
||||||
"#" line_comment recolor=-1
|
|
||||||
|
|
||||||
:idle Constant
|
:idle Constant
|
||||||
* plain_scalar noeat
|
* plain_scalar noeat
|
||||||
"\n" line_start
|
"\n" line_start
|
||||||
" " maybe_idlecomment
|
|
||||||
"%" directive recolor=-1
|
"%" directive recolor=-1
|
||||||
|
" " maybe_idle_comment
|
||||||
"'" 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
|
||||||
@ -43,6 +39,7 @@
|
|||||||
* plain_scalar
|
* plain_scalar
|
||||||
"\t" bad_tab recolor=-1
|
"\t" bad_tab recolor=-1
|
||||||
"\n" line_start noeat
|
"\n" line_start noeat
|
||||||
|
" " maybe_plain_scalar_comment
|
||||||
|
|
||||||
:maybe_key Idle
|
:maybe_key Idle
|
||||||
* maybe_key1 recolor=-1 mark
|
* maybe_key1 recolor=-1 mark
|
||||||
@ -66,6 +63,14 @@
|
|||||||
:bad_tab BadTab
|
:bad_tab BadTab
|
||||||
* line_start noeat
|
* 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 Comment
|
||||||
* line_comment
|
* line_comment
|
||||||
"\n" line_start
|
"\n" line_start
|
||||||
|
Loading…
Reference in New Issue
Block a user