Closed timoxley closed 8 years ago
Of course it should accept all RHS expression.
The problem is I can't make the following :
be recognized if I just allow all RHS expression(or I will produce lots of duplicated code).
Vim syntax system can't look forward~
Finally figure out :
is not an operator.
So much easy to use region for this case.
:dancer: Great stuff, works perfectly.
Syntax highlight is broken if anything other than a variable is used in a case statement:
It appears that the RHS of a
case
can be any JS expression:For now, if yajs only supported the first case in the example I think you'd be covering most of your bases… it's the only other case pattern I have in my codebase and IMO the other forms are likely to be much rarer.
Related to #103