From 558e45aeed6fe6b977aa55462b9652e7b21ec451 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 3 Jun 2022 11:43:43 +0200 Subject: [PATCH] Add ':' as delimiter --- queries/highlights.scm | 1 + test/highlight/operators.tig | 80 +++++++++++++++++++----------------- 2 files changed, 44 insertions(+), 37 deletions(-) diff --git a/queries/highlights.scm b/queries/highlights.scm index cda9f5d..6fcbeb3 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -41,6 +41,7 @@ [ "," ";" + ":" "." ] @punctuation.delimiter diff --git a/test/highlight/operators.tig b/test/highlight/operators.tig index 69b8aa2..21e6009 100644 --- a/test/highlight/operators.tig +++ b/test/highlight/operators.tig @@ -1,42 +1,48 @@ -( -/* <- punctuation.bracket */ - - -1 | 2 & 3 + 4 * 5; - /* <- operator */ - /* ^ operator */ - /* ^ operator */ - /* ^ operator */ - /* ^ operator */ - /* ^ punctuation.delimiter */ - - 12 >= 27; - /* ^ operator */ - 12 <= 27; - /* ^ operator */ - 12 = 27; - /* ^ operator */ - 12 <> 27; - /* ^ operator */ - 12 < 27; - /* ^ operator */ - 12 > 27; - /* ^ operator */ - - record.field; +let + var a : int := 42 /* ^ punctuation.delimiter */ + /* ^ operator */ +in + ( + /* <- punctuation.bracket */ - func(a, b); - /* ^ punctuation.bracket */ - /* ^ punctuation.bracket */ - /* ^ punctuation.delimiter */ + -1 | 2 & 3 + 4 * 5; + /* <- operator */ + /* ^ operator */ + /* ^ operator */ + /* ^ operator */ + /* ^ operator */ + /* ^ punctuation.delimiter */ - record_type { }; - /* ^ punctuation.bracket */ - /* ^ punctuation.bracket */ + 12 >= 27; + /* ^ operator */ + 12 <= 27; + /* ^ operator */ + 12 = 27; + /* ^ operator */ + 12 <> 27; + /* ^ operator */ + 12 < 27; + /* ^ operator */ + 12 > 27; + /* ^ operator */ - array[42] - /* ^ punctuation.bracket */ - /* ^ punctuation.bracket */ + record.field; + /* ^ punctuation.delimiter */ -) -/* <- punctuation.bracket */ + func(a, b); + /* ^ punctuation.bracket */ + /* ^ punctuation.bracket */ + /* ^ punctuation.delimiter */ + + record_type { }; + /* ^ punctuation.bracket */ + /* ^ punctuation.bracket */ + + array[42] + /* ^ punctuation.bracket */ + /* ^ punctuation.bracket */ + + ) + /* <- punctuation.bracket */ +end