开发者

In Emacs, how to use align-regexp to align <- and = together

I've tried, with M-x align-regexp:

<-|=
(<-|=)
\(<-|=\)
\\(<-|=\\)

And the ones with <- and = reversed. But none work?

Example code as follows:

  (flags, params, errs) <- parseArgs <$> getArgs
  let options = foldr id [] flags -- Apply functi开发者_如何学编程ons to list


try \(<-\|=\) -- you need the (backslashed) parentheses, and you need to backslash the |


You need to escape the |:

\(<-\|=\)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜