-
Notifications
You must be signed in to change notification settings - Fork 161
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
Added pragmas #3370
Added pragmas #3370
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3370 +/- ##
=========================================
Coverage ? 61.77%
=========================================
Files ? 634
Lines ? 306059
Branches ? 0
=========================================
Hits ? 189069
Misses ? 116990
Partials ? 0
|
So, why is this crashing? Did you investigate already? |
Sorry, no. Will investigate! |
So, I would guess the tests fail because of missing pragma support in syntaxtrees. Will add some :) |
2b1c836
to
79f5dcc
Compare
@fingolfin Tests pass now. |
Is there a possible problem with me using |
@ChrisJefferson No. |
Is documentation coming? |
@alex-konovalov I am not sure where to put the documentation to be honest. I think the best way is to add a new section in the |
@alex-konovalov I updated the PR to include documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sebasguts Oops, just noticed that I forgot to submit these comments yesterday -- sorry for the delay :/
ed042f1
to
5e10709
Compare
Functions can contain pragmas, i.e., comments which are stored inside the "compiled" function as a string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only feel qualified to review the documentation and tests; both of which I'm happy with. The code itself looks reasonable: there's nothing I can see that looks completely crazy.
Shall we close #1811 upon merging this PR? |
I would say so, yes. |
This now breaks FR package by @laurentbartholdi which has lines with comments looking like
|
What makes you think that this change here causes the breakage in FR? Nothing in the error message there looks like that to me. |
Ah OK, in the FR issue you explain it! Still weird; anyway, @sebasguts and me will look into it ASAP. |
@fingolfin you have a point: the first failing build for FR was 459.31 one day earlier than 460.31. They not exactly the same diffs. So there must be something else involved as well. |
There was actually a bug in the pragma scanning, #3410 should fix it. |
Functions can contain pragmas, i.e., comments
which are stored inside the "compiled" function
as a string.
This is a reimplementation of #1811
Closes #1811