Skip to content

Commit c65ee9f

Browse files
committed
Tweak property and selector variables
As of ST4149 `&` is part of selector_start in CSS and doesn't need to be explicitly added by Less. Variable `selector_begin` is maintained only for backward compatibility with some unreleased revisions of core CSS. Variable `property_or_selector_begin` as adjusted to match CSS (as of sublimehq/Packages#3898) and is maintained for backward compatibility with ST builds which do not ship that PR.
1 parent f8129a3 commit c65ee9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Syntaxes/Less.sublime-syntax

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ variables:
1616

1717
ident_start: (?:{{nmstart}}|@+{)
1818

19-
selector_begin: (?={{selector_start}}|&|@+{)
19+
property_or_selector_begin: (?={{ident_begin}}|{{selector_start}})
20+
21+
selector_begin: (?={{selector_start}}|@+{) # for backward compatibility only
2022
selector_end: (?=[;{}])
2123

2224
tag_name_begin: (?=[[:alpha:]]|@+{)
2325

24-
property_or_selector_begin: (?={{selector_start}}|[-&]|{{ident_start}})
25-
2626
# Less variables
2727

2828
at_rules: |-

0 commit comments

Comments
 (0)