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

C: Better class name and macro name detection #2585

Merged

Conversation

RunDevelopment
Copy link
Member

C:

  • Improved class name detection by using the _t naming convention for typedef structs.
  • Improved macros. #define FOO (0) is no longer falsely highlighted as a function-like macro.

OpenCL C:

Because of the changes to C, I had to make some modifications to OpenCL C as well. I moved all builtin types (that's aren't vectors/matrixes of C builtin types) into their own token.

@RunDevelopment RunDevelopment merged commit 129faf5 into PrismJS:master Nov 4, 2020
@RunDevelopment RunDevelopment deleted the c-class-name-and-macro-name branch November 4, 2020 10:48
This was referenced Mar 6, 2021
This was referenced Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant