Skip to content

Commit 231f1b1

Browse files
fix: allow whitespace inside target_url (close #43)
1 parent a2865eb commit 231f1b1

File tree

4 files changed

+2290
-2261
lines changed

4 files changed

+2290
-2261
lines changed

grammar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ module.exports = grammar({
113113
http_version: (_) => token(prec(0, /HTTP\/[\d\.]+/)),
114114

115115
_target_url_line: ($) =>
116-
repeat1(choice(WORD_CHAR, PUNCTUATION, $.variable)),
116+
repeat1(choice(WORD_CHAR, PUNCTUATION, $.variable, WS)),
117117
target_url: ($) =>
118118
seq($._target_url_line, repeat(seq(NL, WS, $._target_url_line))),
119119

src/grammar.json

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

0 commit comments

Comments
 (0)