Skip to content

Commit e73f09c

Browse files
brenton-at-piecesargyleink
authored andcommitted
fix dash escape
Fixes: #224 Inside of a character range, escape `-` to be treated literally instead of as `[a-z]` range notation in Oniguruma
1 parent 2180e2d commit e73f09c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CSS3.sublime-syntax

+3-3
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ contexts:
10021002
- meta_scope: meta.declaration-list.css
10031003
- match: '(?=})'
10041004
pop: true
1005-
- match: '(?=@media|@supports|@layer|@container)|(?=[\w.:#\[*-&][^;}]*\{)'
1005+
- match: '(?=@media|@supports|@layer|@container)|(?=[\w.:#\[*\-&][^;}]*\{)'
10061006
push:
10071007
- match: '(?=})'
10081008
scope: punctuation.section.declaration-list.end.css
@@ -10890,7 +10890,7 @@ contexts:
1089010890
# property2: value2;
1089110891
# }
1089210892
rule:
10893-
- match: '(?=[\w.:#\[*-&])'
10893+
- match: '(?=[\w.:#\[*\-&])'
1089410894
push:
1089510895
- meta_scope: meta.rule.css
1089610896
- match: '}'
@@ -10916,7 +10916,7 @@ contexts:
1091610916
selector:
1091710917
# This match applies a single meta.selector.css scope to a comma-separated
1091810918
# list of selectors, so that they appear as one entry in the Symbol List.
10919-
- match: '(?=[\w.:#\[*-&])'
10919+
- match: '(?=[\w.:#\[*\-&])'
1092010920
push:
1092110921
- meta_content_scope: meta.selector.css
1092210922
- match: '(?={)'

0 commit comments

Comments
 (0)