Sha256: cb750ac4e1272f17f2121740d4a1948d8750812f751705f6781a669995b26bcc

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 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/src/jisonlex.lex.json
haml-more-0.5.0 vendor/coffee-script/vendor/jison/src/jisonlex.lex.json
haml-more-0.4.0 vendor/coffee-script/vendor/jison/src/jisonlex.lex.json
haml-more-0.4.0.d vendor/coffee-script/vendor/jison/src/jisonlex.lex.json
haml-more-0.4.0.c vendor/coffee-script/vendor/jison/src/jisonlex.lex.json
haml-more-0.4.0.b vendor/coffee-script/vendor/jison/src/jisonlex.lex.json
haml-more-0.4.0.a vendor/coffee-script/vendor/jison/src/jisonlex.lex.json