diff --git a/queries/tiger/highlights.scm b/queries/tiger/highlights.scm index cbab4fae8..f4256a34c 100644 --- a/queries/tiger/highlights.scm +++ b/queries/tiger/highlights.scm @@ -23,6 +23,7 @@ [ "function" "primitive" + "method" ] @keyword.function [ @@ -32,13 +33,9 @@ "while" ] @repeat -[ - "new" -] @constructor +"new" @keyword.operator -[ - "method" -] @method +"import" @include [ "array" @@ -46,7 +43,6 @@ "else" "end" "if" - "import" "in" "let" "of" diff --git a/tests/query/highlights/tiger/imports.tig b/tests/query/highlights/tiger/imports.tig index c4366690d..068dc4810 100644 --- a/tests/query/highlights/tiger/imports.tig +++ b/tests/query/highlights/tiger/imports.tig @@ -1,4 +1,4 @@ import "lib.tih" -/* <- keyword */ +/* <- include */ /* ^ string.special */ /* vim: set ft=tiger: */ diff --git a/tests/query/highlights/tiger/keywords.tig b/tests/query/highlights/tiger/keywords.tig index 11650977b..862a531cd 100644 --- a/tests/query/highlights/tiger/keywords.tig +++ b/tests/query/highlights/tiger/keywords.tig @@ -10,7 +10,7 @@ let /* <- keyword.function */ import "lib.tih" - /* <- keyword */ + /* <- include */ type array_of_int = array of int /* <- keyword */ diff --git a/tests/query/highlights/tiger/object-oriented.tig b/tests/query/highlights/tiger/object-oriented.tig index 22e6dac19..b09b82b19 100644 --- a/tests/query/highlights/tiger/object-oriented.tig +++ b/tests/query/highlights/tiger/object-oriented.tig @@ -12,13 +12,13 @@ let var a := 12 method meth() : int = self.a - /* <- method */ + /* <- keyword.function */ /* ^ method */ /* ^ variable.builtin */ } var object := new B - /* ^ constructor */ + /* ^ keyword.operator */ in object.a := 27; /* ^ property */