Skip to content

Commit

Permalink
add or to mixin guards
Browse files Browse the repository at this point in the history
  • Loading branch information
radium-v committed Oct 24, 2023
1 parent 9951dc9 commit 5bf2ccd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Syntaxes/Better Less.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ repository:

less-mixin-guards:
patterns:
- begin: \s*(and|not)?\s*(?=\()
- begin: \s*(and|not|or)?\s*(?=\()
beginCaptures:
'1': {name: keyword.operator.logical.less}
end: \)
Expand Down
2 changes: 1 addition & 1 deletion Syntaxes/Better Less.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -3709,7 +3709,7 @@
<array>
<dict>
<key>begin</key>
<string>\s*(and|not)?\s*(?=\()</string>
<string>\s*(and|not|or)?\s*(?=\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down
2 changes: 2 additions & 0 deletions Tests/syntax_test_less.less
Original file line number Diff line number Diff line change
Expand Up @@ -961,3 +961,5 @@ a {
color: #A1C0DE;
color: #ABBAFADE;
}

.orderOfEvaluation(@a1, @a2, @a3) when ((@a1) and (@a2) or (@a3)) {}

0 comments on commit 5bf2ccd

Please sign in to comment.