fix(python): impossible patterns

This commit is contained in:
Zooce 2025-12-03 13:51:50 -08:00
parent c5623d3486
commit e1820bbda1
3 changed files with 15 additions and 14 deletions

View file

@ -81,8 +81,10 @@
; doc-strings
(expression_statement
(string
(string_content) @spell) @string.documentation)
(expression
(primary_expression
(string
(string_content) @spell))) @string.documentation)
; Tokens
[

View file

@ -45,16 +45,15 @@
":"
(#set! indent.immediate 1)) @indent.begin
(ERROR
"try"
.
":"
(ERROR
(block
(expression_statement
(identifier) @_except) @indent.branch))
(#eq? @_except "except"))
; (ERROR
; "try"
; .
; ":"
; (ERROR
; (block
; (expression_statement
; (identifier) @_except) @indent.branch))
; (#eq? @_except "except"))
((function_definition) @indent.begin
(#set! indent.immediate 1))