Skip to content

Commit 314b2b8

Browse files
committed
regenerate parser for 'doc_comments'
1 parent a60f92b commit 314b2b8

File tree

3 files changed

+13682
-12440
lines changed

3 files changed

+13682
-12440
lines changed

src/grammar.json

+21-14
Original file line numberDiff line numberDiff line change
@@ -8076,27 +8076,30 @@
80768076
}
80778077
]
80788078
},
8079-
"comment": {
8080-
"type": "CHOICE",
8081-
"members": [
8082-
{
8083-
"type": "SYMBOL",
8084-
"name": "line_comment"
8085-
},
8086-
{
8087-
"type": "SYMBOL",
8088-
"name": "block_comment"
8089-
}
8090-
]
8079+
"doc_comment": {
8080+
"type": "TOKEN",
8081+
"content": {
8082+
"type": "SEQ",
8083+
"members": [
8084+
{
8085+
"type": "STRING",
8086+
"value": "///"
8087+
},
8088+
{
8089+
"type": "PATTERN",
8090+
"value": ".*"
8091+
}
8092+
]
8093+
}
80918094
},
80928095
"line_comment": {
80938096
"type": "TOKEN",
80948097
"content": {
80958098
"type": "SEQ",
80968099
"members": [
80978100
{
8098-
"type": "STRING",
8099-
"value": "//"
8101+
"type": "PATTERN",
8102+
"value": "\\/\\/[^/]"
81008103
},
81018104
{
81028105
"type": "PATTERN",
@@ -8281,6 +8284,10 @@
82818284
{
82828285
"type": "SYMBOL",
82838286
"name": "block_comment"
8287+
},
8288+
{
8289+
"type": "SYMBOL",
8290+
"name": "doc_comment"
82848291
}
82858292
],
82868293
"conflicts": [

src/node-types.json

+4
Original file line numberDiff line numberDiff line change
@@ -4748,6 +4748,10 @@
47484748
"type": "default",
47494749
"named": false
47504750
},
4751+
{
4752+
"type": "doc_comment",
4753+
"named": true
4754+
},
47514755
{
47524756
"type": "dyn",
47534757
"named": false

0 commit comments

Comments
 (0)