mirror of
https://github.com/realAscot/helix.git
synced 2025-09-14 20:23:03 +02:00
- 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
11 lines
354 B
Scheme
11 lines
354 B
Scheme
; Upstream: https://github.com/alex-pinkus/tree-sitter-swift/blob/57c1c6d6ffa1c44b330182d41717e6fe37430704/queries/injections.scm
|
|
|
|
; Parse regex syntax within regex literals
|
|
|
|
((regex_literal) @injection.content
|
|
(#set! injection.language "regex"))
|
|
|
|
((comment) @injection.content
|
|
(#set! injection.language "comment")
|
|
(#set! injection.include-children))
|