From b45a6934f2a815971c186f8dd2f58b966356c900 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Fri, 4 Oct 2024 18:28:38 +0200 Subject: [PATCH] Adjust syntax tests for ST4181+ required by (PR https://github.com/sublimehq/Packages/pull/4020) --- tests/syntax_test_script.astro | 18 ++------------- tests/syntax_test_style.astro | 42 ++++++++++------------------------ 2 files changed, 14 insertions(+), 46 deletions(-) diff --git a/tests/syntax_test_script.astro b/tests/syntax_test_script.astro index d69f528..1d345fc 100644 --- a/tests/syntax_test_script.astro +++ b/tests/syntax_test_script.astro @@ -38,8 +38,6 @@ var i = 0; // ^^^^^^^^^^^^ source.ts.embedded.html - source.ts source.ts -// <- source.ts.embedded.html - source.ts source.ts -// ^ source.ts.embedded.html - source.ts source.ts // ^^^^^^^^^ meta.tag - source.ts @@ -47,12 +45,9 @@ -//^^ source.ts.embedded.html - meta.tag - comment -// ^^^^ - source.ts - meta.tag // ^^^ comment.block.html punctuation.definition.comment.end.html var i = 0; // ^^^^^^^^^^^^ - source.ts @@ -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 @@ -77,7 +71,6 @@ // ^^^ source.ts.embedded.html keyword.operator - comment --> -// ^ source.ts.embedded.html - source.ts source.ts // ^^^^^^^^^^^^^^ - source.ts // ^ - meta.tag - comment // ^^^^^^^^^ meta.tag @@ -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 @@ -107,7 +99,6 @@ // ^^^ source.js.embedded.html keyword.operator - comment --> -// ^ source.js.embedded.html - source.ts source.ts // ^^^^^^^^^^^^^^ - source.ts // ^ - meta.tag - comment // ^^^^^^^^^ meta.tag @@ -128,8 +119,6 @@ // <- source.ts.embedded.html - source.ts source.ts // ^^^^^^^^^^^^^^^^ source.ts.embedded.html - source.ts source.ts -// <- 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 @@ -149,8 +138,6 @@ // <- source.ts.embedded.html - source.ts source.ts -// <- 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 @@ -161,11 +148,10 @@ -// ^^^^^ source.ts.embedded.html - source.ts source.ts // ^^^ comment.block.html punctuation.definition.comment.end.html - source.ts -// ^ - source.ts - comment - meta.tag // <- - source.ts - comment - meta.tag //^^ - source.ts - comment - meta.tag diff --git a/tests/syntax_test_style.astro b/tests/syntax_test_style.astro index 92cb9d0..350bd37 100644 --- a/tests/syntax_test_style.astro +++ b/tests/syntax_test_style.astro @@ -37,8 +37,6 @@ // <- source.css.embedded.html -// <- 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 @@ -49,11 +47,9 @@ -//^^ source.css.embedded.html - meta.tag - comment // ^^^^ - source.css - meta.tag // ^^^ comment.block.html punctuation.definition.comment.end.html var i = 0; @@ -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 --> -// ^ source.css.embedded.html - source.css source.css // ^^^^^^^^^^^^^ - source.css // ^ - meta.tag - comment // ^^^^^^^^ meta.tag @@ -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 --> -// ^ source.css.embedded.html - source.css source.css // ^^^^^^^^^^^^^ - source.css // ^ - meta.tag - comment // ^^^^^^^^ meta.tag @@ -128,8 +120,6 @@ // <- source.css.embedded.html - source.css source.css -// <- 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 @@ -158,8 +148,6 @@ // <- source.less.embedded.html - source.css source.css -// <- 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 @@ -167,17 +155,17 @@ -// <- - 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 @@ -195,8 +183,6 @@ // <- source.sass.embedded.html - source.css source.css -// <- 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 @@ -206,11 +192,10 @@ -// ^^^^^ source.sass.embedded.html - source.css source.css // ^^^ comment.block.html punctuation.definition.comment.end.html - source.css -// ^ - source.css - comment - meta.tag // <- - source.css - comment - meta.tag //^^ - source.css - comment - meta.tag @@ -232,8 +217,6 @@ // <- source.scss.embedded.html - source.css source.css -// <- 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 @@ -243,11 +226,10 @@ -// ^^^^^ source.scss.embedded.html - source.css source.css // ^^^ comment.block.html punctuation.definition.comment.end.html - source.css -// ^ - source.css - comment - meta.tag // <- - source.css - comment - meta.tag //^^ - source.css - comment - meta.tag