10
10
var access = ["@private", "@protected", "@public", "@required", "@optional", "private", "protected", "public", "friend", "using"];
12
var types = ["mutable", "auto", "const", "double", "float", "int", "short", "char", "long", "signed", "unsigned", "bool", "void", "typename", "id", "register", "wchar_t"];
12
var typeModifiers = ["mutable", "auto", "const", "register", "typename", "abstract"];
13
var types = ["double", "float", "int", "short", "char", "long", "signed", "unsigned", "bool", "void", "id"];
14
15
var operators = ["+", "*", "/", "-", "&", "|", "~", "!", "%", "<", "=", ">", "[", "]", "new", "delete", "in"];
16
17
var values = ["this", "true", "false", "NULL", "YES", "NO", "nil"];
18
19
brush.push(values, {klass: 'constant'});
20
brush.push(typeModifiers, {klass: 'keyword'})
19
21
brush.push(types, {klass: 'type'});
20
22
brush.push(keywords, {klass: 'keyword'});
21
23
brush.push(operators, {klass: 'operator'});
45
// Objective-C classes
47
// Objective-C classes, C++ classes, C types, etc.
46
48
brush.push(Syntax.lib.camelCaseType);
49
brush.push(Syntax.lib.cStyleType);
51
pattern: /(?:class|struct|enum|namespace)\s+([^{;\s]+)/gmi,
52
matches: Syntax.extractMatches({klass: 'type'})
49
56
pattern: /#.*$/gmi,