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.

Feature Request: match C/C++ preprocessor directives #400

Description

@lzkelley

Summary

I get the sense that atom is used a bit less for c/c++, but still - a really helpful feature would be to also match and highlight preprocessor directives in c. These can be especially hard to follow/match manually because they don't follow the local indentation of general code.
e.g.

#ifdef DIRECTIVE   /* <--- this matches */
    /* some c code ... */
    int num;
    int *pnt;  /* oooh a pointer */
#endif             /* <--- this */

Describe alternatives you've considered

Though it is more common to not indent preprocessor directives at all, this is primarily for historical reasons (to my knowledge), and using indents does help aid matching --- but, of course, much less so when there's lots of nesting and the matching statements are pages away.

No activity

Activity on this issue will appear here.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions