diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-01-06 22:56:18 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-01-07 08:52:41 +0100 |
| commit | b441f257a40565d8f26a870d82b32ec87286b2d0 (patch) | |
| tree | dde37a93b1a0b97244dbe7949e0e0e22fa78a0d9 /queries/python | |
| parent | Python locals: Add new node with_clause (diff) | |
| download | nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.gz nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.bz2 nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.lz nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.xz nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.tar.zst nvim-treesitter-b441f257a40565d8f26a870d82b32ec87286b2d0.zip | |
Python highlights: update definition of decorator
Diffstat (limited to 'queries/python')
| -rw-r--r-- | queries/python/highlights.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index 2d845c4c0..07f4379ca 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -33,7 +33,10 @@ ; Function calls (decorator) @function -((decorator (dotted_name (identifier) @function)) +((decorator (attribute (identifier) @function)) + (#vim-match? @function "^([A-Z])@!.*$")) +(decorator) @function +((decorator (identifier) @function) (#vim-match? @function "^([A-Z])@!.*$")) (call |
