diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-02-12 01:12:55 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-02-12 08:02:00 +0100 |
| commit | 2ad1f76b7d3cf09be0e2575251609c58afc2337e (patch) | |
| tree | 8c5c64b80afa30b0f0a0b0e35d8f4cb63bd9b6d1 /queries/query | |
| parent | fix: remove debug print on query cache invalidation (diff) | |
| download | nvim-treesitter-2ad1f76b7d3cf09be0e2575251609c58afc2337e.tar nvim-treesitter-2ad1f76b7d3cf09be0e2575251609c58afc2337e.tar.gz nvim-treesitter-2ad1f76b7d3cf09be0e2575251609c58afc2337e.tar.bz2 nvim-treesitter-2ad1f76b7d3cf09be0e2575251609c58afc2337e.tar.lz nvim-treesitter-2ad1f76b7d3cf09be0e2575251609c58afc2337e.tar.xz nvim-treesitter-2ad1f76b7d3cf09be0e2575251609c58afc2337e.tar.zst nvim-treesitter-2ad1f76b7d3cf09be0e2575251609c58afc2337e.zip | |
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/query')
| -rw-r--r-- | queries/query/highlights.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm index 63c791f79..2ada07342 100644 --- a/queries/query/highlights.scm +++ b/queries/query/highlights.scm @@ -18,3 +18,6 @@ "(" ")" ] @punctuation.bracket + +((program . (comment) @include) + (#match? @include "^;\ +inherits\ *:")) |
