Skip to content

Commit 663f239

Browse files
committed
Fix keyword word boundaries
1 parent 5610e7f commit 663f239

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Syntaxes/Less.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ contexts:
982982
scope: keyword.operator.merge.less
983983

984984
less-logical-operators:
985-
- match: \b(?i:and|or|not)\b
985+
- match: \b(?i:and|or|not){{break}}
986986
scope: keyword.operator.logical.less
987987

988988
less-variadic-operators:

tests/syntax_test_less.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,6 +2001,15 @@ header {
20012001
// ^^ meta.number.integer.decimal.css constant.numeric.value.css
20022002
// ^ punctuation.section.group.end.less
20032003
// ^ punctuation.terminator.rule.css
2004+
2005+
test: not-allowed;
2006+
// ^^^^^^^^^^^ support.constant.property-value.css - keyword.operator
2007+
2008+
test: and-not;
2009+
// ^^^^^^^ support.constant.property-value.css - keyword.operator
2010+
2011+
test: or-not;
2012+
// ^^^^^^ support.constant.property-value.css - keyword.operator
20042013
}
20052014

20062015
.test-escape-functions {

0 commit comments

Comments
 (0)