abusalimov / SublimeCImproved

(NO LONGER MAINTAINED) Improved syntax for C/C++/Objective-C, with a special support for sources of Linux kernel, CPython, etc.
https://packagecontrol.io/packages/C%20Improved
MIT License
51 stars 45 forks source link

preproc: Make end patterns more sensitive #20

Closed abusalimov closed 9 years ago

abusalimov commented 9 years ago

Apply the regex used for macros for the rest preprocessor rules.

This is necessary to make preprocessor rules exit even if a newline, which used to trigger end patterns ((?=\n)$\n?), is consumed by some inner rule, like a // single-line comment.

Fixes #18 ("Include directive miscolored when preceded by single-line comment")