mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02: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:
parent
1e645a8b55
commit
673886c1d5
6
ruby.jsf
6
ruby.jsf
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user