Skip to content

(c_cpp_highlight_rules): (Separate Syntax Highlighting for C++ and Objective C) #5598

Open
@shavesha

Description

@shavesha

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions