|
|
**Ticket:**[\#42](https://gitlab.haskell.org//haskell/prime/issues/42)
|
|
|
|
|
|
|
|
|
The comment syntax according to the report is:
|
|
|
|
|
|
|
|
|
```wiki
|
|
|
comment -> dashes [ any<symbol> {any} ] newline
|
|
|
|
... | ... | @@ -14,19 +13,10 @@ The comment syntax according to the report is: |
|
|
This unfortunately forces sequences beginning '—:' to be comments, which appears to be unintentional.
|
|
|
|
|
|
|
|
|
Fix:
|
|
|
|
|
|
```wiki
|
|
|
comment -> dashes [ any<symbol|:> {any} ] newline
|
|
|
```
|
|
|
|
|
|
Fix:
|
|
|
|
|
|
During the committee discussion for Haskell 2010, a better fix was suggested by Ross Paterson, namely to move ':' into `symbol` instead:
|
|
|
|
|
|
```wiki
|
|
|
comment -> dashes [ any<symbol> {any}] newline
|
|
|
graphic -> small | large | symbol | digit | special | " | '
|
|
|
symbol -> ascSymbol | uniSymbol<special | _ | " | '>
|
|
|
varsym -> ( symbol<:> {symbol})<reservedop | dashes>
|
|
|
consym -> (: {symbol})<reservedop>
|
|
|
comment -> dashes [ any<symbol|:> {any} ] newline
|
|
|
``` |
|
|
\ No newline at end of file |