From 07a24b0a6c07d0473860479ab9f73c5bb2af4059 Mon Sep 17 00:00:00 2001 From: Stefan Daschek Date: Fri, 17 Mar 2017 00:04:59 +0100 Subject: [PATCH] Fix `meta.selector.css` to not extend outside the style block if embedded. Affects embedded CSS (e.g. in HTML or in a Markdown variant supporting code blocks with syntax highlighting) only: While typing a selector, the pattern for `meta.selector.css` would swallow up everything from the cursor until the end of the document - extending beyond the end of the embedded CSS block and thus destroying syntax highlighting for the rest of the document. --- Syntaxes/CSS.plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Syntaxes/CSS.plist b/Syntaxes/CSS.plist index 04e3564..5ad34bf 100644 --- a/Syntaxes/CSS.plist +++ b/Syntaxes/CSS.plist @@ -741,7 +741,7 @@ begin \s*(?=[:.*#a-zA-Z]) end - (?=[/@{)]) + (?=[/@{)]|```|<\/style>) name meta.selector.css patterns