@willbooster/tree-sitter-bash 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/grammar.js +6 -2
- package/package.json +1 -1
- package/src/node-types.json +5 -1
- package/tree-sitter-bash.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -146,6 +146,9 @@ module.exports = grammar({
|
|
|
146
146
|
$._command_substitution_start,
|
|
147
147
|
$._arithmetic_substitution_start,
|
|
148
148
|
$._arithmetic_cache_reset,
|
|
149
|
+
$._timing_keyword,
|
|
150
|
+
$._timing_option,
|
|
151
|
+
$._timing_terminator,
|
|
149
152
|
],
|
|
150
153
|
|
|
151
154
|
extras: ($) => [$.comment, $.heredoc_body, /[ \t\n]/, /\\\n/, $._line_continuation, $._arithmetic_cache_reset],
|
|
@@ -204,8 +207,9 @@ module.exports = grammar({
|
|
|
204
207
|
prec.right(
|
|
205
208
|
2,
|
|
206
209
|
seq(
|
|
207
|
-
'time',
|
|
208
|
-
optional(field('option', alias('-p', $.word))),
|
|
210
|
+
choice('time', alias($._timing_keyword, 'time')),
|
|
211
|
+
optional(field('option', alias(choice('-p', $._timing_option), $.word))),
|
|
212
|
+
optional(alias($._timing_terminator, $.word)),
|
|
209
213
|
optional(choice($._command_statement, $.pipeline, $.negated_command))
|
|
210
214
|
)
|
|
211
215
|
),
|
package/package.json
CHANGED
package/src/node-types.json
CHANGED
|
@@ -2882,7 +2882,7 @@
|
|
|
2882
2882
|
}
|
|
2883
2883
|
},
|
|
2884
2884
|
"children": {
|
|
2885
|
-
"multiple":
|
|
2885
|
+
"multiple": true,
|
|
2886
2886
|
"required": false,
|
|
2887
2887
|
"types": [
|
|
2888
2888
|
{
|
|
@@ -2944,6 +2944,10 @@
|
|
|
2944
2944
|
{
|
|
2945
2945
|
"type": "while_statement",
|
|
2946
2946
|
"named": true
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
"type": "word",
|
|
2950
|
+
"named": true
|
|
2947
2951
|
}
|
|
2948
2952
|
]
|
|
2949
2953
|
}
|
package/tree-sitter-bash.wasm
CHANGED
|
Binary file
|