Skip to content

Commit

Permalink
Adjust syntax tests for ST4181+
Browse files Browse the repository at this point in the history
required by (PR sublimehq/Packages#4020)
  • Loading branch information
deathaxe committed Oct 4, 2024
1 parent 67f4986 commit b45a693
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 46 deletions.
18 changes: 2 additions & 16 deletions tests/syntax_test_script.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,16 @@
var i = 0;
// ^^^^^^^^^^^^ source.ts.embedded.html - source.ts source.ts
</script>
// <- source.ts.embedded.html - source.ts source.ts
// ^ source.ts.embedded.html - source.ts source.ts
// ^^^^^^^^^ meta.tag - source.ts


<script>
<!--
//^^^^^^ - meta.tag - source.ts
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.ts.embedded.html - source.ts source.ts - meta.tag - comment
var i = 0;
// ^^^^^^^^^^^^ source.ts.embedded.html - source.ts source.ts - meta.tag
-->
//^^ source.ts.embedded.html - meta.tag - comment
// ^^^^ - source.ts - meta.tag
// ^^^ comment.block.html punctuation.definition.comment.end.html
var i = 0;
// ^^^^^^^^^^^^ - source.ts
Expand All @@ -68,7 +63,6 @@
// ^ punctuation.definition.tag.end.html
// ^ - meta.tag - comment
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.ts.embedded.html - source.ts source.ts

var foo = 100;
// <- source.ts.embedded.html - source.ts source.ts
Expand All @@ -77,7 +71,6 @@
// ^^^ source.ts.embedded.html keyword.operator - comment

--> </script>
// ^ source.ts.embedded.html - source.ts source.ts
// ^^^^^^^^^^^^^^ - source.ts
// ^ - meta.tag - comment
// ^^^^^^^^^ meta.tag
Expand All @@ -98,7 +91,6 @@
// ^ punctuation.separator.key-value.html
// ^^^^^^^^^^^^^^^^^ string.quoted.double.html
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.js.embedded.html

var foo = 100;
// <- source.js.embedded.html - source.ts source.ts
Expand All @@ -107,7 +99,6 @@
// ^^^ source.js.embedded.html keyword.operator - comment

--> </script>
// ^ source.js.embedded.html - source.ts source.ts
// ^^^^^^^^^^^^^^ - source.ts
// ^ - meta.tag - comment
// ^^^^^^^^^ meta.tag
Expand All @@ -128,8 +119,6 @@
// <- source.ts.embedded.html - source.ts source.ts
// ^^^^^^^^^^^^^^^^ source.ts.embedded.html - source.ts source.ts
</script>
// <- source.ts.embedded.html - source.ts source.ts
// ^ source.ts.embedded.html - source.ts source.ts
// ^^^^^^^^^ meta.tag - source.ts
// ^^ punctuation.definition.tag.begin.html
// ^^^^^^ entity.name.tag.script.html
Expand All @@ -149,8 +138,6 @@

// <- source.ts.embedded.html - source.ts source.ts
</script>
// <- source.ts.embedded.html - source.ts source.ts
//^^ source.ts.embedded.html - source.ts source.ts
// ^^^^^^^^^ meta.tag - source.ts
// ^^ punctuation.definition.tag.begin.html
// ^^^^^^ entity.name.tag.script.html
Expand All @@ -161,11 +148,10 @@
<!--
// ^^^^^^^^^ - source.ts
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.ts.embedded.html - source.ts source.ts

// <- source.ts.embedded.html - source.ts source.ts
-->
// ^^^^^ source.ts.embedded.html - source.ts source.ts
// ^^^ comment.block.html punctuation.definition.comment.end.html - source.ts
// ^ - source.ts - comment - meta.tag
</script>
// <- - source.ts - comment - meta.tag
//^^ - source.ts - comment - meta.tag
Expand Down
42 changes: 12 additions & 30 deletions tests/syntax_test_style.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
// <- source.css.embedded.html

</style>
// <- source.css.embedded.html - source.css source.css
// ^ source.css.embedded.html - source.css source.css
// ^^^^^^^^ meta.tag - source.css
// ^^ punctuation.definition.tag.begin.html
// ^^^^^ entity.name.tag.style.html
Expand All @@ -49,11 +47,9 @@
<!--
//^^^^^^ - meta.tag - source.css
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.css.embedded.html - source.css source.css - meta.tag - comment
h1 {}
// ^^^^^^^ source.css.embedded.html - source.css source.css - meta.tag
-->
//^^ source.css.embedded.html - meta.tag - comment
// ^^^^ - source.css - meta.tag
// ^^^ comment.block.html punctuation.definition.comment.end.html
var i = 0;
Expand All @@ -73,13 +69,11 @@
// ^ punctuation.definition.tag.end.html
// ^ - meta.tag - comment
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.css.embedded.html - source.css source.css

h1 {}
// <- source.css.embedded.html - source.css source.css

--> </style>
// ^ source.css.embedded.html - source.css source.css
// ^^^^^^^^^^^^^ - source.css
// ^ - meta.tag - comment
// ^^^^^^^^ meta.tag
Expand All @@ -100,13 +94,11 @@
// ^ punctuation.separator.key-value.html
// ^^^^^^^^^^ string.quoted.double.html
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.css.embedded.html

h1 {}
// <- source.css.embedded.html - source.css source.css

--> </style>
// ^ source.css.embedded.html - source.css source.css
// ^^^^^^^^^^^^^ - source.css
// ^ - meta.tag - comment
// ^^^^^^^^ meta.tag
Expand All @@ -128,8 +120,6 @@
// <- source.css.embedded.html - source.css source.css

</style>
// <- source.css.embedded.html - source.css source.css
// ^ source.css.embedded.html - source.css source.css
// ^^^^^^^^ meta.tag - source.css
// ^^ punctuation.definition.tag.begin.html
// ^^^^^ entity.name.tag.style.html
Expand Down Expand Up @@ -158,26 +148,24 @@

// <- source.less.embedded.html - source.css source.css
</style>
// <- source.less.embedded.html - source.css source.css
//^^ source.less.embedded.html - source.css source.css
// ^^^^^^^^ meta.tag - source.css
// ^^ punctuation.definition.tag.begin.html
// ^^^^^ entity.name.tag.style.html
// ^ punctuation.definition.tag.end.html

<style lang="less">
<!--
// ^^^^^^^^^ - source.css
// ^^^^^^^^^ - source.less
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.less.embedded.html - source.css source.css

// <- source.less.embedded.html
-->
// ^^^^^ source.less.embedded.html - source.css source.css
// ^^^ comment.block.html punctuation.definition.comment.end.html - source.css
// ^ - source.css - comment - meta.tag
// ^^^ comment.block.html punctuation.definition.comment.end.html - source.less
// ^ - source.less - comment - meta.tag
</style>
// <- - source.css - comment - meta.tag
//^^ - source.css - comment - meta.tag
// ^^^^^^^^ meta.tag - source.css
// <- - source.less - comment - meta.tag
//^^ - source.less - comment - meta.tag
// ^^^^^^^^ meta.tag - source.less
// ^^ punctuation.definition.tag.begin.html
// ^^^^^ entity.name.tag.style.html
// ^ punctuation.definition.tag.end.html
Expand All @@ -195,8 +183,6 @@

// <- source.sass.embedded.html - source.css source.css
</style>
// <- source.sass.embedded.html - source.css source.css
//^^ source.sass.embedded.html - source.css source.css
// ^^^^^^^^ meta.tag - source.css
// ^^ punctuation.definition.tag.begin.html
// ^^^^^ entity.name.tag.style.html
Expand All @@ -206,11 +192,10 @@
<!--
// ^^^^^^^^^ - source.css
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.sass.embedded.html - source.css source.css

// <- source.sass.embedded.html
-->
// ^^^^^ source.sass.embedded.html - source.css source.css
// ^^^ comment.block.html punctuation.definition.comment.end.html - source.css
// ^ - source.css - comment - meta.tag
</style>
// <- - source.css - comment - meta.tag
//^^ - source.css - comment - meta.tag
Expand All @@ -232,8 +217,6 @@

// <- source.scss.embedded.html - source.css source.css
</style>
// <- source.scss.embedded.html - source.css source.css
//^^ source.scss.embedded.html - source.css source.css
// ^^^^^^^^ meta.tag - source.css
// ^^ punctuation.definition.tag.begin.html
// ^^^^^ entity.name.tag.style.html
Expand All @@ -243,11 +226,10 @@
<!--
// ^^^^^^^^^ - source.css
// ^^^^ comment.block.html punctuation.definition.comment.begin.html
// ^ source.scss.embedded.html - source.css source.css

// <- source.scss.embedded.html
-->
// ^^^^^ source.scss.embedded.html - source.css source.css
// ^^^ comment.block.html punctuation.definition.comment.end.html - source.css
// ^ - source.css - comment - meta.tag
</style>
// <- - source.css - comment - meta.tag
//^^ - source.css - comment - meta.tag
Expand Down

0 comments on commit b45a693

Please sign in to comment.