diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-09-18 20:15:23 +0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-10-15 08:49:01 -0700 |
| commit | 9b43ab819c756f01d2977cd481bdcaead6867174 (patch) | |
| tree | fb9fb63ed00958b7e7e71a3634554c77848f2aab /queries/perl | |
| parent | test(gitattributes): add tests for highlights (diff) | |
| download | nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.gz nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.bz2 nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.lz nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.xz nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.tar.zst nvim-treesitter-9b43ab819c756f01d2977cd481bdcaead6867174.zip | |
highlights: use @preproc where appropriate
Diffstat (limited to 'queries/perl')
| -rw-r--r-- | queries/perl/highlights.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/perl/highlights.scm b/queries/perl/highlights.scm index c355dbb85..9767ce477 100644 --- a/queries/perl/highlights.scm +++ b/queries/perl/highlights.scm @@ -85,6 +85,9 @@ (comments) @comment (comments) @spell +((source_file . (comments) @preproc) + (#match? @preproc "^#!/")) + ; POD should be handled specially with its own embedded subtype but for now ; we'll just have to do this. (pod_statement) @text |
