开发者

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

开发者 https://www.devze.com 2023-01-16 01:43 出处:网络
I\'ve tried, with M-x align-regexp: <-|= (<-|=) \\(<-|=\\) \\\\(<-|=\\\\) And the ones with <- and = reversed. But none work?

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

精彩评论

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