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

« back to all changes in this revision

Viewing changes to js/jquery.syntax.brush.ruby.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:
30
30
                matches: Syntax.extractMatches({klass: 'function'}, {klass: 'constant'})
31
31
        });
32
32
        
 
33
        brush.push({
 
34
                pattern: /`[^`]+`/g,
 
35
                klass: 'string'
 
36
        });
 
37
        
 
38
        brush.push({
 
39
                pattern: /\#\{([^\}]*)\}/g,
 
40
                matches: Syntax.extractMatches({
 
41
                        brush: 'ruby',
 
42
                        only: ['string']
 
43
                }),
 
44
        });
 
45
        
33
46
        // Regular expressions
34
 
        brush.push(Syntax.lib.perlStyleRegularExpressions);
 
47
        brush.push(Syntax.lib.perlStyleRegularExpression);
35
48
        
36
49
        brush.push({pattern: /(@+|\$)[\w]+/g, klass: 'variable'});
37
50