for now no escaping comment

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-07-04 20:56:48 +02:00
parent 7a3c98ac76
commit c34df2ccaa
6 changed files with 615 additions and 541 deletions

21
corpus/extras.txt Normal file
View File

@@ -0,0 +1,21 @@
===
Comments
===
GET https://somewhere.com # some comment
# comment
HTTP 200 # comment
---
(source_file
(request_declaration
(request_literal)
(url))
(comment)
(comment)
(response
(scheme_literal)
(status_code_pattern))
(comment))

View File

@@ -47,7 +47,7 @@ More Headers
POST https://somewhere.com?query=something
some: header
A123a-123: someA asdfasdf asdf c123
A123a-123: someAasdfasdfasdfc123
---
@@ -55,9 +55,13 @@ A123a-123: someA asdfasdf asdf c123
(request_declaration
(request_literal)
(url))
(header_declaration
(header_name)
(header_value)))
(header_declaration
(header_name)
(header_value))
(header_declaration
(header_name)
(header_value))
)
===
HTTP Status codes 200
@@ -92,3 +96,23 @@ HTTP 302
(response
(scheme_literal)
(status_code_pattern)))
===
HTTP Status codes 302
===
POST https://somewhere.com?query=something
Header: something
HTTP 302
---
(source_file
(request_declaration
(request_literal)
(url))
(header_declaration
(header_name)
(header_value))
(response
(scheme_literal)
(status_code_pattern)))