mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Highlights(python): Add @keyword.function
Use `@keyword.function` for `def` and `lambda`
This commit is contained in:
parent
3413581b58
commit
017760113a
1 changed files with 5 additions and 2 deletions
|
|
@ -195,17 +195,20 @@
|
||||||
"del"
|
"del"
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
|
[
|
||||||
|
"def"
|
||||||
|
"lambda"
|
||||||
|
] @keyword.function
|
||||||
|
|
||||||
[
|
[
|
||||||
"assert"
|
"assert"
|
||||||
"async"
|
"async"
|
||||||
"await"
|
"await"
|
||||||
"class"
|
"class"
|
||||||
"def"
|
|
||||||
"except"
|
"except"
|
||||||
"exec"
|
"exec"
|
||||||
"finally"
|
"finally"
|
||||||
"global"
|
"global"
|
||||||
"lambda"
|
|
||||||
"nonlocal"
|
"nonlocal"
|
||||||
"pass"
|
"pass"
|
||||||
"print"
|
"print"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue