Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix macro calls with argument lists #33

Merged
merged 1 commit into from
Aug 2, 2017

Conversation

Keno
Copy link
Collaborator

@Keno Keno commented Aug 1, 2017

The commas would end up out of order with the rest of the arguments.

@codecov-io
Copy link

codecov-io commented Aug 1, 2017

Codecov Report

Merging #33 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
- Coverage   82.57%   82.56%   -0.02%     
==========================================
  Files          26       26              
  Lines        2273     2260      -13     
==========================================
- Hits         1877     1866      -11     
+ Misses        396      394       -2
Impacted Files Coverage Δ
src/CSTParser.jl 74.85% <ø> (-1.13%) ⬇️
src/components/macros.jl 75% <100%> (-0.48%) ⬇️
src/components/operators.jl 95.65% <0%> (+0.54%) ⬆️

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 8104c32...cb8e2fb. Read the comment docs.

src/CSTParser.jl Outdated
@@ -200,7 +200,7 @@ item so surrounding punctuation must be handled externally.
**NOTE**
Copy link
Contributor

Choose a reason for hiding this comment

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

Just delete this function

@@ -52,7 +52,7 @@ function parse_macrocall(ps::ParseState)
if isemptyws(ps.ws) && ps.nt.kind == Tokens.LPAREN
next(ps)
push!(ret.args, INSTANCE(ps))
@catcherror ps startbyte args = @default ps @nocloser ps newline @closer ps paren parse_list(ps, ret.args)
@catcherror ps startbyte args = @default ps @nocloser ps newline @closer ps paren parse_list(ps)
Copy link
Contributor

Choose a reason for hiding this comment

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

use parse_comma_sep(ps, ret, false) and delete the trailing append! call

The commas would end up out of order with the rest of the arguments.
@Keno Keno force-pushed the kf/fixmacrocall branch from a7d1707 to cb8e2fb Compare August 2, 2017 17:19
@ZacLN ZacLN merged commit 276263e into julia-vscode:master Aug 2, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants