Skip to content

differentiate between math operators #86

Closed

Description

@lorenzwalthert

Allow the user to set spacing separately for

  • + and -
  • / and *
  • ^

etc.

Activity

  1. lorenzwalthert commented on Sep 24, 2017

    @lorenzwalthert
    CollaboratorAuthor

    Should this be a separate option or go under strict? I suggest creating a new argument math_token_spacing that takes a list that has two lists in it: One containing the tokens where we want 1 space before/after it and one that contains the tokens that should have no spacing before/after them. We can use a helper function to create this list like that

    specify_math_token_spacing(zero = c("'*'", "'/'"), one = c(...)

    Tokens that are not mentioned in zero or one will have space around it, since that the tidyverse style guide encourages.

  2. lorenzwalthert commented on Sep 24, 2017

    @lorenzwalthert
    CollaboratorAuthor

    Note that the proposed API is similar to the one proposed in #217 where we have
    reindention = specify_reindention(...)

  3. lorenzwalthert commented on Oct 8, 2017

    @lorenzwalthert
    CollaboratorAuthor

    Closed with #221.

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions