diff options
| author | Jaehwang Jung <tomtomjhj@gmail.com> | 2024-03-08 19:09:51 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-03-16 20:51:16 +0800 |
| commit | 998b230a77b544761bae8aa7518d40b91a5c9559 (patch) | |
| tree | 45eb36a1cb2927598c8f1a4bf508f4291be04e49 /tests | |
| parent | bot(readme): update (diff) | |
| download | nvim-treesitter-998b230a77b544761bae8aa7518d40b91a5c9559.tar nvim-treesitter-998b230a77b544761bae8aa7518d40b91a5c9559.tar.gz nvim-treesitter-998b230a77b544761bae8aa7518d40b91a5c9559.tar.bz2 nvim-treesitter-998b230a77b544761bae8aa7518d40b91a5c9559.tar.lz nvim-treesitter-998b230a77b544761bae8aa7518d40b91a5c9559.tar.xz nvim-treesitter-998b230a77b544761bae8aa7518d40b91a5c9559.tar.zst nvim-treesitter-998b230a77b544761bae8aa7518d40b91a5c9559.zip | |
feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/query/highlights/capnp/test.capnp | 2 | ||||
| -rw-r--r-- | tests/query/highlights/gleam/function.gleam | 12 | ||||
| -rw-r--r-- | tests/query/highlights/gleam/type.gleam | 6 | ||||
| -rw-r--r-- | tests/query/highlights/hack/generics.hack | 6 | ||||
| -rw-r--r-- | tests/query/highlights/smali/baksmali_test_class.smali | 2 | ||||
| -rw-r--r-- | tests/query/highlights/t32/var.cmm | 4 | ||||
| -rw-r--r-- | tests/query/highlights/xhp-intro.hack | 4 |
7 files changed, 18 insertions, 18 deletions
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<T> { // ^ @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; |
