From b9376ccd35cd7844ba8ab1898fc618991e739caf Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 2 Jun 2022 17:25:31 +0200 Subject: [PATCH] Add comment syntax highlighting --- queries/highlights.scm | 3 +++ test/highlight/comment.tig | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 queries/highlights.scm create mode 100644 test/highlight/comment.tig diff --git a/queries/highlights.scm b/queries/highlights.scm new file mode 100644 index 0000000..2135031 --- /dev/null +++ b/queries/highlights.scm @@ -0,0 +1,3 @@ +(comment) @comment + +; vim: sw=2 foldmethod=marker diff --git a/test/highlight/comment.tig b/test/highlight/comment.tig new file mode 100644 index 0000000..b0e8262 --- /dev/null +++ b/test/highlight/comment.tig @@ -0,0 +1,5 @@ +/* This is /* a nested */ comment */ +/* <- comment + ^ comment + ^ comment + */