Add block comments

This commit is contained in:
Bruno BELANYI 2024-04-08 08:48:10 +01:00
parent 6d3dd1c8cb
commit eec21c84da
5 changed files with 2347 additions and 1744 deletions

21
src/grammar.json generated
View file

@ -34,6 +34,23 @@
}
]
},
"block_comment": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "/*"
},
{
"type": "PATTERN",
"value": "[^*]*\\*+([^/*][^*]*\\*+)*"
},
{
"type": "STRING",
"value": "/"
}
]
},
"assignment": {
"type": "SEQ",
"members": [
@ -936,6 +953,10 @@
{
"type": "SYMBOL",
"name": "line_comment"
},
{
"type": "SYMBOL",
"name": "block_comment"
}
],
"conflicts": [],