fix c and stylus highlighters

This commit is contained in:
nightwing 2012-12-25 16:56:31 +04:00
commit 0c79b239b6
6 changed files with 178 additions and 34 deletions

View file

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