aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Valdez <omarantoniovaldezf2@gmail.com>2025-10-03 00:17:57 -0700
committerChristian Clason <ch.clason+github@icloud.com>2025-10-03 09:53:33 +0200
commit4709d4276c9cef5e353790071aec046d9b089719 (patch)
treed0efa58c4771b250818d9a5a6a1f2b71c4ce9d81
parentfeat(java): highlight wildcards (#8165) (diff)
downloadnvim-treesitter-4709d4276c9cef5e353790071aec046d9b089719.tar
nvim-treesitter-4709d4276c9cef5e353790071aec046d9b089719.tar.gz
nvim-treesitter-4709d4276c9cef5e353790071aec046d9b089719.tar.bz2
nvim-treesitter-4709d4276c9cef5e353790071aec046d9b089719.tar.lz
nvim-treesitter-4709d4276c9cef5e353790071aec046d9b089719.tar.xz
nvim-treesitter-4709d4276c9cef5e353790071aec046d9b089719.tar.zst
nvim-treesitter-4709d4276c9cef5e353790071aec046d9b089719.zip
feat(python): highlight special brackets in `format_expression`
-rw-r--r--runtime/queries/python/highlights.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm
index 3e777d08b..70f6d9acc 100644
--- a/runtime/queries/python/highlights.scm
+++ b/runtime/queries/python/highlights.scm
@@ -247,6 +247,10 @@
"{" @punctuation.special
"}" @punctuation.special)
+(format_expression
+ "{" @punctuation.special
+ "}" @punctuation.special)
+
(line_continuation) @punctuation.special
(type_conversion) @function.macro