Sha256: 76164579f2ab1148296b216db870abbe192f292f30e6b15d90cc0c18ff91a97c

Contents?: true

Size: 771 Bytes

Versions: 7

Compression:

Stored size: 771 Bytes

Contents

%%
\s+		{/* skip whitespace */}
"/*"[^*]*"*"		{return yy.lexComment(this);}
[a-zA-Z][a-zA-Z0-9_-]*		{return 'ID';}
'"'[^"]+'"'		{yytext = yytext.substr(1, yyleng-2); return 'STRING';}
"'"[^']+"'"		{yytext = yytext.substr(1, yyleng-2); return 'STRING';}
":"		{return ':';}
";"		{return ';';}
"|"		{return '|';}
"%%"		{return '%%';}
"%prec"		{return 'PREC';}
"%start"		{return 'START';}
"%left"		{return 'LEFT';}
"%right"		{return 'RIGHT';}
"%nonassoc"		{return 'NONASSOC';}
"%"[a-zA-Z]+[^\n]*		{/* ignore unrecognized decl */}
"{{"[^}]*"}"		{return yy.lexAction(this);}
"{"[^}]*"}"		{yytext = yytext.substr(1, yyleng-2); return 'ACTION';}
"<"[^>]*">"		{yytext = yytext.substr(1, yyleng-2); return 'ACTION';}
.		{/* ignore bad characters */}
<<EOF>>		{return 'EOF';}

%%

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
haml-more-0.5.1 vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.jisonlex
haml-more-0.5.0 vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.jisonlex
haml-more-0.4.0 vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.jisonlex
haml-more-0.4.0.d vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.jisonlex
haml-more-0.4.0.c vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.jisonlex
haml-more-0.4.0.b vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.jisonlex
haml-more-0.4.0.a vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.jisonlex