mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
Remove redundant ,
from lexer errors
Appositives only need to be offset by commas if there isn’t already some other punctuation.
This commit is contained in:
parent
10d2622991
commit
782ac4164d
@ -1372,7 +1372,7 @@ renderParseErrors s = \case
|
||||
<> excerpt
|
||||
L.ReservedWordyId id ->
|
||||
Pr.lines
|
||||
[ "The identifier, " <> quoteCode id <> ", used here is a reserved keyword: ",
|
||||
[ "The identifier " <> quoteCode id <> " used here is a reserved keyword: ",
|
||||
"",
|
||||
excerpt,
|
||||
Pr.wrap $
|
||||
@ -1382,7 +1382,7 @@ renderParseErrors s = \case
|
||||
]
|
||||
L.InvalidSymbolyId id ->
|
||||
Pr.lines
|
||||
[ "The infix identifier, " <> quoteCode id <> ", isn’t valid syntax: ",
|
||||
[ "The infix identifier " <> quoteCode id <> " isn’t valid syntax: ",
|
||||
"",
|
||||
excerpt,
|
||||
"Here are a few valid examples: "
|
||||
@ -1394,7 +1394,7 @@ renderParseErrors s = \case
|
||||
]
|
||||
L.ReservedSymbolyId id ->
|
||||
Pr.lines
|
||||
[ "The identifier, " <> quoteCode id <> ", is reserved by Unison and can't be used as an operator: ",
|
||||
[ "The identifier " <> quoteCode id <> " is reserved by Unison and can't be used as an operator: ",
|
||||
"",
|
||||
excerpt
|
||||
]
|
||||
|
@ -343,7 +343,7 @@ use.keyword.in.namespace = 1
|
||||
|
||||
Loading changes detected in scratch.u.
|
||||
|
||||
The identifier, `namespace`, used here is a reserved keyword:
|
||||
The identifier `namespace` used here is a reserved keyword:
|
||||
|
||||
1 | use.keyword.in.namespace = 1
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace.blah = 1
|
||||
|
||||
Loading changes detected in scratch.u.
|
||||
|
||||
The identifier, `namespace`, used here is a reserved keyword:
|
||||
The identifier `namespace` used here is a reserved keyword:
|
||||
|
||||
1 | namespace.blah = 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user