Tune cindent "switch" indentation

Posted by Don Reba on Stack Overflow See other posts from Stack Overflow or by Don Reba
Published on 2011-11-28T01:40:06Z Indexed on 2011/11/28 1:49 UTC
Read the original article Hit count: 158

Filed under:
|

Nemerle is a C-like language and mostly works very well with cindent. However, its construct analogous to switch is called match:

match (x)
{
| "Hello World" => ...
| _ => ...
}

Is it possible to get the cinoptions for switch statements to apply to this construct, instead? Maybe there is a regular expression I can set somewhere. If not, can I get the vertical bars to align with the braces another way?

© Stack Overflow or respective owner

Related posts about vim

Related posts about nemerle