references.scm
1 ;; ═════════════════════════════════════════════════════════════════════════ 2 ;; Lua Environment Variable Reference Queries 3 ;; ═════════════════════════════════════════════════════════════════════════ 4 ;; 5 ;; Primary pattern: os.getenv("VAR") 6 ;; Lua only has os.getenv() for environment variable access - no dict-style 7 ;; or property-style access patterns. 8 9 ;; ─────────────────────────────────────────────────────────────────────────── 10 ;; os.getenv("VAR") 11 ;; ─────────────────────────────────────────────────────────────────────────── 12 (function_call 13 name: (dot_index_expression 14 table: (identifier) @object 15 field: (identifier) @_func) 16 arguments: (arguments 17 (string 18 content: (string_content) @env_var_name)) 19 (#eq? @object "os") 20 (#eq? @_func "getenv")) @env_access 21