Sha256: 2120435a1db28093f44f7b46184f631db76eb090902182e347cb7ff598b856ad

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

{
    "rules": [
        ["\\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 */"],
        ["$", "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.lex.json
haml-more-0.5.0 vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.lex.json
haml-more-0.4.0 vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.lex.json
haml-more-0.4.0.d vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.lex.json
haml-more-0.4.0.c vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.lex.json
haml-more-0.4.0.b vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.lex.json
haml-more-0.4.0.a vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.lex.json