Skip to content

solve eq_sub indention in general - #127

Merged
krlmlr merged 1 commit into
r-lib:masterfrom
lorenzwalthert:indent_eq_sub
Aug 17, 2017
Merged

krlmlr merged 1 commit into
r-lib:masterfrom
lorenzwalthert:indent_eq_sub

Conversation

@lorenzwalthert

Copy link
Copy Markdown
Collaborator

closes #126

@lorenzwalthert
lorenzwalthert requested a review from krlmlr August 14, 2017 20:16
x
}
},
new = (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pattern is rare enough, but what happens if we use {} instead of ()?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like at line 2 you mean? It also indents by two spaces.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but what happens to the closing brace?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is unindented

switch(engine,
  pdftex = {
    if (any) {
      x
    }
  },
  new = {
    2
})

{
  a <-
    3
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a FIXME that refers to #125?

@codecov

codecov Bot commented Aug 14, 2017

Copy link
Copy Markdown

Codecov Report

Merging #127 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #127      +/-   ##
==========================================
+ Coverage    88.6%   88.65%   +0.05%     
==========================================
  Files          18       18              
  Lines         676      679       +3     
==========================================
+ Hits          599      602       +3     
  Misses         77       77
Impacted Files Coverage Δ
R/modify_pd.R 92.3% <100%> (+0.64%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08200b8...8ce217a. Read the comment docs.

@krlmlr
krlmlr merged commit 4c21225 into r-lib:master Aug 17, 2017
@lorenzwalthert
lorenzwalthert deleted the indent_eq_sub branch September 17, 2017 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Indent indices for token "EQ_SUB" are different.

2 participants