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

View File

@@ -88,10 +88,6 @@
"type": "SYMBOL",
"name": "scheme_literal"
},
{
"type": "SYMBOL",
"name": "_space_literal"
},
{
"type": "SYMBOL",
"name": "status_code_pattern"
@@ -176,9 +172,16 @@
"type": "STRING",
"value": "HTTP"
},
"_space_literal": {
"type": "STRING",
"value": " "
"comment": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": -10,
"content": {
"type": "PATTERN",
"value": "#.*"
}
}
},
"status_code_pattern": {
"type": "PATTERN",
@@ -190,7 +193,7 @@
},
"header_value": {
"type": "PATTERN",
"value": "[a-zA-Z-_0-9\\s:;\\.,\\\\\\/\\\"\\'\\?\\!\\(\\)\\{\\}\\[\\]@<>=\\-\\+\\*\\#\\$\\&`|~^%]+"
"value": "[a-zA-Z\\-_0-9\\/\\\\]+"
},
"url": {
"type": "PATTERN",
@@ -198,6 +201,10 @@
}
},
"extras": [
{
"type": "SYMBOL",
"name": "comment"
},
{
"type": "PATTERN",
"value": "\\s"

View File

@@ -162,6 +162,10 @@
"type": "VIEW",
"named": false
},
{
"type": "comment",
"named": true
},
{
"type": "header_name",
"named": true

File diff suppressed because it is too large Load Diff