Skip to content

bang operator and spacing #176

Closed
Closed

Description

@lorenzwalthert

https://github.com/krlmlr/styler/blob/ef10c291034c05957c7a9f9d870db604f99f712a/R/rules-spacing.R#L189

I was wondering whether this rule is really doing what you expect because it turns

a <- ! !!x

Into

a <- !!! x

Which is not the same anymore.

@krlmlr probably we should only remove spaces if the token after is not !? Because we still want

a <- ! FALSE

to become

a <- !FALSE

Activity

  1. krlmlr commented on Aug 31, 2017

    @krlmlr
    Member

    Agree that we need to check if the token after is also a bang.

  2. added this to the milestone on Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions