Browse files

Added comments for proper emacs font-lock. shame on emacs.

  • Loading branch information...
1 parent 337d31b commit ba1e986f0b04376c4fa2511ae2acf4203a2d6024 @vic vic committed Dec 15, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/poison/bootstrap/parser/ext/parser.g
View
6 lib/poison/bootstrap/parser/ext/parser.g
@@ -212,7 +212,7 @@ int = < digits >
real = < digits '.' digits ('e' [-+]? [0-9]+)? >
imag = (real | int) 'i'
-q1 = [']
+q1 = ['] # ' for emacs
c1 = < (!q1 utf8)+ > { PN_AST("str1_add", rb_str_new(yytext, yyleng)); }
str1 = q1 { PN_AST("str1_clear", Qnil); }
< (q1 q1 { PN_AST("str1_add", rb_str_new2("'")); } | c1)* >
@@ -227,8 +227,8 @@ esct = esc 't' { }
escu = esc 'u' < hexl hexl hexl hexl > { }
escc = esc < utf8 > { }
-q2 = ["]
-e2 = '\\' ["] { PN_AST("str2_add", rb_str_new2("\"")); }
+q2 = ["] # " for emacs
+e2 = '\\' ["] { PN_AST("str2_add", rb_str_new2("\"")); } # " for emacs
c2 = < (!q2 !esc utf8)+ > { PN_AST("str2_add", rb_str_new(yytext, yyleng)); }
str2 = q2 { PN_AST("str2_clear", Qnil); }
< (e2 | escn | escb | escf | escr | esct | escu | escc | c2)* >

0 comments on commit ba1e986

Please sign in to comment.