Skip to content

Commit 8803b54

Browse files
committed
format: Make comments as whitespace
As comments are separate from doc-comments it would be safe to do so, and we can still access comments from the CST if needed
1 parent 1d2a7df commit 8803b54

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

design/mvp/WIT.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ The current structure of tokens are:
568568

569569
```ebnf
570570
token ::= whitespace
571-
| comment
572571
| operator
573572
| keyword
574573
| identifier
@@ -579,11 +578,11 @@ here.
579578

580579
### Whitespace
581580

582-
A `whitespace` token in `wit` is a space, a newline, a carriage return, or a
583-
tab character:
581+
A `whitespace` token in `wit` is a space, a newline, a carriage return, a
582+
tab character, or a comment:
584583

585584
```ebnf
586-
whitespace ::= ' ' | '\n' | '\r' | '\t'
585+
whitespace ::= ' ' | '\n' | '\r' | '\t' | comment
587586
```
588587

589588
### Comments

0 commit comments

Comments
 (0)