Skip to content

Commit

Permalink
fix: allow whitespace inside target_url (close #43)
Browse files Browse the repository at this point in the history
  • Loading branch information
boltlessengineer committed Sep 20, 2024
1 parent a2865eb commit 231f1b1
Show file tree
Hide file tree
Showing 4 changed files with 2,290 additions and 2,261 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ module.exports = grammar({
http_version: (_) => token(prec(0, /HTTP\/[\d\.]+/)),

_target_url_line: ($) =>
repeat1(choice(WORD_CHAR, PUNCTUATION, $.variable)),
repeat1(choice(WORD_CHAR, PUNCTUATION, $.variable, WS)),
target_url: ($) =>
seq($._target_url_line, repeat(seq(NL, WS, $._target_url_line))),

Expand Down
5 changes: 5 additions & 0 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 231f1b1

Please sign in to comment.