Wrong highlighting for the first pattern of a match
when it starts with a pipe
#373
Labels
A-syntax
Area: Syntax highlighting
match
when it starts with a pipe
#373
Sublime Text Version
Sublime Text 3.2 (Build 3200) (when tested on Windows)
Rust Enhanced Version
2.19.0 (when tested on Windows)
Operating system
Tested on both Linux Mint and Windows 10
Expected behavior
From the Rust reference, regarding
match
grammar:are valid
MatchArmPatterns
and should be colored accordingly.Actual behavior
But the optional first pipe (
|
) sygil, when used right after the opening brace of thematch
expression leads to an incorrect syntax highlighting (might be related to closure syntax).The current work around is to add a comment between the opening brace and the first pattern.
Steps to reproduce
References
Maybe #284
The text was updated successfully, but these errors were encountered: