From 6192219d98f13584a429155ba97c796098d4c78b Mon Sep 17 00:00:00 2001 From: Christian Nicolai Date: Sat, 6 Aug 2011 14:16:29 +0200 Subject: [PATCH] Fixed bug in js.jsf This prevented correct hilite in situations like this: variable /* comment */ This was mislit as regex beginning t the second '/'. --- js.jsf | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/js.jsf b/js.jsf index 690e8fc..48866cf 100644 --- a/js.jsf +++ b/js.jsf @@ -15,7 +15,7 @@ =Operator bold =Bad inverse bold red =Brace magenta -=Control +=Control # additional classes not present everywhere but useful =Methods @@ -39,7 +39,8 @@ :after_term Control * idle noeat " \t)" after_term - "%/" control recolor=-1 + "%" control recolor=-1 + "/" after_term_slash :brace Brace * idle noeat @@ -52,6 +53,12 @@ "*" comment recolor=-2 "/" line_comment recolor=-2 +# allow // and /* after terms +:after_term_slash Idle + * idle noeat + "*" comment recolor=-2 + "/" line_comment recolor=-2 + :comment Comment * comment # might be TODO label