From 869b0bf79a831b867818d106bcf9bb5f52c4ab68 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 4 Jun 2022 20:31:54 +0200 Subject: [PATCH] Add meta-variable keywords high-lighting --- queries/highlights.scm | 6 ++++++ test/highlight/meta-variables.tig | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 test/highlight/meta-variables.tig diff --git a/queries/highlights.scm b/queries/highlights.scm index cb4a85f..44c4ef5 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -41,6 +41,12 @@ "type" "var" "while" + + "_cast" + "_chunks" + "_exp" + "_lvalue" + "_namety" ] @keyword ; }}} diff --git a/test/highlight/meta-variables.tig b/test/highlight/meta-variables.tig new file mode 100644 index 0000000..5c239cc --- /dev/null +++ b/test/highlight/meta-variables.tig @@ -0,0 +1,13 @@ +let + _chunks(42) + /* <- keyword */ + +in + _lvalue(12) : _namety(42) := _cast("I'm So Meta Even This Acronym", string); + /* <- keyword */ + /* ^ keyword */ + /* ^ keyword */ + + _exp(42) + /* <- keyword */ +end