Skip to content

Commit 226460d

Browse files
committed
Remove support for the old '-' escape
It hasn't worked for almost two years now.
1 parent 69ee437 commit 226460d

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

Package/CSScheme.YAML-tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ repository:
4545
- include: '#selector-patterns'
4646

4747
selector-patterns:
48-
# all backslash-escape variants are for the SASS pre-processor
4948
patterns:
5049
- include: '#selector-operators'
5150
- name: constant.language.wildcard.csscheme # our special "settings" selector
@@ -58,9 +57,10 @@ repository:
5857
match: '.'
5958

6059
selector-operators:
60+
# all backslash-escape variants are for the SASS pre-processor
6161
patterns:
6262
- name: keyword.operator.subtraction.csscheme
63-
match: -|'-'|\\- # '-' is an escape for the SASS pre-processor
63+
match: -|\\-
6464
- name: keyword.operator.intersection.csscheme
6565
match: '&|\\&'
6666
- name: keyword.operator.union.csscheme

Package/CSScheme.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
<array>
377377
<dict>
378378
<key>match</key>
379-
<string>-|'-'|\\-</string>
379+
<string>-|\\-</string>
380380
<key>name</key>
381381
<string>keyword.operator.subtraction.csscheme</string>
382382
</dict>

Package/SCSScheme.YAML-tmLanguage

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ repository:
256256
match: '.'
257257

258258
selector_operators:
259+
# all backslash-escape variants are for the SASS pre-processor
259260
patterns:
260261
- name: keyword.operator.subtraction.csscheme
261-
match: -|'-'|\\- # '-' and \\- are escapes for the SASS pre-processor
262+
match: -|\\-
262263
- name: keyword.operator.intersection.csscheme
263264
match: '\\&'
264265
- name: keyword.operator.union.csscheme

Package/SCSScheme.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@
12581258
<array>
12591259
<dict>
12601260
<key>match</key>
1261-
<string>-|'-'|\\-</string>
1261+
<string>-|\\-</string>
12621262
<key>name</key>
12631263
<string>keyword.operator.subtraction.csscheme</string>
12641264
</dict>

tinycsscheme/dumper.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ def datafy_ruleset(self, rset):
146146
# Notably, this allows "numeric classes"
147147
# and all operators (including braces).
148148
sel = sel.replace("\\", "")
149-
# '-' was used initially for only the subtract operator
150-
# but is not recognized anymore starting around Dec 2014.
151-
sel = sel.replace("'-'", "-")
152149
# Also replace multiple whitespaces (including newlines)
153150
# with a single space;
154151
# we don't know how exactly it will perform otherwise.

0 commit comments

Comments
 (0)