aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorPaul Scott2022-05-14 02:39:36 +0000
committerBlaž Hrastnik2022-05-20 01:28:52 +0000
commite680f9644d485bcb5b9518515739f682d5a683f6 (patch)
tree7115a6ce5a92df6de88e548e47c13f99e34b3698 /runtime
parentabef250c58620fb0a439b13b9f857a5b661e325f (diff)
Python handling highlighting parameters with defaults
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/python/highlights.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm
index fa622435..75e76c68 100644
--- a/runtime/queries/python/highlights.scm
+++ b/runtime/queries/python/highlights.scm
@@ -42,6 +42,8 @@
(parameters (identifier) @variable.parameter)
(parameters (typed_parameter (identifier) @variable.parameter))
+(parameters (default_parameter name: (identifier) @variable.parameter))
+(parameters (typed_default_parameter name: (identifier) @variable.parameter))
; Types