From e2aa90e0f451ef768e5a57db58f7dd53b0647b93 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 8 Apr 2024 20:38:24 +0100 Subject: [PATCH] Add comments highlighting --- queries/highlights.scm | 6 ++++++ test/highlight/comments.bp | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 queries/highlights.scm create mode 100644 test/highlight/comments.bp diff --git a/queries/highlights.scm b/queries/highlights.scm new file mode 100644 index 0000000..f24958e --- /dev/null +++ b/queries/highlights.scm @@ -0,0 +1,6 @@ +[ + (line_comment) + (block_comment) +] @comment + +; vim: sw=2 foldmethod=marker diff --git a/test/highlight/comments.bp b/test/highlight/comments.bp new file mode 100644 index 0000000..6e93dc9 --- /dev/null +++ b/test/highlight/comments.bp @@ -0,0 +1,10 @@ +/* This is comment */ +/* <- comment + ^ comment + ^ comment + */ +// And another comment +/* <- comment + ^ comment + ^ comment + */