From 998b230a77b544761bae8aa7518d40b91a5c9559 Mon Sep 17 00:00:00 2001 From: Jaehwang Jung Date: Fri, 8 Mar 2024 19:09:51 +0900 Subject: feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/query/highlights/capnp/test.capnp | 2 +- tests/query/highlights/gleam/function.gleam | 12 ++++++------ tests/query/highlights/gleam/type.gleam | 6 +++--- tests/query/highlights/hack/generics.hack | 6 +++--- tests/query/highlights/smali/baksmali_test_class.smali | 2 +- tests/query/highlights/t32/var.cmm | 4 ++-- tests/query/highlights/xhp-intro.hack | 4 ++-- 7 files changed, 18 insertions(+), 18 deletions(-) (limited to 'tests') diff --git a/tests/query/highlights/capnp/test.capnp b/tests/query/highlights/capnp/test.capnp index ce12b07ac..9480affd3 100644 --- a/tests/query/highlights/capnp/test.capnp +++ b/tests/query/highlights/capnp/test.capnp @@ -328,7 +328,7 @@ struct TestEmptyStruct {} struct TestConstants { const voidConst :Void = void; -# ^^^^^ @type.qualifier +# ^^^^^ @keyword.modifier const boolConst :Bool = true; const int8Const :Int8 = -123; const int16Const :Int16 = -12345; diff --git a/tests/query/highlights/gleam/function.gleam b/tests/query/highlights/gleam/function.gleam index ff2b690ca..f1924aaf9 100644 --- a/tests/query/highlights/gleam/function.gleam +++ b/tests/query/highlights/gleam/function.gleam @@ -1,5 +1,5 @@ pub fn add(x: Int, y: Int) -> Int { -// <- @type.qualifier +// <- @keyword.modifier // ^^ @keyword.function // ^^^ @function // ^ @punctuation.bracket @@ -18,7 +18,7 @@ pub fn add(x: Int, y: Int) -> Int { // <- @punctuation.bracket pub fn twice(f: fn(t) -> t, x: t) -> t { -// <- @type.qualifier +// <- @keyword.modifier // ^ @keyword.function // ^^^^^ @function // ^ @punctuation.bracket @@ -100,8 +100,8 @@ fn replace( // <- @punctuation.bracket pub external fn random_float() -> Float = "rand" "uniform" -// <- @type.qualifier -// ^^^^^^^^ @type.qualifier +// <- @keyword.modifier +// ^^^^^^^^ @keyword.modifier // ^^ @keyword.function // ^^^^^^^^^^^^ @function // ^ @punctuation.bracket @@ -113,8 +113,8 @@ pub external fn random_float() -> Float = "rand" "uniform" // ^^^^^^^^^ @function pub external fn inspect(a) -> a = "Elixir.IO" "inspect" -// <- @type.qualifier -// ^^^^^^^^ @type.qualifier +// <- @keyword.modifier +// ^^^^^^^^ @keyword.modifier // ^^ @keyword.function // ^^^^^^^ @function // ^ @punctuation.bracket diff --git a/tests/query/highlights/gleam/type.gleam b/tests/query/highlights/gleam/type.gleam index da840c194..8ee82419e 100644 --- a/tests/query/highlights/gleam/type.gleam +++ b/tests/query/highlights/gleam/type.gleam @@ -1,5 +1,5 @@ pub type Cat { -// <- @type.qualifier +// <- @keyword.modifier // ^^^^ @keyword // ^^^ @type // ^ @punctuation.bracket @@ -54,8 +54,8 @@ type Box(inner_type) { } pub opaque type Counter { -// <- @type.qualifier -// ^^^^^^ @type.qualifier +// <- @keyword.modifier +// ^^^^^^ @keyword.modifier // ^^^^ @keyword // ^^^^^^^ @type // ^ @punctuation.bracket diff --git a/tests/query/highlights/hack/generics.hack b/tests/query/highlights/hack/generics.hack index fc41a86a9..50bd50e34 100644 --- a/tests/query/highlights/hack/generics.hack +++ b/tests/query/highlights/hack/generics.hack @@ -2,21 +2,21 @@ class Box { // ^ @type // ^ @type protected T $data; - // ^ @type.qualifier + // ^ @keyword.modifier // ^ @type public function __construct(T $data) { // ^ @type // ^ @variable.parameter // ^ @keyword.function - // ^ @type.qualifier + // ^ @keyword.modifier // ^ @function.method $this->data = $data; } public function getData(): T { // ^ @function.method - // ^ @type.qualifier + // ^ @keyword.modifier return $this->data; // ^ @operator // ^ @variable.builtin diff --git a/tests/query/highlights/smali/baksmali_test_class.smali b/tests/query/highlights/smali/baksmali_test_class.smali index 6412f8784..ee3bc6ad4 100644 --- a/tests/query/highlights/smali/baksmali_test_class.smali +++ b/tests/query/highlights/smali/baksmali_test_class.smali @@ -1,6 +1,6 @@ .class public Lbaksmali/test/class; # <- @keyword -# ^^^^^^ @type.qualifier +# ^^^^^^ @keyword.modifier .super Ljava/lang/Object; # ^ @character.special # ^^^^ @type.builtin diff --git a/tests/query/highlights/t32/var.cmm b/tests/query/highlights/t32/var.cmm index 8e251afef..b8dc463b5 100644 --- a/tests/query/highlights/t32/var.cmm +++ b/tests/query/highlights/t32/var.cmm @@ -39,8 +39,8 @@ Var.Assign sp = &s.n+offset Var.Assign padd = (CAddition const * volatile)&d ; ^ @variable ; ^ @type -; ^ @type.qualifier -; ^ @type.qualifier +; ^ @keyword.modifier +; ^ @keyword.modifier ; ^ @variable Var.Assign e1 = (enum e2)&e ; ^ @variable diff --git a/tests/query/highlights/xhp-intro.hack b/tests/query/highlights/xhp-intro.hack index 06f7e30a2..0f8cffe02 100644 --- a/tests/query/highlights/xhp-intro.hack +++ b/tests/query/highlights/xhp-intro.hack @@ -5,8 +5,8 @@ use type Facebook\XHP\HTML\{XHPHTMLHelpers, a, form}; final xhp class a_post extends x\element { -// ^ @type.qualifier -// ^ @type.qualifier +// ^ @keyword.modifier +// ^ @keyword.modifier // ^ @keyword use XHPHTMLHelpers; -- cgit v1.2.3-70-g09d2