1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-12-21 16:54:23 +01:00

Ruby: parse <% # comment %> correctly in erb mode

Previous versions consumed the whole line after a pound now there is
a check to search for erb end tag in erb mode.
This commit is contained in:
cn 2011-10-08 20:28:26 +02:00
parent 1e645a8b55
commit 673886c1d5

View File

@ -178,10 +178,16 @@ done
:line_comment Comment
* line_comment
.ifdef erb
"%" line_comment_maybe_erb_end
.endif
# might be TODO label
"BFHNTX" line_comment noeat call=.comment_todo()
"\n" idle
:line_comment_maybe_erb_end Comment
">" NULL recolor=-2 return
:end_of_file_comment Comment
* end_of_file_comment