%lex %x script %% // Inline JavaScript State (gobble up all tokens including whitespace) "{{=" %{ this.begin("script"); return "SCRIPT_EVAL"; %} "{{!" %{ this.begin("script"); return "SCRIPT_EXEC"; %}