Support multi-line comments.

{{!
Like this.
}}
This commit is contained in:
Ryan Grove
2011-04-18 16:08:20 -07:00
parent 038d9b3fee
commit aba636ec38
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
<mu>"{{"\s*"else" { return 'OPEN_INVERSE'; }
<mu>"{{{" { return 'OPEN_UNESCAPED'; }
<mu>"{{&" { return 'OPEN_UNESCAPED'; }
<mu>"{{!".*?"}}" { yytext = yytext.substr(3,yyleng-5); this.begin("INITIAL"); return 'COMMENT'; }
<mu>"{{!"[\s\S]*?"}}" { yytext = yytext.substr(3,yyleng-5); this.begin("INITIAL"); return 'COMMENT'; }
<mu>"{{" { return 'OPEN'; }
<mu>"=" { return 'EQUALS'; }