Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

C++ syntax highlighting does not behave properly in some class inheritance cases #81

Open

Description

@jaredmpayne

The commented screenshot shows expected and observed behavior.
This occurred on OS X. I am running 10.11 Beta, but I'm confident I've experienced this behavior in 10.10 as well.

screen shot 2015-07-20 at 3 45 45 pm

Activity

  1. winstliu commented on Jan 15, 2017

    @winstliu
    Contributor
    class ClassE final : public ClassA {
    
    };
    
    namespace foo {
        class ClassF {
    
        };
    
        class ClassG {
    
        };
    }
    
    class ClassH : public foo::ClassF, public foo::ClassG {
    
    };

    for easy copy/paste testing.

  2. meyfa commented on Apr 18, 2017

    @meyfa

    Can confirm that namespaces after the colon and also multiple inheritance are still not highlighted properly. language-c v0.57.0, Atom v1.16.0.

  3. Leedehai commented on Aug 2, 2017

    @Leedehai

    (Copied @Leedehai)
    Key word 'public' not recognized when namespace is involved in class inheritance
    screen shot 2017-08-01 at 21 55 41
    Also, class name is not recognized when namespace is involved. I feel regex matching is problematic when "::" is prefixed/suffixed.

  4. meyfa commented on Jan 31, 2021

    @meyfa

    This seems to be fixed (try the copy-paste example above with a recent Atom version). I think the issue can be closed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions