From acb5765591ce46dd4c7ed3b7fb157a4940d54fd2 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 4 Jun 2022 21:35:31 +0200 Subject: [PATCH] Make 'method' keyword more specific --- queries/highlights.scm | 4 ++++ test/highlight/object-oriented.tig | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/queries/highlights.scm b/queries/highlights.scm index 552317e..66130bf 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -26,6 +26,10 @@ "new" ] @keyword.constructor +[ + "method" +] @keyword.method + [ "array" (break_expression) diff --git a/test/highlight/object-oriented.tig b/test/highlight/object-oriented.tig index a0da303..79928bb 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 */ + /* <- keyword.method */ /* ^ method */ /* ^ variable */ }