Skip to content

Commit

Permalink
Update wildcard test cases
Browse files Browse the repository at this point in the history
This extends wildcard related syntax test assertions to make them compatible
with both ST <4149 and >=4149.
  • Loading branch information
deathaxe committed Feb 28, 2024
1 parent 88bffc3 commit c2fe7c4
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Tests/syntax_test_css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
*.* {}
/* ^^^ meta.selector.css */
/* ^ constant.other.wildcard.asterisk.css - punctuation */
/* ^ constant.other.wildcard.asterisk.css - punctuation, variable.language.wildcard.asterisk.css - punctuation */
/* ^ entity.other.attribute-name.class.css punctuation.definition.entity.css */
/* ^ constant.other.wildcard.asterisk.css - punctuation */
/* ^ constant.other.wildcard.asterisk.css - punctuation, variable.language.wildcard.asterisk.css - punctuation */
# {}
/*^^ - meta.selector.css */
Expand All @@ -96,7 +96,7 @@
/* ^^^ meta.selector.css */
/* ^^ - meta.selector.css */
/* ^ entity.other.attribute-name.id.css punctuation.definition.entity.css */
/* ^ constant.other.wildcard.asterisk.css - punctuation */
/* ^ constant.other.wildcard.asterisk.css - punctuation, variable.language.wildcard.asterisk.css - punctuation */
#01 {}
/*^^ - meta.selector.css */
Expand Down Expand Up @@ -2226,29 +2226,29 @@
// /* ^^ - meta.string - string */
// /* ^^^^^^^^^^ meta.string.css string.quoted.double.css */
// /* ^^^^ - meta.string - string */
// /* ^ constant.other.wildcard.asterisk.css */
// /* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
// /* ^^ constant.character.escape.css */
// /* ^ punctuation.separator.sequence.css */
// /* ^ punctuation.separator.sequence.css */
// /* ^ constant.other.wildcard.asterisk.css */
// /* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
// /* ^ punctuation.separator.sequence.css */
// /* ^ - constant.other.wildcard */
// /* ^^ constant.character.escape.css */
.test-pseudo-class-tag:not(*) {}
/* ^ punctuation.definition.pseudo-class.css - entity */
/* ^^^ entity.other.pseudo-class.css */
/* ^ constant.other.wildcard.asterisk.css */
/* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
.test-pseudo-class-tag:is(*) {}
/* ^ punctuation.definition.pseudo-class.css - entity */
/* ^^ entity.other.pseudo-class.css */
/* ^ constant.other.wildcard.asterisk.css */
/* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
.test-pseudo-class-tag:where(*) {}
/* ^ punctuation.definition.pseudo-class.css - entity */
/* ^^^^^ entity.other.pseudo-class.css */
/* ^ constant.other.wildcard.asterisk.css */
/* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
.test-pseudo-elements::before {}
/* ^^ punctuation.definition.pseudo-element.css - entity */
Expand Down Expand Up @@ -2374,12 +2374,12 @@
.test-attribute-selectors-namespaces[n|a=""][*|a=""][|att][*|*] {}
/* ^ entity.other.namespace-prefix.css */
/* ^ punctuation.separator.namespace.css */
/* ^ constant.other.wildcard.asterisk.css */
/* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
/* ^ punctuation.separator.namespace.css */
/* ^ punctuation.separator.namespace.css */
/* ^ constant.other.wildcard.asterisk.css */
/* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
/* ^ punctuation.separator.namespace.css */
/* ^ constant.other.wildcard.asterisk.css */
/* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
.test-attribute-selectors-operators[a=""][a~=""][a|=""][a^=""][a$=""][a*=""] {}
/* ^ keyword.operator.logical.css */
Expand Down Expand Up @@ -2420,7 +2420,7 @@
/* ^ meta.selector.css - meta.group */
*.test-universal-selector {}
/* ^ constant.other.wildcard.asterisk.css */
/* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
.test-combinators >>> a >> a > a + b ~ a || td {}
/* ^^^ keyword.operator.combinator.css */
Expand Down Expand Up @@ -3280,7 +3280,7 @@
.test-attr-function {
top: attr(*|c);
/* ^^^^ support.function.attr.css */
/* ^ constant.other.wildcard.asterisk.css */
/* ^ constant.other.wildcard.asterisk.css, variable.language.wildcard.asterisk.css */
/* ^ punctuation.separator.namespace.css */
/* ^ entity.other.attribute-name.css */

Expand Down

0 comments on commit c2fe7c4

Please sign in to comment.