1
// brush: "io" aliases: []
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
// See <jquery.syntax.js> for licensing details.
7
Syntax.register('io', function(brush) {
8
brush.push(Syntax.lib.cStyleFunction);
10
var keywords = ["return"];
12
var operators = ["::=", ":=", "or", "and", "@", "+", "*", "/", "-", "&", "|", "~", "!", "%", "<", "=", ">", "[", "]", "new", "delete"];
14
brush.push(keywords, {klass: 'keywords'});
15
brush.push(operators, {klass: 'operator'});
17
// Extract space delimited method invocations
19
pattern: /\b([ \t]+([a-z]+))/gi,
20
matches: Syntax.extractMatches({index: 2, klass: 'function'})
24
pattern: /\)([ \t]+([a-z]+))/gi,
25
matches: Syntax.extractMatches({index: 2, klass: 'function'})
28
// Objective-C classes
29
brush.push(Syntax.lib.camelCaseType);
31
brush.push(Syntax.lib.perlStyleComment);
32
brush.push(Syntax.lib.cStyleComment);
33
brush.push(Syntax.lib.cppStyleComment);
34
brush.push(Syntax.lib.webLink);
37
brush.push(Syntax.lib.singleQuotedString);
38
brush.push(Syntax.lib.doubleQuotedString);
39
brush.push(Syntax.lib.stringEscape);
42
brush.push(Syntax.lib.decimalNumber);
43
brush.push(Syntax.lib.hexNumber);