mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
Puppet: highlight multiline comments properly
This commit is contained in:
parent
465900fefa
commit
084f47074b
20
puppet.jsf
20
puppet.jsf
@ -16,24 +16,38 @@
|
|||||||
:idle Idle
|
:idle Idle
|
||||||
* idle
|
* idle
|
||||||
"\n" idle
|
"\n" idle
|
||||||
"#" comment recolor=-1
|
"#" line_comment recolor=-1
|
||||||
"{[]}" brace recolor=-1
|
"{[]}" brace recolor=-1
|
||||||
"0" first_digit recolor=-1
|
"0" first_digit recolor=-1
|
||||||
"1-9" decimal recolor=-1
|
"1-9" decimal recolor=-1
|
||||||
"\"" string recolor=-1
|
"\"" string recolor=-1
|
||||||
"'" char recolor=-1
|
"'" char recolor=-1
|
||||||
"/" regex recolor=-1
|
"/" slash
|
||||||
"$" variable recolor=-1
|
"$" variable recolor=-1
|
||||||
"A-Z" type recolor=-1
|
"A-Z" type recolor=-1
|
||||||
"a-z" ident buffer
|
"a-z" ident buffer
|
||||||
|
|
||||||
:comment Comment
|
:line_comment Comment
|
||||||
* comment
|
* comment
|
||||||
"\n" idle
|
"\n" idle
|
||||||
|
|
||||||
|
:comment Comment
|
||||||
|
* comment
|
||||||
|
"*" maybe_end_comment
|
||||||
|
|
||||||
|
:maybe_end_comment Comment
|
||||||
|
* comment noeat
|
||||||
|
"/" idle
|
||||||
|
"*" maybe_end_comment
|
||||||
|
|
||||||
:brace Brace
|
:brace Brace
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
|
||||||
|
# that's not completely accurate since a regex may start with a * too
|
||||||
|
:slash Idle
|
||||||
|
* regex noeat recolor=-2
|
||||||
|
"*" comment recolor=-2
|
||||||
|
|
||||||
:first_digit Constant
|
:first_digit Constant
|
||||||
* idle noeat
|
* idle noeat
|
||||||
"0-7" octal
|
"0-7" octal
|
||||||
|
Loading…
Reference in New Issue
Block a user