Skip to content

🐞 Code highlights incorrectly disabled on files with extension name '.c++'#1404

@NathanShi

Description

@NathanShi

Description

Code highlights incorrectly disabled for c plus plus source code file with extension name '.c++' by default. Here's a screenshot that showed this:
截屏2023-08-14 下午4 06 46
As you can see above, these two files with exactly same code, but highlights works on '.cpp' file, not work on '.c++' file.
It seems that CodeEdit won't recognize the '.c++' file as a c plus plus source code automatically.
Workaround: Set the type of '.c++' file to 'Cpp' on inspector for every '.c++' file manually.

To Reproduce

  1. Open a c plus plus file with extension name '.c++'.
  2. Done.

Expected Behavior

Highlight the codes for '.c++' files, just like what CodeEdit do to '.cpp' file.

Version Information

CodeEdit: 0.0.3-alpha (36)
macOS: 14.0 Beta (23A5312d), macOS Sonoma Developer Beta
Xcode: 15.0 beta 6 (15A5219j)

Additional Context

Tested on another software: Xcode, Clion & Sublime Text correctly highlights the code of '.c++' file.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🏁 Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions