Skip to content

C++ syntax highlighting incorrectly coloring std functions #3788

Closed
@LeadFreeCandy

Description

@LeadFreeCandy

Summary

When you modify the existing "onedark" theme to highlight variables as red, it incorrectly highlighted std functions as variables as well.

In the default "onedark" theme the code looks like this:
Screen Shot 2022-09-10 at 7 14 29 PM

Which is not actually true to what it should look like, as in atom variables are red. When you change the variables attribute in the theme file it looks like this:
Screen Shot 2022-09-10 at 7 14 10 PM

The variables are now correctly highlighted red, but std::getline() and std::tolower() are now erroneously colored. They should be highlighted blue but they are not detected as functions.

Reproduction Steps

No response

Helix log

No response

Platform

macOS

Terminal Emulator

iTerm2

Helix Version

Helix 22.08.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tree-sitterArea: Tree-sitterC-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions