@@ -1134,7 +1134,7 @@ contexts:
1134
1134
# Special :dir() pseudo-class
1135
1135
# https://drafts.csswg.org/selectors-4/#the-dir-pseudo
1136
1136
pseudo-class-function-dir :
1137
- - match : (?i:dir){{break}}
1137
+ - match : (?i:dir)(?=\()
1138
1138
scope : meta.function-call.identifier.css entity.other.pseudo-class.css
1139
1139
set :
1140
1140
- meta_include_prototype : false
@@ -1150,7 +1150,7 @@ contexts:
1150
1150
# Special :lang() pseudo-class
1151
1151
# https://drafts.csswg.org/selectors-4/#the-lang-pseudo
1152
1152
pseudo-class-function-lang :
1153
- - match : (?i:lang){{break}}
1153
+ - match : (?i:lang)(?=\()
1154
1154
scope : meta.function-call.identifier.css entity.other.pseudo-class.css
1155
1155
set :
1156
1156
- meta_include_prototype : false
@@ -1177,7 +1177,7 @@ contexts:
1177
1177
| nth-child
1178
1178
| nth-last-of-type
1179
1179
| nth-of-type
1180
- ){{break}}
1180
+ )(?=\()
1181
1181
scope: meta.function-call.identifier.css entity.other.pseudo-class.css
1182
1182
set:
1183
1183
- meta_include_prototype: false
@@ -1207,7 +1207,7 @@ contexts:
1207
1207
1208
1208
# Functional Pseudo Classes with selector list
1209
1209
pseudo-class-function-with-selector-args :
1210
- - match : (?i:matches|not|has){{break}}
1210
+ - match : (?i:matches|not|has)(?=\()
1211
1211
scope : meta.function-call.identifier.css entity.other.pseudo-class.css
1212
1212
set :
1213
1213
- meta_include_prototype : false
0 commit comments