From 673886c1d537b829f91e9fb67605fcc95dffccfc Mon Sep 17 00:00:00 2001 From: cn Date: Sat, 8 Oct 2011 20:28:26 +0200 Subject: [PATCH] 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. --- ruby.jsf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ruby.jsf b/ruby.jsf index 34c5cfa..80c8057 100644 --- a/ruby.jsf +++ b/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