From 36a7bb1e16d3476c161825fd730bd5dc58f1c0db Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Sat, 5 May 2018 19:54:40 +0200 Subject: [PATCH] fix tag selector inside :not() --- LESS.sublime-syntax | 2 +- syntax_test_less.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/LESS.sublime-syntax b/LESS.sublime-syntax index 7f3ba32..a600e2e 100644 --- a/LESS.sublime-syntax +++ b/LESS.sublime-syntax @@ -488,7 +488,7 @@ contexts: - include: property-values selector: - - match: '\b(vkern|view|video|var|use|ul|u|tt|tspan|tref|tr|title|time|thead|th|tfoot|textPath|textarea|text|td|tbody|table(?!-)|symbol|switch|svg|sup|summary|sub|style|strong|strike|stop|span|small|set|select|section|script|samp|s|ruby|rect|radialGradient|q|pre|polyline|polygon|pattern|path|param|p|output|option|optgroup|ol|object|noscript|noframes|nav|mpath|missing-glyph|metadata|meta|menu|mask|marker|mark|map|main|link|linearGradient|line|li|legend|label|kbd|ins|input|img|image|iframe|i|html|hr|hkern|hgroup|header|head|glyphRef|glyph|g|frameset|frame|form|foreignObject|footer|font-face-uri|font-face-src|font-face-name|font-face-format|font-face|font|filter|figure|figcaption|fieldset|feTurbulence|feTile|feSpotLight|feSpecularLighting|fePointLight|feOffset|feMorphology|feMergeNode|feMerge|feImage|feGaussianBlur|feFuncR|feFuncG|feFuncB|feFuncA|feFlood|feDistantLight|feDisplacementMap|feDiffuseLighting|feConvolveMatrix|feComposite|feComponentTransfer|feColorMatrix|feBlend|embed|em|ellipse|dt|dl|div|dfn|details|desc|del|defs|dd|color-profile|colgroup|col|code|clipPath|cite|circle|center|caption|canvas|button|br|body|blockquote|big|base|b|audio|aside|article|area|applet|animateTransform|animateMotion|animateColor|animate|altGlyphItem|altGlyphDef|altGlyph|address|acronym|abbr|a|(h[1-6]))\b(?=([a-z.,{#\s\[]|:+[a-z]))' + - match: '\b(vkern|view|video|var|use|ul|u|tt|tspan|tref|tr|title|time|thead|th|tfoot|textPath|textarea|text|td|tbody|table(?!-)|symbol|switch|svg|sup|summary|sub|style|strong|strike|stop|span|small|set|select|section|script|samp|s|ruby|rect|radialGradient|q|pre|polyline|polygon|pattern|path|param|p|output|option|optgroup|ol|object|noscript|noframes|nav|mpath|missing-glyph|metadata|meta|menu|mask|marker|mark|map|main|link|linearGradient|line|li|legend|label|kbd|ins|input|img|image|iframe|i|html|hr|hkern|hgroup|header|head|glyphRef|glyph|g|frameset|frame|form|foreignObject|footer|font-face-uri|font-face-src|font-face-name|font-face-format|font-face|font|filter|figure|figcaption|fieldset|feTurbulence|feTile|feSpotLight|feSpecularLighting|fePointLight|feOffset|feMorphology|feMergeNode|feMerge|feImage|feGaussianBlur|feFuncR|feFuncG|feFuncB|feFuncA|feFlood|feDistantLight|feDisplacementMap|feDiffuseLighting|feConvolveMatrix|feComposite|feComponentTransfer|feColorMatrix|feBlend|embed|em|ellipse|dt|dl|div|dfn|details|desc|del|defs|dd|color-profile|colgroup|col|code|clipPath|cite|circle|center|caption|canvas|button|br|body|blockquote|big|base|b|audio|aside|article|area|applet|animateTransform|animateMotion|animateColor|animate|altGlyphItem|altGlyphDef|altGlyph|address|acronym|abbr|a|(h[1-6]))\b(?=([a-z.,{#\s\[\)]|:+[a-z]))' scope: meta.selector.css entity.name.tag.css - match: '(\.)(?=-?([a-zA-Z_]|@{)[a-zA-Z0-9_-]*)' captures: diff --git a/syntax_test_less.less b/syntax_test_less.less index 04474ea..3b00b7f 100755 --- a/syntax_test_less.less +++ b/syntax_test_less.less @@ -225,6 +225,8 @@ html::before { /* ^ meta.at-rule.media.css meta.group.css variable.other.less */ /* ^ meta.at-rule.media.css keyword.operator.less */ /* ^ meta.at-rule.media.css meta.group.css support.constant.property-value.css */ +.avatar:not(body) {} +/* ^^^^ entity.name.tag.css */ .avatar:not(.class) {} /* ^ meta.group.css entity.other.attribute-name.class.css */ /* ^ meta.group.css punctuation.section.group.end.css */