Skip to content

bug: styler drop tokens in certain cases #101

Closed

Description

@lorenzwalthert

A bug in set_unindention() drop some tokens in certain situations due to subsetting on a integer(0) vector:

test <- c(
  "c(", 
  "a = function() {", 
  "99", 
  "}", 
  ")"
)

library("styler")
cat(style_text(test), sep = "\n")
#> c(
#>   a = )

Activity

  1. changed the title [-]bug: styler drop tokens for edge cases[/-] [+]bug: styler drop tokens in certain cases[/+] on Jul 28, 2017
  2. added a commit that references this issue on Jul 28, 2017
    19f6f28
  3. added 3 commits that reference this issue on Jul 30, 2017
    7704a8f
    81ea0f5
    258602d
  4. added a commit that references this issue on Aug 24, 2017
    e1130f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions