Skip to content

Commit d2e4e4c

Browse files
fix: give higher precedence to http version (fix #44)
1 parent 231f1b1 commit d2e4e4c

File tree

5 files changed

+2682
-2629
lines changed

5 files changed

+2682
-2629
lines changed

grammar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = grammar({
110110
method: (_) =>
111111
/(OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT|PATCH|LIST|GRAPHQL|WEBSOCKET)/,
112112

113-
http_version: (_) => token(prec(0, /HTTP\/[\d\.]+/)),
113+
http_version: (_) => prec.dynamic(1, token(prec(0, /HTTP\/[\d\.]+/))),
114114

115115
_target_url_line: ($) =>
116116
repeat1(choice(WORD_CHAR, PUNCTUATION, $.variable, WS)),

src/grammar.json

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

src/node-types.json

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

0 commit comments

Comments
 (0)