1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
; Tree-sitter injection queries for GSX DSL
; This file defines language injections for embedded code
; ====================
; Go Expression Injection
; ====================
; Inject Go language into expression content inside {braces}
; This enables Go syntax highlighting and intelligence within expressions
((go_expression
(expression_content) @injection.content)
(#set! injection.language "go")
(#set! injection.include-children))
; ====================
; Function Body Injection
; ====================
; Inject Go language into function bodies for syntax highlighting
((function_body
(go_code_content) @injection.content)
(#set! injection.language "go")
(#set! injection.include-children))
; ====================
; Go Brace Body Injection
; ====================
; Inject Go language into other Go brace bodies (interface declarations, etc.)
((go_brace_body
(go_code_content) @injection.content)
(#set! injection.language "go")
(#set! injection.include-children))
; ====================
; Import Path Injection
; ====================
; Import paths get string highlighting (already handled by Go if using full injection)
; But we mark them for semantic purposes
((import_spec
path: (string) @injection.content)
(#set! injection.language "go"))
|