Commit graph

5 commits

Author SHA1 Message Date
Nikita Revenco
2b8f8df1af
feat: correct Swift highlights (#12409)
- Adds injections for the `comment` language
- Correct highlight of the `nil` value. Same highlight as `null` in javascript, java and others
- Recognize `<` and `>` as punctuation, used in generics (same color as the syntax used in other languages)
- `protocol` function methods are recognized
- When accessing object properties, like `hello.world`, the `world` is properly recognized as being a member
- Recognize the `\` as an operator
2025-01-05 10:54:45 -06:00
Arturs Krumins
aa1630a41a
Update Swift Grammar and Queries (#10802) 2024-06-07 12:29:42 -05:00
7ombie
204c3707b0
Updated Swift grammar, adding 'any' and 'await' keywords. (#9586) 2024-02-12 02:17:44 +01:00
Michael Davis
254d558907
Update tree-sitter-swift (#3461) 2022-08-17 10:40:21 +09:00
Aaron Housh
9caf7c0d5a
Add swift language (#2033) 2022-04-08 13:10:37 -05:00