-
Notifications
You must be signed in to change notification settings - Fork 28
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
Commas in macros not separating parameters properly #324
Comments
@jeff-hykin This is apparently a valid macro function start. Do you want to try to support it? #define foo(arg1\
, arg2, arg3) In use: https://godbolt.org/z/ylRBsC |
@tristan957 is this a |
Yes it is |
It was a |
Unfortunately without something like the C/C++ extension or Modelines to changes the syntax on a per-file basis, all |
I have the C/C++ extension installed. One of my favorite extensions. I had disabled semantic highlighting when I made this issue however. Does that have a side-effect with regard to TRUE? |
No, I was under the impression that it adjusted the file association for each file it looks at, but it seems that's just to mark extensionless files as cpp files. To get C syntax highlighting for your
And .h files should have the correct syntax highlighting. |
Ok then I guess I will do that when I am in that project next. I'll report if TRUE still doesn't report correctly. |
There's actually several other syntax issues in the example. First are the @matter123 I'm not exactly sure what the cause is, it appears that all of the ranges are ending after a single line but starting the macro with Then the last problem is that the |
Right now I don't think so, but eventually yeah. We can drop the one-liner backreferences the legacy patterns are using and use a pattern range with a lookbehind for |
@jeff-hykin What is the issue with the Wouldn't adding macro_argument to ever_present_context recreate #292? |
It wasn't highlighted because it doesn't compile (because it's wrapped inside of ()'s) which is the correct behavior. |
@matter123 the TRUE problem was fixed. Thank you my friend |
I am noticing weird behavior on the last comma in the macro definition, or maybe the previous two commas are wrong. Is TRUE supposed to be recognized as a boolean value in this context?
Originally posted by @tristan957 in #311 (comment)
The text was updated successfully, but these errors were encountered: