~ubuntu-branches/ubuntu/trusty/yelp-xsl/trusty

« back to all changes in this revision

Viewing changes to js/jquery.syntax.brush.clang.js

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-19 17:46:00 UTC
  • mto: (11.1.2 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20120319174600-pzeaayow54b559hi
Tags: upstream-3.3.92
ImportĀ upstreamĀ versionĀ 3.3.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        
10
10
        var access = ["@private", "@protected", "@public", "@required", "@optional", "private", "protected", "public", "friend", "using"];
11
11
        
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"];
13
14
        
14
15
        var operators = ["+", "*", "/", "-", "&", "|", "~", "!", "%", "<", "=", ">", "[", "]", "new", "delete", "in"];
15
16
        
16
17
        var values = ["this", "true", "false", "NULL", "YES", "NO", "nil"];
17
18
        
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'});
33
35
        brush.push(propertyAttributes, {
34
36
                klass: 'keyword',
35
37
                only: ['objective-c-property']
36
 
        })
 
38
        });
37
39
        
38
40
        // Objective-C strings
39
41
        
42
44
                klass: 'string'
43
45
        });
44
46
        
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);
 
50
        brush.push({
 
51
                pattern: /(?:class|struct|enum|namespace)\s+([^{;\s]+)/gmi,
 
52
                matches: Syntax.extractMatches({klass: 'type'})
 
53
        });
47
54
        
48
55
        brush.push({
49
56
                pattern: /#.*$/gmi,