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

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

Open
lzkelley opened this issue Jun 24, 2020 · 0 comments
Open

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

lzkelley opened this issue Jun 24, 2020 · 0 comments

Comments

@lzkelley
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant