Fix endif

This commit is contained in:
Garen Torikian 2012-12-25 00:20:33 -08:00
commit 142415b985

View file

@ -85,8 +85,11 @@ var c_cppHighlightRules = function() {
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
}, { }, {
token : "keyword", // pre-compiler directives token : "keyword", // pre-compiler directives
regex : "(?:#include|#import|#pragma|#line|#define|#undef|#if|#ifdef|#else|#elif|#endif|#ifndef)", regex : "(?:#include|#import|#pragma|#line|#define|#undef|#if|#ifdef|#else|#elif|#ifndef)",
next : "directive" next : "directive"
}, {
token : "keyword", // special case pre-compiler directive
regex : "(?:#endif)"
}, { }, {
token : "support.function.C99.c", token : "support.function.C99.c",
regex : cFunctions regex : cFunctions