Skip to content
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

update syntax #69

Merged

Conversation

fredrikekre
Copy link
Contributor

tests probably need to be updated too

@fredrikekre
Copy link
Contributor Author

Fixed tests, all pass except:
https://github.com/fredrikekre/Julia-sublime/blob/4f1814dd061014e5b144ce89a6afbc9f5dd8e6fe/syntax_test_julia.jl#L205-L207
Which I don't really understand how this PR would break...

@ViktorQvarfordt
Copy link
Member

Thanks for the PR!

It is a bit worrying that that simple test is failing. What is the test error output? I'm guessing it is the !, which often needs to be dealt with carefully. Also, are you sure the test error is introduced in this commit?

@fredrikekre
Copy link
Contributor Author

Yes, tests passes on master so it has to do with the changes here...

@fredrikekre
Copy link
Contributor Author

Oh, and failing test and the output:

  Base.filter!()
# ^^^^ support.module
#      ^^^^^^^ support.function
Packages/Julia-sublime/syntax_test_julia.jl:205:8: [support.function] does not match scope [source.julia meta.function-call.julia variable.function.julia]
Packages/Julia-sublime/syntax_test_julia.jl:205:9: [support.function] does not match scope [source.julia meta.function-call.julia variable.function.julia]
Packages/Julia-sublime/syntax_test_julia.jl:205:10: [support.function] does not match scope [source.julia meta.function-call.julia variable.function.julia]
Packages/Julia-sublime/syntax_test_julia.jl:205:11: [support.function] does not match scope [source.julia meta.function-call.julia variable.function.julia]
Packages/Julia-sublime/syntax_test_julia.jl:205:12: [support.function] does not match scope [source.julia meta.function-call.julia variable.function.julia]
Packages/Julia-sublime/syntax_test_julia.jl:205:13: [support.function] does not match scope [source.julia meta.function-call.julia variable.function.julia]
Packages/Julia-sublime/syntax_test_julia.jl:205:14: [support.function] does not match scope [source.julia meta.function-call.julia variable.function.julia]
FAILED: 7 of 2646 assertions in 1 files failed
[Finished]

@fredrikekre
Copy link
Contributor Author

Oh, and it does not seem to be the ! that is causing the problem, the following test fail with the same error:

  Base.filter()
# ^^^^ support.module
#      ^^^^^^ support.function

I added that test to the PR too.

@ViktorQvarfordt
Copy link
Member

I see that you added to constant.language, nice. However, you change the scope of e to variable.other, is e no longer a global constant?

Re. the failing test: filter is a built-in function, so it really should have the scope support.function. It seems like filter() is scoped properly, but not Base.filter(). This gives further clues to where the error is. But I have not been able to pinpoint it. I'm guessing it has to do with the fact that you redefine base_module_func, I see that you removed a ?, is this intentional?

@fredrikekre
Copy link
Contributor Author

However, you change the scope of e to variable.other, is e no longer a global constant?

No, it was changed to (\euler<TAB>) in the julia repl) in JuliaLang/julia#23427

I see that you removed a ?, is this intentional?

No... I am sure I double checked such things... Well, that was it, now all the tests pass :) Thanks!

@ViktorQvarfordt
Copy link
Member

Cool, I'll merge this now. Thanks for your work!

@ViktorQvarfordt ViktorQvarfordt merged commit 581805e into JuliaEditorSupport:master Jan 8, 2018
@fredrikekre fredrikekre deleted the fe/update-syntax branch January 8, 2018 10:31
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.

2 participants