Skip to content

solve eq_sub indention in general #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2017
Merged

Conversation

lorenzwalthert
Copy link
Collaborator

closes #126

@lorenzwalthert lorenzwalthert requested a review from krlmlr August 14, 2017 20:16
x
}
},
new = (
Copy link
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
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
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
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
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
Copy link

codecov bot commented Aug 14, 2017

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