Puppet: highlight multiline comments properly

This commit is contained in:
cn 2012-07-26 17:57:42 +02:00
parent 465900fefa
commit 084f47074b
1 changed files with 17 additions and 3 deletions

View File

@ -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