Skip to content

Commit 366d647

Browse files
committed
Allow pipes in parameters
closes rust-analyzer/ungrammar#8
1 parent 2a5b30a commit 366d647

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/rust-analyzer/lib/ungrammar/rust.ungram

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ ParamList =
137137
SelfParam
138138
| (SelfParam ',')? (Param (',' Param)* ','?)?
139139
)')'
140+
| '|' (Param (',' Param)* ','?)? '|'
140141

141142
SelfParam =
142143
Attr* (

0 commit comments

Comments
 (0)