diff --git a/ASP/HTML (ASP).sublime-syntax b/ASP/HTML (ASP).sublime-syntax index 15cc481edee..e8b3e2b5cda 100644 --- a/ASP/HTML (ASP).sublime-syntax +++ b/ASP/HTML (ASP).sublime-syntax @@ -47,9 +47,7 @@ contexts: - include: script-common - match: '>' scope: punctuation.definition.tag.end.html - set: - - script-close-tag - - script-vbscript-content + set: script-vbscript-content script-vbscript-content: - meta_include_prototype: false diff --git a/HTML/HTML.sublime-syntax b/HTML/HTML.sublime-syntax index 550b68fd492..feb25c1bb99 100644 --- a/HTML/HTML.sublime-syntax +++ b/HTML/HTML.sublime-syntax @@ -88,16 +88,8 @@ contexts: ###[ HTML TAGS ]############################################################## tag-html: - - match: (<)((?i:style)){{tag_name_break}} - captures: - 1: punctuation.definition.tag.begin.html - 2: entity.name.tag.style.html - push: style-css - - match: (<)((?i:script)){{tag_name_break}} - captures: - 1: punctuation.definition.tag.begin.html - 2: entity.name.tag.script.html - push: script-javascript + - include: script-tag + - include: style-tag - match: (' scope: punctuation.definition.tag.end.html - set: - - script-close-tag - - script-javascript-content + set: script-javascript-content script-javascript-content: - meta_include_prototype: false @@ -211,12 +224,7 @@ contexts: script-html: - meta_scope: meta.tag.script.begin.html - include: script-common - - match: '>' - scope: punctuation.definition.tag.end.html - set: - - meta_content_scope: text.html.embedded.html - - include: script-close-tag - - include: main + - include: tag-end script-other: - meta_scope: meta.tag.script.begin.html @@ -225,16 +233,6 @@ contexts: scope: punctuation.definition.tag.end.html set: script-close-tag - script-close-tag: - - match: (' scope: punctuation.definition.tag.end.html - set: - - style-close-tag - - style-css-content + set: style-css-content style-css-content: - meta_include_prototype: false @@ -318,16 +337,6 @@ contexts: scope: punctuation.definition.tag.end.html set: style-close-tag - style-close-tag: - - match: ( - ## ^^^^^^^^^^^ text.html.embedded.html comment.block.html + ## ^^^^^^^^^^^ comment.block.html
- ## ^^^^^^^^^^^ text.html.basic text.html.embedded meta.tag.block.any + ## ^^^^^^^^^^^ text.html.basic meta.tag.block.any - ## ^^^^^^^^^ text.html.basic text.html.embedded.html meta.tag.script.end + ## ^^^^^^^^^ text.html.basic meta.tag.script.end -## ^ text.html.basic text.html.embedded.html -## ^^^^^^^^^ text.html.basic - text.html.embedded.html meta.tag.script.end -## ^ text.html.basic - text.html.embedded.html +## ^ text.html.basic - meta.tag +## ^^^^^^^^^ text.html.basic meta.tag.script.end +## ^ text.html.basic - meta.tag + + +## ^ text.html.basic - meta.tag +## ^^^^^^^^^ text.html.basic meta.tag.script.end +## ^ text.html.basic - meta.tag