From 445d8b6159c89cc82702e4cea3b0aeade2bcc351 Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Sat, 22 Apr 2023 12:51:30 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20update=20codegen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test_data/inline/err/import_attribute_err.js | 2 +- crates/rome_js_unicode_table/src/tables.rs | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/rome_js_parser/test_data/inline/err/import_attribute_err.js b/crates/rome_js_parser/test_data/inline/err/import_attribute_err.js index 7fbec80fc90..d3f26f98235 100644 --- a/crates/rome_js_parser/test_data/inline/err/import_attribute_err.js +++ b/crates/rome_js_parser/test_data/inline/err/import_attribute_err.js @@ -2,7 +2,7 @@ import "foo" with { type, "json" }; import "bar" \u{61}ith { type: "json" }; import { foo } with { type: "json" }; import "lorem" -assert { type: "json" } +with { type: "json" } import foo2 from "foo.json" with { "type": "json", type: "html", "type": "js" }; import "x" with; import ipsum from "ipsum.json" with { type: "json", lazy: true, startAtLine: 1 }; diff --git a/crates/rome_js_unicode_table/src/tables.rs b/crates/rome_js_unicode_table/src/tables.rs index 3ed00b03214..863365853a9 100644 --- a/crates/rome_js_unicode_table/src/tables.rs +++ b/crates/rome_js_unicode_table/src/tables.rs @@ -787,9 +787,7 @@ pub mod derived_property { ('𱍐', '𲎯'), ('\u{e0100}', '\u{e01ef}'), ]; - pub fn ID_Continue(c: char) -> bool { - super::bsearch_range_table(c, ID_Continue_table) - } + pub fn ID_Continue(c: char) -> bool { super::bsearch_range_table(c, ID_Continue_table) } pub const ID_Start_table: &[(char, char)] = &[ ('A', 'Z'), ('a', 'z'), @@ -1451,7 +1449,5 @@ pub mod derived_property { ('𰀀', '𱍊'), ('𱍐', '𲎯'), ]; - pub fn ID_Start(c: char) -> bool { - super::bsearch_range_table(c, ID_Start_table) - } + pub fn ID_Start(c: char) -> bool { super::bsearch_range_table(c, ID_Start_table) } }