UNPKG

prettier-plugin-jinja-template

Version:
10 lines (8 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* Do not edit this file!!! The file "src/regex_editable.ts" contains the source for this regex and is transformed by "babel-plugin-transform-regex". Run "npm run build:regex" to generate this file again afer editing the source. */ exports.default = /(?<node>\{\{(?<startDelimiterEx>(?:[\-+])?)\s*(?<expression>(?:(?=((?:'[^']*'|"[^"]*")|(?:[\s\S])))\4)*?)\s*(?<endDelimiterEx>(?:[\-+])?)\}\}|\{%(?<startDelimiter>(?:[\-+])?)\s*(?<statement>(?<keyword>\w+)(?:(?=((?:'[^']*'|"[^"]*")|(?:[\s\S])))\9)*?)\s*(?<endDelimiter>(?:[\-+])?)%\}|(?<ignoreBlock>(?:<!--\s*prettier-ignore-start\s*-->|\{#\s*prettier-ignore-start\s*#\})(?:(?:[\s\S])*?)(?:<!--\s*prettier-ignore-end\s*-->|\{#\s*prettier-ignore-end\s*#\}))|(?<comment>\{#(?:(?:[\s\S])*?)#\})|(?<htmlComment><!--(?:(?:[\s\S])*?)-->\s*)|(?<scriptBlock><script(?:(?:[\s\S])*?)>(?:(?:[\s\S])*?)<\/script>\s*)|(?<styleBlock><style(?:(?:[\s\S])*?)>(?:(?:[\s\S])*?)<\/style>\s*))/u;