summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-02-12 01:12:55 -0500
committerThomas Vigouroux <tomvig38@gmail.com>2021-02-12 08:02:00 +0100
commit2ad1f76b7d3cf09be0e2575251609c58afc2337e (patch)
tree8c5c64b80afa30b0f0a0b0e35d8f4cb63bd9b6d1 /queries
parentdb0ccfe9ab9a146cc9f5b4be411645c185ecfa39 (diff)
Query: highlight modeline
Matches the first comment and the beginning from the pattern https://github.com/neovim/neovim/blob/52397aaa0d1e2d4ce1320c73761cf316fc608ffb/runtime/lua/vim/treesitter/query.lua#L25
Diffstat (limited to 'queries')
-rw-r--r--queries/query/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm
index 63c791f7..2ada0734 100644
--- a/queries/query/highlights.scm
+++ b/queries/query/highlights.scm
@@ -18,3 +18,6 @@
"("
")"
] @punctuation.bracket
+
+((program . (comment) @include)
+ (#match? @include "^;\ +inherits\ *:"))