import { regex } from "regex"; export default regex` (? # Expression \{\{ (?\g?)\s* (?(?>\g | \g)*?) \s*(?\g?) \}\} | # Statement \{% (?\g?)\s* (? (?\w+) (?>\g | \g)*? ) \s*(?\g?) %\} | # Ignore block (? ( | \{\#\s*prettier-ignore-start\s*\#\}) \g ( | \{\#\s*prettier-ignore-end\s*\#\}) ) | # Comment (?\{\#\g\#\}) | # Script Block (?>\g<\/script>\s*) | # Style Block (?>\g<\/style>\s*) ) (?(DEFINE) (? \g*?) (? [\s\S]) (? [\-+]) (? '[^']*'|"[^"]*") ) `;