diff options
| author | 2013-06-08 17:37:43 +0200 | |
|---|---|---|
| committer | 2013-06-08 17:37:44 +0200 | |
| commit | 2cf160d497e501bf254bd8be054c0f5880ab90ca (patch) | |
| tree | 03a720b6142cc03fe7ef258fa8d17da92b30a462 /module/web/static/js/libs/handlebars.l | |
| parent | Merge pull request #151 from vuolter/invertedconf (diff) | |
| download | pyload-2cf160d497e501bf254bd8be054c0f5880ab90ca.tar.xz | |
restructured webui to single-page-app, removed jinja
Diffstat (limited to 'module/web/static/js/libs/handlebars.l')
| -rw-r--r-- | module/web/static/js/libs/handlebars.l | 48 | 
1 files changed, 0 insertions, 48 deletions
| diff --git a/module/web/static/js/libs/handlebars.l b/module/web/static/js/libs/handlebars.l deleted file mode 100644 index f0c04f91e..000000000 --- a/module/web/static/js/libs/handlebars.l +++ /dev/null @@ -1,48 +0,0 @@ - -%x mu emu - -%% - -[^\x00]*?/("<%")                 { -                                   if(yytext.slice(-1) !== "\\") this.begin("mu"); -                                   if(yytext.slice(-1) === "\\") yytext = yytext.substr(0,yyleng-1), this.begin("emu"); -                                   if(yytext) return 'CONTENT'; -                                 } - -[^\x00]+                         { return 'CONTENT'; } - -<emu>[^\x00]{2,}?/("{{"|<<EOF>>) { -                                   if(yytext.slice(-1) !== "\\") this.popState(); -                                   if(yytext.slice(-1) === "\\") yytext = yytext.substr(0,yyleng-1); -                                   return 'CONTENT'; -                                 } - -<mu>"{{>"                        { return 'OPEN_PARTIAL'; } -<mu>"<%="                        { return 'OPEN_BLOCK'; } -<mu>"<%/"                        { return 'OPEN_ENDBLOCK'; } -<mu>"{{^"                        { return 'OPEN_INVERSE'; } -<mu>"<%"\s*"else"                { return 'OPEN_INVERSE'; } -<mu>"{<%%"                        { return 'OPEN_UNESCAPED'; } -<mu>"{{&"                        { return 'OPEN_UNESCAPED'; } -<mu>"<%!"[\s\S]*?"%>"            { yytext = yytext.substr(3,yyleng-5); this.popState(); return 'COMMENT'; } -<mu>"<%"                         { return 'OPEN'; } - -<mu>"="                          { return 'EQUALS'; } -<mu>"."/[%} ]                     { return 'ID'; } -<mu>".."                         { return 'ID'; } -<mu>[\/.]                        { return 'SEP'; } -<mu>\s+                          { /*ignore whitespace*/ } -<mu>"%%>"                        { this.popState(); return 'CLOSE'; } -<mu>"%>"                         { this.popState(); return 'CLOSE'; } -<mu>'"'("\\"["]|[^"])*'"'        { yytext = yytext.substr(1,yyleng-2).replace(/\\"/g,'"'); return 'STRING'; } -<mu>"'"("\\"[']|[^'])*"'"        { yytext = yytext.substr(1,yyleng-2).replace(/\\"/g,'"'); return 'STRING'; } -<mu>"@"[a-zA-Z]+                 { yytext = yytext.substr(1); return 'DATA'; } -<mu>"true"/[%}\s]                 { return 'BOOLEAN'; } -<mu>"false"/[%}\s]                { return 'BOOLEAN'; } -<mu>[0-9]+/[%}\s]                 { return 'INTEGER'; } -<mu>[a-zA-Z0-9_$-]+/[=%}\s\/.]    { return 'ID'; } -<mu>'['[^\]]*']'                 { yytext = yytext.substr(1, yyleng-2); return 'ID'; } -<mu>.                            { return 'INVALID'; } - -<INITIAL,mu><<EOF>>              { return 'EOF'; } - | 
