From 724abf12e864bc8cbc9df74b257724be2c3731a8 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 22 Nov 2022 10:28:29 +0100 Subject: [PATCH] Fix 'method' keyword high-lighting It makes more sense to add it to `keyword.function`, neovim does not have a `keyword.method` category, and `method` is for the method name itself. --- queries/highlights.scm | 4 +--- test/highlight/object-oriented.tig | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/queries/highlights.scm b/queries/highlights.scm index fac91c9..43d1397 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -16,6 +16,7 @@ ; Keywords {{{ [ "function" + "method" "primitive" ] @keyword.function @@ -30,9 +31,6 @@ "new" ] @keyword.constructor -[ - "method" -] @keyword.method [ "import" diff --git a/test/highlight/object-oriented.tig b/test/highlight/object-oriented.tig index 930eabf..2a71476 100644 --- a/test/highlight/object-oriented.tig +++ b/test/highlight/object-oriented.tig @@ -12,7 +12,7 @@ let var a := 12 method meth() : int = self.a - /* <- keyword.method */ + /* <- keyword.function */ /* ^ method */ /* ^ variable.builtin */ }