简体   繁体   中英

Uncrustify - How to not add space between =>

In apex we use => when defining maps. It is invalid syntax to have a space in between such as = > .

I have tried the following settings all of which result in a space between.

sp_compare = ignore
sp_inside_angle = ignore
sp_assign = ignore
sp_assign_default = ignore
sp_after_assign = ignore

Ideally I would have space around = when in assignments and comparisons, but would be interested in any solutions that solve my issue.

Is this possible?

Thanks.

No we don't support apex so unless java gets that operator we won't add support for that in our code.

As we did not for Nvidias '<<<' operators, see https://github.com/uncrustify/uncrustify/issues/1965#issuecomment-413015511 where I showed a possibility to add you own operators in your local build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM