blob: e2fab69ff6d3b54cf6632b47a4bf7207b2c03eae (
plain) (
blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
(comment) @comment
(binding
attrpath: (attrpath (identifier) @_path)
expression: [
(string_expression (string_fragment) @bash)
(indented_string_expression (string_fragment) @bash)
]
(#match? @_path "(^\\w*Phase|(pre|post)\\w*|(.*\\.)?\\w*([sS]cript|[hH]ook)|(.*\\.)?startup)$"))
(apply_expression
function: (_) @_func
argument: (_ (_)* (_ (_)* (binding
attrpath: (attrpath (identifier) @_path)
expression: [
(string_expression (string_fragment) @bash)
(indented_string_expression (string_fragment) @bash)
])))
(#match? @_func "(^|\\.)writeShellApplication$")
(#match? @_path "^text$"))
(apply_expression
(apply_expression
function: (apply_expression function: (_) @_func)
argument: [
(string_expression (string_fragment) @bash)
(indented_string_expression (string_fragment) @bash)
])
(#match? @_func "(^|\\.)runCommand(((No)?CC)?(Local)?)?$"))
((apply_expression
function: (apply_expression function: (_) @_func)
argument: [
(string_expression (string_fragment) @bash)
(indented_string_expression (string_fragment) @bash)
])
(#match? @_func "(^|\\.)write(Bash|Dash|ShellScript)(Bin)?$"))
((apply_expression
function: (apply_expression function: (_) @_func)
argument: [
(string_expression (string_fragment) @fish)
(indented_string_expression (string_fragment) @fish)
])
(#match? @_func "(^|\\.)writeFish(Bin)?$"))
((apply_expression
function: (apply_expression
function: (apply_expression function: (_) @_func))
argument: [
(string_expression (string_fragment) @haskell)
(indented_string_expression (string_fragment) @haskell)
])
(#match? @_func "(^|\\.)writeHaskell(Bin)?$"))
((apply_expression
function: (apply_expression
function: (apply_expression function: (_) @_func))
argument: [
(string_expression (string_fragment) @javascript)
(indented_string_expression (string_fragment) @javascript)
])
(#match? @_func "(^|\\.)writeJS(Bin)?$"))
((apply_expression
function: (apply_expression
function: (apply_expression function: (_) @_func))
argument: [
(string_expression (string_fragment) @perl)
(indented_string_expression (string_fragment) @perl)
])
(#match? @_func "(^|\\.)writePerl(Bin)?$"))
((apply_expression
function: (apply_expression
function: (apply_expression function: (_) @_func))
argument: [
(string_expression (string_fragment) @python)
(indented_string_expression (string_fragment) @python)
])
(#match? @_func "(^|\\.)write(PyPy|Python)[23](Bin)?$"))
((apply_expression
function: (apply_expression
function: (apply_expression function: (_) @_func))
argument: [
(string_expression (string_fragment) @rust)
(indented_string_expression (string_fragment) @rust)
])
(#match? @_func "(^|\\.)writeRust(Bin)?$"))
|