404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.140.184.203: ~ $
// brush: "ocaml" aliases: ["ml", "sml", "fsharp"]

//	This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
//	Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
//	See <jquery.syntax.js> for licensing details.

// This brush is based loosely on the following documentation:
// http://msdn.microsoft.com/en-us/library/dd233230.aspx

Syntax.register('ocaml', function(brush) {
	var keywords = ["abstract", "and", "as", "assert", "begin", "class", "default", "delegate", "do", "done", "downcast", "downto", "elif", "else", "end", "exception", "extern", "finally", "for", "fun", "function", "if", "in", "inherit", "inline", "interface", "internal", "lazy", "let", "match", "member", "module", "mutable", "namespace", "new", "null", "of", "open", "or", "override", "rec", "return", "static", "struct", "then", "to", "try", "type", "upcast", "use", "val", "when", "while", "with", "yield", "asr", "land", "lor", "lsl", "lsr", "lxor", "mod", "sig", "atomic", "break", "checked", "component", "const", "constraint", "constructor", "continue", "eager", "event", "external", "fixed", "functor", "global", "include", "method", "mixin", "object", "parallel", "process", "protected", "pure", "sealed", "trait", "virtual", "volatile", "val"];
	
	var types = ["bool", "byte", "sbyte", /\bu?int\d*\b/g, "nativeint", "unativeint", "char", "string", "decimal", "unit", "void", "float32", "single", "float64", "double", "list", "array", "exn", "format", "fun", "option", "ref"];
	
	var operators = ["!", "<>", "%", "&", "*", "+", "-", "->", "/", "::", ":=", ":>", ":?", ":?>", "<", "=", ">", "?", "@", "^", "_", "`", "|", "~", "'", "[<", ">]", "<|", "|>", "[|", "|]", "(|", "|)", "(*", "*)", "in"];
	
	var values = ["true", "false"];
	
	var access = ["private", "public"];
	
	brush.push(access, {klass: 'access'});
	brush.push(values, {klass: 'constant'});
	brush.push(types, {klass: 'type'});
	brush.push(keywords, {klass: 'keyword'});
	brush.push(operators, {klass: 'operator'});
	
	// http://caml.inria.fr/pub/docs/manual-ocaml/manual011.html#module-path
	// open [module-path], new [type]
	brush.push({
		pattern: /(?:open|new)\s+((?:\.?[a-z][a-z0-9]*)+)/gi,
		matches: Syntax.extractMatches({klass: 'type'})
	});
	
	// Functions
	brush.push({
		pattern: /(?:\.)([a-z_][a-z0-9_]+)/gi,
		matches: Syntax.extractMatches({klass: 'function'})
	});
	
	// Avoid highlighting keyword arguments as camel-case types.
	brush.push({
		pattern: /(?:\(|,)\s*(\w+\s*=)/g,
		matches: Syntax.extractMatches({
			klass: 'keyword-argument'
		})
	});
	
	// We need to modify cStyleFunction because "(*" is a comment token.
	brush.push({
		pattern: /([a-z_][a-z0-9_]*)\s*\((?!\*)/gi,
		matches: Syntax.extractMatches({klass: 'function'})
	});
	
	// Types
	brush.push(Syntax.lib.camelCaseType);
	
	// Web Links
	brush.push(Syntax.lib.webLink);
	
	// Comments
	brush.push({
		pattern: /\(\*[\s\S]*?\*\)/g,
		klass: 'comment'
	});
	
	// Strings
	brush.push(Syntax.lib.doubleQuotedString);
	brush.push(Syntax.lib.stringEscape);
	
	// Numbers
	brush.push(Syntax.lib.decimalNumber);
	brush.push(Syntax.lib.hexNumber);
});

Filemanager

Name Type Size Permission Actions
jquery.js File 178.89 KB 0644
jquery.syntax.brush.apache.js File 1.11 KB 0644
jquery.syntax.brush.applescript.js File 7.58 KB 0644
jquery.syntax.brush.assembly.js File 1.16 KB 0644
jquery.syntax.brush.bash-script.js File 2.15 KB 0644
jquery.syntax.brush.bash.js File 854 B 0644
jquery.syntax.brush.basic.js File 3 KB 0644
jquery.syntax.brush.clang.js File 3.14 KB 0644
jquery.syntax.brush.csharp.js File 2.21 KB 0644
jquery.syntax.brush.css.js File 3.89 KB 0644
jquery.syntax.brush.diff.js File 873 B 0644
jquery.syntax.brush.go.js File 1.69 KB 0644
jquery.syntax.brush.haskell.js File 1.44 KB 0644
jquery.syntax.brush.html.js File 1.77 KB 0644
jquery.syntax.brush.io.js File 1.3 KB 0644
jquery.syntax.brush.java.js File 1.88 KB 0644
jquery.syntax.brush.javascript.js File 1.36 KB 0644
jquery.syntax.brush.kai.js File 757 B 0644
jquery.syntax.brush.lisp.js File 1.07 KB 0644
jquery.syntax.brush.lua.js File 1.28 KB 0644
jquery.syntax.brush.ocaml.js File 3.07 KB 0644
jquery.syntax.brush.ooc.js File 2.07 KB 0644
jquery.syntax.brush.pascal.js File 2.22 KB 0644
jquery.syntax.brush.perl5.js File 3.54 KB 0644
jquery.syntax.brush.php-script.js File 1.81 KB 0644
jquery.syntax.brush.php.js File 516 B 0644
jquery.syntax.brush.plain.js File 341 B 0644
jquery.syntax.brush.protobuf.js File 1.36 KB 0644
jquery.syntax.brush.python.js File 2.69 KB 0644
jquery.syntax.brush.ruby.js File 2.48 KB 0644
jquery.syntax.brush.scala.js File 1.39 KB 0644
jquery.syntax.brush.smalltalk.js File 877 B 0644
jquery.syntax.brush.sql.js File 10.36 KB 0644
jquery.syntax.brush.super-collider.js File 1.51 KB 0644
jquery.syntax.brush.xml.js File 1.48 KB 0644
jquery.syntax.brush.yaml.js File 677 B 0644
jquery.syntax.core.js File 34.38 KB 0644
jquery.syntax.js File 8.05 KB 0644
jquery.syntax.layout.yelp.js File 106 B 0644