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/python | |
| 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/python')
| -rw-r--r-- | queries/python/highlights.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index 6555a5dea..94fbe50b8 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -141,6 +141,10 @@ (float) @float (comment) @comment @spell + +((module . (comment) @preproc) + (#match? @preproc "^#!/")) + (string) @string [ (escape_sequence) |
