diff options
| author | Emilia Simmons <emilia.milisims@gmail.com> | 2023-05-18 11:30:10 -0400 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-05-18 20:01:00 -0400 |
| commit | 865483f8d1c6e263a1a9efd46f84e78ec5fa31d4 (patch) | |
| tree | c9714b356fdc59d39271adb72012c70850044dfa /queries/query | |
| parent | refactor: add notes for swift (diff) | |
| download | nvim-treesitter-865483f8d1c6e263a1a9efd46f84e78ec5fa31d4.tar nvim-treesitter-865483f8d1c6e263a1a9efd46f84e78ec5fa31d4.tar.gz nvim-treesitter-865483f8d1c6e263a1a9efd46f84e78ec5fa31d4.tar.bz2 nvim-treesitter-865483f8d1c6e263a1a9efd46f84e78ec5fa31d4.tar.lz nvim-treesitter-865483f8d1c6e263a1a9efd46f84e78ec5fa31d4.tar.xz nvim-treesitter-865483f8d1c6e263a1a9efd46f84e78ec5fa31d4.tar.zst nvim-treesitter-865483f8d1c6e263a1a9efd46f84e78ec5fa31d4.zip | |
fix(query): allow multiline modeline (inherits/extends)
Diffstat (limited to 'queries/query')
| -rw-r--r-- | queries/query/highlights.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm index ee31a7e7e..b9c09fb95 100644 --- a/queries/query/highlights.scm +++ b/queries/query/highlights.scm @@ -27,8 +27,8 @@ ((parameters (identifier) @number) (#match? @number "^[-+]?[0-9]+(.[0-9]+)?$")) -((program . (comment) @include) +((program . (comment)* . (comment) @include) (#match? @include "^;\ +inherits\ *:")) -((program . (comment) @preproc) +((program . (comment)* . (comment) @preproc) (#match? @preproc "^; +extends")) |
