fix(query): allow multiline modeline (inherits/extends)

This commit is contained in:
Emilia Simmons 2023-05-18 11:30:10 -04:00 committed by Amaan Qureshi
parent 1aea2eee29
commit 865483f8d1

View file

@ -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"))