highlights(swift): fix for_statement variable declaration

Incorporates a fix from upstream, caught due to the emacs tree-sitter
plugin using an older version of tree-sitter that does stricter
validation.
This commit is contained in:
Alex Pinkus 2022-09-05 11:53:22 -07:00 committed by Christian Clason
parent 223883fd69
commit 98d5fe400c

View file

@ -73,7 +73,7 @@
; Statements
(for_statement ["for" @repeat])
(for_statement ["in" @repeat])
(for_statement item: (simple_identifier) @variable)
(for_statement (pattern) @variable)
(else) @keyword
(as_operator) @keyword