Skip to content

Commit 7c68e1c

Browse files
committed
add support for response redirects
1 parent 49e1cee commit 7c68e1c

File tree

6 files changed

+4618
-4173
lines changed

6 files changed

+4618
-4173
lines changed

grammar.js

+9
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ module.exports = grammar({
160160
),
161161
NL,
162162
$.res_handler_script,
163+
$.res_redirect,
163164
),
164165
),
165166
),
@@ -213,6 +214,14 @@ module.exports = grammar({
213214
token(prec(1, "%}")),
214215
),
215216

217+
res_redirect: ($) =>
218+
seq(
219+
token(prec(PREC.REQ_SEPARATOR, />>!?/)),
220+
WS,
221+
field("path", $.path),
222+
token(repeat1(NL)),
223+
),
224+
216225
variable_declaration: ($) =>
217226
seq(
218227
"@",

src/grammar.json

+63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)