We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0c746c + b703b6c commit e030d7aCopy full SHA for e030d7a
CodeGeneration/Sources/SyntaxSupport/GrammarGenerator.swift
@@ -37,7 +37,7 @@ struct GrammarGenerator {
37
let choicesDescriptions = choices.map { grammar(for: $0) }
38
return "(\(choicesDescriptions.joined(separator: " | ")))\(optionality)"
39
case .collection(kind: let kind, _, _, _):
40
- return "``\(kind.syntaxType)``"
+ return "``\(kind.syntaxType)``\(optionality)"
41
case .token(let choices, _, _):
42
if choices.count == 1 {
43
return "\(grammar(for: choices.first!))\(optionality)"
0 commit comments