Skip to content

Commit 01a277d

Browse files
chore: autoformat with dprint
1 parent 796c365 commit 01a277d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

grammar.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ module.exports = grammar({
141141
optional(seq(field("method", $.method), WS)),
142142
field("url", $.target_url),
143143
optional(seq(WS, field("version", $.http_version))),
144-
NL, repeat($.comment),
144+
NL,
145+
repeat($.comment),
145146
optional($.response),
146147
repeat(field("header", $.header)),
147148
optional(
@@ -157,7 +158,7 @@ module.exports = grammar({
157158
$.json_body,
158159
$.graphql_body,
159160
$._external_body,
160-
))
161+
)),
161162
),
162163
),
163164
),
@@ -201,7 +202,8 @@ module.exports = grammar({
201202
),
202203

203204
pre_request_script: ($) => seq("<", WS, choice($.script, $.path), NL),
204-
res_handler_script: ($) => seq(token(prec(3, ">")), WS, choice($.script, $.path), NL),
205+
res_handler_script: ($) =>
206+
seq(token(prec(3, ">")), WS, choice($.script, $.path), NL),
205207
script: (_) =>
206208
seq(
207209
token(prec(1, "{%")),
@@ -236,7 +238,9 @@ module.exports = grammar({
236238
graphql_body: ($) => seq($.graphql_data, optional($.json_body)),
237239
graphql_data: (_) =>
238240
seq(
239-
token(prec(2, seq(choice("query", "mutation"), WS, /.*\{/, NL))),
241+
token(
242+
prec(2, seq(choice("query", "mutation"), WS, /.*\{/, NL)),
243+
),
240244
repeat1(LINE_TAIL),
241245
),
242246

@@ -288,7 +292,7 @@ module.exports = grammar({
288292
PUNCTUATION,
289293
$.variable,
290294
ESCAPED,
291-
)
295+
),
292296
)),
293297
value: ($) =>
294298
repeat1(

0 commit comments

Comments
 (0)