Sha256: 6cb46b6ba8f847c4833c875180aeaa9c5667c437e9b6c162c8282c7f2c5c70a0

Contents?: true

Size: 960 Bytes

Versions: 7

Compression:

Stored size: 960 Bytes

Contents

%%
\n+    	{yy.freshLine = true;}
\s+    	{yy.freshLine = false;}
"y{"[^}]*"}"    	{yytext = yytext.substr(2, yytext.length-3);return 'ACTION';}
[a-zA-Z_][a-zA-Z0-9_-]*    	{return 'NAME';}
'"'([^"]|'\"')*'"'    	{return 'STRING_LIT';}
"'"([^']|"\'")*"'"    	{return 'STRING_LIT';}
"|"    	{return '|';}
"["("\]"|[^\]])*"]"    	{return 'ANY_GROUP_REGEX';}
"("    	{return '(';}
")"    	{return ')';}
"+"    	{return '+';}
"*"    	{return '*';}
"?"    	{return '?';}
"^"    	{return '^';}
"/"    	{return '/';}
"\\"[a-zA-Z0]    	{return 'ESCAPE_CHAR';}
"$"    	{return '$';}
"<<EOF>>"    	{return '$';}
"."    	{return '.';}
"%%"    	{return '%%';}
"{"\d+(","\s?\d+|",")?"}"    	{return 'RANGE_REGEX';}
/"{"    	%{if(yy.freshLine){this.input('{');return '{';} else this.unput('y');%}
"}"    	%{return '}';%}
"%{"(.|\n)*?"}%"    	{yytext = yytext.substr(2, yytext.length-4);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/lex_grammar.jisonlex
haml-more-0.5.0 vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.jisonlex
haml-more-0.4.0 vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.jisonlex
haml-more-0.4.0.d vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.jisonlex
haml-more-0.4.0.c vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.jisonlex
haml-more-0.4.0.b vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.jisonlex
haml-more-0.4.0.a vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.jisonlex