From 3dd952ea771e5bc087a41146941ed36f2051c3c4 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Sat, 16 May 2020 17:58:26 +0200 Subject: [PATCH] fix #123 pop out of meta.alias when used in list --- 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 da74450..cb56312 100644 --- a/Syntaxes/LESS.sublime-syntax +++ b/Syntaxes/LESS.sublime-syntax @@ -998,7 +998,7 @@ contexts: push: - meta_content_scope: meta.brackets.less - include: less-map-lookups - - match: '(?=;|$)' + - match: '(?=;|,|$)' pop: true - match: '(\.){{ident}}' captures: diff --git a/Tests/syntax_test_less.less b/Tests/syntax_test_less.less index 9ffbeee..0f342dd 100755 --- a/Tests/syntax_test_less.less +++ b/Tests/syntax_test_less.less @@ -588,6 +588,8 @@ Attribute selectors // ^ punctuation.section.brackets.end // ^^^^^^ variable.other.less display: inline-block; + background-color: rgba(#ui-colors.dark[background-090],0.7); +// ^ - meta.alias } }