From 2ad1f76b7d3cf09be0e2575251609c58afc2337e Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Fri, 12 Feb 2021 01:12:55 -0500 Subject: 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 --- queries/query/highlights.scm | 3 +++ 1 file changed, 3 insertions(+) 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\ *:")) -- cgit v1.2.3