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_cpp_highlight_rules): (Separate Syntax Highlighting for C++ and Objective C) #5598

Open
shavesha opened this issue Jun 22, 2024 · 0 comments

Comments

@shavesha
Copy link

Describe the bug

The present syntax highlighting rules for C++ are also being used for Objective-C. This has introduced keywords that are not part of the C++ standard keyword-list, therefore, the current implementation is incorrect and also outdated.

Expected Behavior

Please refer to cppreference.com for a detailed description of all legal keywords that are allowed in C++ and restrict the implementation to that.

Current Behavior

Please refer to c_cppHighlightRules which is exporting cFunctions, this part is being shared between C++ and Objective-C, and is the problem

Reproduction Steps

Any valid c++ code that includes keywords stated in the cFunctions

Possible Solution

Separate syntax highlighting rules for C++ and Objective-C

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

v1.35.0/Chrome/WinOS/US Layout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants