From d7e8a824998c4cd914a6689e1b88613fab39ef4c Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Wed, 2 Jun 2021 16:08:06 +0200 Subject: [PATCH] property names with trailing spaces Related fix in Sass: https://github.com/braver/SublimeSass/issues/80#issuecomment-853031191 --- Syntaxes/LESS.sublime-syntax | 2 +- Tests/syntax_test_less.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Syntaxes/LESS.sublime-syntax b/Syntaxes/LESS.sublime-syntax index 0c1d588..d071071 100644 --- a/Syntaxes/LESS.sublime-syntax +++ b/Syntaxes/LESS.sublime-syntax @@ -445,7 +445,7 @@ contexts: - meta_scope: meta.selector.css - include: selector-parts # custom elements - - match: '\s*({{custom_elements}})(?![-:])' + - match: '\s*({{custom_elements}})(?!-|\s*:)' captures: 1: entity.name.tag.custom.css push: diff --git a/Tests/syntax_test_less.less b/Tests/syntax_test_less.less index 75552cc..625400e 100755 --- a/Tests/syntax_test_less.less +++ b/Tests/syntax_test_less.less @@ -200,6 +200,8 @@ html::before { // ^ support.type.property-name.css // ^ meta.property-value.css support.type.vendor-prefix.css // ^ meta.property-value.css support.constant.property-value.css + align-self : baseline; +// ^ support.type.property-name.css -webkit-user-select: none; // ^ support.type.vendor-prefix.css // ^ support.type.property-name.css