~ubuntu-branches/debian/experimental/yelp-xsl/experimental

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-17 15:12:22 UTC
  • mfrom: (1.1.16) (11.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120317151222-pnzcgh4actzfkwdb
Tags: 3.3.3-1
New upstream development release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// brush: "lisp" aliases: ['scheme', 'clojure']
2
2
 
3
 
//      This file is part of the "jQuery.Syntax" project, and is licensed under the GNU AGPLv3.
4
 
//      Copyright 2010 Samuel Williams. All rights reserved.
 
3
//      This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
 
4
//      Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
5
5
//      See <jquery.syntax.js> for licensing details.
6
6
 
7
7
Syntax.lib.lispStyleComment = {pattern: /(;+) .*$/gm, klass: 'comment', allow: ['href']};
13
13
        
14
14
        brush.push(Syntax.lib.lispStyleComment);
15
15
        
16
 
        // Hex, Octal and Binary numbers :)
17
 
        brush.push({
18
 
                pattern: /0x[0-9a-fA-F]+/g,
19
 
                klass: 'constant'
20
 
        });
21
 
        
 
16
        brush.push(Syntax.lib.hexNumber);
22
17
        brush.push(Syntax.lib.decimalNumber);
23
18
        brush.push(Syntax.lib.webLink);
24
19
        
25
20
        brush.push({
26
 
                pattern: /\(([^\s\(\)]+)/gi,
27
 
                matches: Syntax.extractMatches({klass: 'function'})
28
 
        });
29
 
        
30
 
        brush.push({
31
 
                pattern: /\(([^\s\(\)]+)/gi,
 
21
                pattern: /\(\s*([^\s\(\)]+)/gmi,
32
22
                matches: Syntax.extractMatches({klass: 'function'})
33
23
        });
34
24
        
38
28
        })
39
29
        
40
30
        // Strings
41
 
        brush.push(Syntax.lib.doubleQuotedString);
 
31
        brush.push(Syntax.lib.multiLineDoubleQuotedString);
42
32
        brush.push(Syntax.lib.stringEscape);
43
33
});
44
34