Skip to content

Commit c202bce

Browse files
unhappychoiceclaude
andcommitted
fix(swift): capture nil via nil_literal node
"nil" is not a token in tree-sitter-swift 0.7, so the whole Swift highlight query failed to compile. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent be65dd1 commit c202bce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/syntax/languages/queries/swift_highlights.scm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281

282282
(boolean_literal) @boolean
283283

284-
"nil" @constant.builtin
284+
(nil_literal) @constant.builtin
285285

286286
(wildcard_pattern) @character.special
287287

0 commit comments

Comments
 (0)