From 6d2685efd422dd1b255375663b7ca1ee8ad322ea Mon Sep 17 00:00:00 2001 From: Blake Regalia Date: Thu, 26 Jul 2018 20:55:20 -0700 Subject: [PATCH] disabled all syntax nesting --- ecmascript.sublime-syntax | 291 -------------------------------------- 1 file changed, 291 deletions(-) diff --git a/ecmascript.sublime-syntax b/ecmascript.sublime-syntax index 4c09b03..7cc8af3 100644 --- a/ecmascript.sublime-syntax +++ b/ecmascript.sublime-syntax @@ -5499,298 +5499,7 @@ contexts: # specific contexts: syntax_OPEN: - - match: '{{syntaxDirective}}' - captures: - 1: meta.comment.border.es - 2: punctuation.definition.comment.begin.es - 3: comment.block.es - set: [ ae_AFTER_VALUE, syntax_EXIT, syntax_DIRECTIVE ] - include: block_comment syntax_NO_IN_OPEN: - - match: '{{syntaxDirective}}' - captures: - 1: meta.comment.border.es - 2: punctuation.definition.comment.begin.es - 3: comment.block.es - set: [ ae_NO_IN_AFTER_VALUE, syntax_EXIT, syntax_DIRECTIVE ] - include: block_comment - - syntax_AFTER_OPEN: - - meta_include_prototype: false - - match: '(?=`)' - pop: true - - match: '\\[`\$\{]' - scope: constant.character.escape.es - - match: '\\\n' - scope: constant.character.escape.es - - include: string_COMMON_ESCAPES - - match: '((\$\{))' - scope: meta.interpolation.interpolated.es - captures: - 1: entity.quasi.element.js punctuation.quasi.element.begin.js # ^BS - 2: punctuation.definition.string.interpolated.element.begin.es - push: - - - meta_include_prototype: false - - meta_content_scope: meta.interpolation.interpolated.es - - match: '{{PLA_anything}}' - pop: true - - - include: syntax_ELEMENT - - - include: expression - - syntax_ELEMENT: - - match: '((\}))' - captures: - 1: entity.quasi.element.js punctuation.quasi.element.end.js # ^BS - 2: punctuation.definition.string.interpolated.element.end.es - pop: true - - include: other_illegal_pop - - syntax_EXIT: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.end.es - pop: true - - syntax_DIRECTIVE: - - meta_scope: comment.block.es - - meta_include_prototype: false - - match: '{{syntaxDirective_CSS}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_CSS, syntax_CSS_OPEN ] - - match: '{{syntaxDirective_DOT}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_DOT, syntax_DOT_OPEN ] - - match: '{{syntaxDirective_GLSL}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_GLSL, syntax_GLSL_OPEN ] - - match: '{{syntaxDirective_HTML}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_HTML, syntax_HTML_OPEN ] - - match: '{{syntaxDirective_JS}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_JS, syntax_JS_OPEN ] - - match: '{{syntaxDirective_JSON}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_JSON, syntax_JSON_OPEN ] - - match: '{{syntaxDirective_SHELL}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_SHELL, syntax_SHELL_OPEN ] - - match: '{{syntaxDirective_SQL}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_SQL, syntax_SQL_OPEN ] - - match: '{{syntaxDirective_XML}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_XML, syntax_XML_OPEN ] - - match: '{{syntaxDirective_YAML}}' - captures: - 1: punctuation.definition.comment.end.es - 2: entity.quasi.tag.name.js # ^BS - 3: variable.other.readwrite.tag.es - 4: punctuation.definition.string.interpolated.begin.es - set: [ syntax_meta_YAML, syntax_YAML_OPEN ] - -# CSS SYNTAX ################################################################### - - syntax_meta_CSS: - - meta_content_scope: meta.interpolation.syntax.css - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_CSS_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - set: scope:source.css - with_prototype: - - include: syntax_AFTER_OPEN - -# DOT (GRAPHVIZ) SYNTAX ######################################################## - - syntax_meta_DOT: - - meta_content_scope: meta.interpolation.syntax.dot - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_DOT_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - set: scope:source.dot - with_prototype: - - include: syntax_AFTER_OPEN - -# GLSL SYNTAX ################################################################### - - syntax_meta_GLSL: - - meta_content_scope: meta.interpolation.syntax.glsl - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_GLSL_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - set: scope:source.glsl - with_prototype: - - include: syntax_AFTER_OPEN - -# HTML SYNTAX ################################################################## - - syntax_meta_HTML: - - meta_content_scope: meta.interpolation.syntax.html - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_HTML_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - # We don't want to risk loading an HTML syntax that uses - # `embed: scope:source.js` since that would cause recursion - set: Packages/HTML/HTML.sublime-syntax - with_prototype: - - include: syntax_AFTER_OPEN - -# JS (JAVASCRIPT) SYNTAX ####################################################### - - syntax_meta_JS: - - meta_content_scope: meta.interpolation.syntax.js - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_JS_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - set: Packages/JavaScript/JavaScript.sublime-syntax - with_prototype: - # We must also compete with the 'tagged-template' rule in the default - # JavaScript.sublime-syntax so that we can pop out - - match: '([_$\p{L}\p{Nl}][_$\p{L}\p{Nl}\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]*)(?=\s*`)' - captures: - 1: variable.other.readwrite.es - 2: string.interpolated.es punctuation.definition.string.interpolated.end.es - pop: true - - include: syntax_AFTER_OPEN - -# JSON SYNTAX ################################################################## - - syntax_meta_JSON: - - meta_content_scope: meta.interpolation.syntax.js - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_JSON_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - set: scope:source.json - with_prototype: - - include: syntax_AFTER_OPEN - -# SHELL (BASH) SYNTAX ########################################################## - - syntax_meta_SHELL: - - meta_content_scope: meta.interpolation.syntax.shell - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_SHELL_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - set: scope:source.shell - with_prototype: - - include: syntax_AFTER_OPEN - -# SQL SYNTAX ################################################################### - - syntax_meta_SQL: - - meta_content_scope: meta.interpolation.syntax.sql - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_SQL_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - set: scope:source.sql - with_prototype: - - include: syntax_AFTER_OPEN - -# XML SYNTAX ################################################################### - - syntax_meta_XML: - - meta_content_scope: meta.interpolation.syntax.xml - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_XML_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - set: scope:text.xml - with_prototype: - - include: syntax_AFTER_OPEN - -# YAML SYNTAX ################################################################## - - syntax_meta_YAML: - - meta_content_scope: meta.interpolation.syntax.yaml - - meta_include_prototype: false - - match: '{{PLA_anything}}' - pop: true - - syntax_YAML_OPEN: - - meta_include_prototype: false - - match: '`' - scope: string.interpolated.es punctuation.definition.string.interpolated.begin.es - set: scope:source.yaml - with_prototype: - - include: syntax_AFTER_OPEN