async-debug 0.1.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/debug/application.rb +21 -0
- data/lib/async/debug/reactor_view.rb +7 -24
- data/lib/async/debug/version.rb +3 -20
- data/lib/async/debug.rb +15 -71
- data/license.md +21 -0
- data/readme.md +27 -0
- data.tar.gz.sig +0 -0
- metadata +45 -182
- metadata.gz.sig +0 -0
- data/pages/_heading.xnode +0 -2
- data/pages/_page.xnode +0 -42
- data/pages/controller.rb +0 -19
- data/pages/errors/exception.xnode +0 -5
- data/pages/errors/file-not-found.xnode +0 -5
- data/pages/index.xnode +0 -3
- data/pages/links.yaml +0 -4
- data/public/_components/@socketry/live/live.js +0 -157
- data/public/_components/@socketry/live/live.min.js +0 -1
- data/public/_components/jquery/jquery.js +0 -10872
- data/public/_components/jquery/jquery.min.js +0 -2
- data/public/_components/jquery/jquery.min.map +0 -1
- data/public/_components/jquery/jquery.slim.js +0 -8777
- data/public/_components/jquery/jquery.slim.min.js +0 -2
- data/public/_components/jquery/jquery.slim.min.map +0 -1
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.apache.css +0 -12
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.applescript.css +0 -5
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.assembly.css +0 -8
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash-script.css +0 -4
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash.css +0 -2
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.clang.css +0 -6
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.css.css +0 -14
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.diff.css +0 -16
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.html.css +0 -5
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.ocaml.css +0 -3
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.protobuf.css +0 -2
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.python.css +0 -6
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.ruby.css +0 -2
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.xml.css +0 -35
- data/public/_components/jquery-syntax/base/jquery.syntax.core.css +0 -58
- data/public/_components/jquery-syntax/base/jquery.syntax.editor.css +0 -6
- data/public/_components/jquery-syntax/base/theme.js +0 -1
- data/public/_components/jquery-syntax/bright/jquery.syntax.core.css +0 -27
- data/public/_components/jquery-syntax/bright/theme.js +0 -1
- data/public/_components/jquery-syntax/jquery.syntax.brush.apache.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.applescript.js +0 -5
- data/public/_components/jquery-syntax/jquery.syntax.brush.assembly.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.bash-script.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.bash.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.brush.basic.js +0 -5
- data/public/_components/jquery-syntax/jquery.syntax.brush.clang.js +0 -5
- data/public/_components/jquery-syntax/jquery.syntax.brush.csharp.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.css.js +0 -5
- data/public/_components/jquery-syntax/jquery.syntax.brush.diff.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.brush.go.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.haskell.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.html.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.io.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.java.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.javascript.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.kai.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.brush.lisp.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.brush.lua.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.nginx.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.brush.ocaml.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.ooc.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.pascal.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.perl5.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.php-script.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.php.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.brush.plain.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.brush.protobuf.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.python.js +0 -5
- data/public/_components/jquery-syntax/jquery.syntax.brush.ruby.js +0 -5
- data/public/_components/jquery-syntax/jquery.syntax.brush.scala.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.smalltalk.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.brush.sql.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.super-collider.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.swift.js +0 -3
- data/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.brush.xml.js +0 -4
- data/public/_components/jquery-syntax/jquery.syntax.brush.yaml.js +0 -2
- data/public/_components/jquery-syntax/jquery.syntax.cache.js +0 -7
- data/public/_components/jquery-syntax/jquery.syntax.core.js +0 -34
- data/public/_components/jquery-syntax/jquery.syntax.editor.js +0 -11
- data/public/_components/jquery-syntax/jquery.syntax.js +0 -8
- data/public/_components/jquery-syntax/jquery.syntax.min.js +0 -13
- data/public/_components/jquery-syntax/paper/jquery.syntax.core.css +0 -31
- data/public/_components/jquery-syntax/paper/theme.js +0 -1
- data/public/_components/morphdom/morphdom-esm.js +0 -755
- data/public/_components/morphdom/morphdom-factory.js +0 -691
- data/public/_components/morphdom/morphdom-umd.js +0 -763
- data/public/_components/morphdom/morphdom-umd.min.js +0 -1
- data/public/_components/morphdom/morphdom.js +0 -757
- data/public/_static/icon.png +0 -0
- data/public/_static/links.js +0 -21
- /data/public/_static/{site.css → index.css} +0 -0
@@ -1,35 +0,0 @@
|
|
1
|
-
.syntax-theme-base .xml .cdata-content {
|
2
|
-
color: #046;
|
3
|
-
border-radius: 0.5em; }
|
4
|
-
.syntax-theme-base .xml .xml-tag, .syntax-theme-base .xml .cdata {
|
5
|
-
color: #00c; }
|
6
|
-
.syntax-theme-base .xml .tag-name, .syntax-theme-base .xml .cdata-tag {
|
7
|
-
color: #00f;
|
8
|
-
font-weight: bold; }
|
9
|
-
.syntax-theme-base .xml .namespace {
|
10
|
-
color: #00c; }
|
11
|
-
.syntax-theme-base .xml .attribute {
|
12
|
-
color: #00c; }
|
13
|
-
.syntax-theme-base .xml .instruction {
|
14
|
-
color: #00c; }
|
15
|
-
.syntax-theme-base .xml .entity, .syntax-theme-base .xml .percent-escape {
|
16
|
-
color: #666;
|
17
|
-
background-color: #ddd;
|
18
|
-
border-radius: 0.5em; }
|
19
|
-
|
20
|
-
@media (prefers-color-scheme: dark) {
|
21
|
-
.syntax-theme-base .xml .cdata-content {
|
22
|
-
color: #a46; }
|
23
|
-
.syntax-theme-base .xml .xml-tag, .syntax-theme-base .xml .cdata {
|
24
|
-
color: #c59de7; }
|
25
|
-
.syntax-theme-base .xml .tag-name, .syntax-theme-base .xml .cdata-tag {
|
26
|
-
color: #9ae; }
|
27
|
-
.syntax-theme-base .xml .namespace {
|
28
|
-
color: #c59de7; }
|
29
|
-
.syntax-theme-base .xml .attribute {
|
30
|
-
color: #c59de7; }
|
31
|
-
.syntax-theme-base .xml .instruction {
|
32
|
-
color: #c59de7; }
|
33
|
-
.syntax-theme-base .xml .entity, .syntax-theme-base .xml .percent-escape {
|
34
|
-
color: #999;
|
35
|
-
background-color: #333; } }
|
@@ -1,58 +0,0 @@
|
|
1
|
-
pre code.syntax-theme-base {
|
2
|
-
display: block; }
|
3
|
-
pre code.syntax-theme-base > span {
|
4
|
-
display: flex; }
|
5
|
-
pre code.syntax-theme-base .indent {
|
6
|
-
flex-grow: 0;
|
7
|
-
flex-shrink: 0; }
|
8
|
-
pre code.syntax-theme-base .text {
|
9
|
-
white-space: pre-wrap;
|
10
|
-
padding-left: 2ch;
|
11
|
-
text-indent: -2ch; }
|
12
|
-
|
13
|
-
.syntax-theme-base a {
|
14
|
-
text-decoration: none;
|
15
|
-
color: inherit; }
|
16
|
-
.syntax-theme-base .function {
|
17
|
-
color: #33f; }
|
18
|
-
.syntax-theme-base .keyword, .syntax-theme-base .access, .syntax-theme-base .option {
|
19
|
-
color: #7a0968; }
|
20
|
-
.syntax-theme-base .type {
|
21
|
-
color: #3239D6; }
|
22
|
-
.syntax-theme-base .comment {
|
23
|
-
color: #6ac; }
|
24
|
-
.syntax-theme-base .constant {
|
25
|
-
color: #1c00ce; }
|
26
|
-
.syntax-theme-base .string, .syntax-theme-base .symbol {
|
27
|
-
color: #c41a15; }
|
28
|
-
.syntax-theme-base .string .escape {
|
29
|
-
color: #f99; }
|
30
|
-
.syntax-theme-base .operator {
|
31
|
-
color: black; }
|
32
|
-
.syntax-theme-base .href {
|
33
|
-
color: #0e0eff;
|
34
|
-
text-decoration: underline; }
|
35
|
-
.syntax-theme-base .variable {
|
36
|
-
color: #466997; }
|
37
|
-
.syntax-theme-base .highlight {
|
38
|
-
background-color: #fdfdba; }
|
39
|
-
|
40
|
-
@media (prefers-color-scheme: dark) {
|
41
|
-
.syntax-theme-base .operator {
|
42
|
-
color: white; }
|
43
|
-
.syntax-theme-base .function {
|
44
|
-
color: #c59de7; }
|
45
|
-
.syntax-theme-base .keyword, .syntax-theme-base .access, .syntax-theme-base .option {
|
46
|
-
color: #328eff; }
|
47
|
-
.syntax-theme-base .type {
|
48
|
-
color: #37a4ff; }
|
49
|
-
.syntax-theme-base .comment {
|
50
|
-
color: #849fca; }
|
51
|
-
.syntax-theme-base .constant {
|
52
|
-
color: #c9a452; }
|
53
|
-
.syntax-theme-base .string, .syntax-theme-base .symbol {
|
54
|
-
color: #ed7f7d; }
|
55
|
-
.syntax-theme-base .string .escape {
|
56
|
-
color: #f99; }
|
57
|
-
.syntax-theme-base .variable {
|
58
|
-
color: #6e6dff; } }
|
@@ -1 +0,0 @@
|
|
1
|
-
Syntax.themes["base"] = []
|
@@ -1,27 +0,0 @@
|
|
1
|
-
.syntax-container.syntax-theme-bright .syntax {
|
2
|
-
font-family: Menlo, Monaco, Consolas, monospace;
|
3
|
-
line-height: 1.5em; }
|
4
|
-
.syntax-container.syntax-theme-bright .syntax .function {
|
5
|
-
color: #33f; }
|
6
|
-
.syntax-container.syntax-theme-bright .syntax .keyword {
|
7
|
-
color: #3c3; }
|
8
|
-
.syntax-container.syntax-theme-bright .syntax .access {
|
9
|
-
color: #ffb600;
|
10
|
-
font-weight: bold; }
|
11
|
-
.syntax-container.syntax-theme-bright .syntax .type {
|
12
|
-
color: #191;
|
13
|
-
font-weight: bold; }
|
14
|
-
.syntax-container.syntax-theme-bright .syntax .comment {
|
15
|
-
color: #6ac;
|
16
|
-
font-style: italic; }
|
17
|
-
.syntax-container.syntax-theme-bright .syntax .string, .syntax-container.syntax-theme-bright .syntax .constant {
|
18
|
-
color: #f33; }
|
19
|
-
.syntax-container.syntax-theme-bright .syntax .string .escape {
|
20
|
-
color: #f99; }
|
21
|
-
.syntax-container.syntax-theme-bright .syntax .operator {
|
22
|
-
color: #c00; }
|
23
|
-
.syntax-container.syntax-theme-bright .syntax .href {
|
24
|
-
color: #00f;
|
25
|
-
text-decoration: underline; }
|
26
|
-
.syntax-container.syntax-theme-bright .syntax .variable {
|
27
|
-
color: #22c; }
|
@@ -1 +0,0 @@
|
|
1
|
-
Syntax.themes["bright"] = ["base"]
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("apache",function(a){a.push({pattern:/(<(\w+).*?>)/gi,matches:Syntax.extractMatches({klass:"tag",allow:["attribute","tag-name","string"]},{klass:"tag-name",process:Syntax.lib.webLinkProcess("site:http://httpd.apache.org/docs/trunk/ directive",!0)})});a.push({pattern:/(<\/(\w+).*?>)/gi,matches:Syntax.extractMatches({klass:"tag",allow:["tag-name"]},{klass:"tag-name"})});a.push({pattern:/^\s+([A-Z][\w]+)/gm,matches:Syntax.extractMatches({klass:"function",allow:["attribute"],process:Syntax.lib.webLinkProcess("site:http://httpd.apache.org/docs/trunk/ directive",
|
3
|
-
!0)})});a.push(Syntax.lib.perlStyleComment);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.webLink)});
|
@@ -1,5 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("applescript",function(a){a.push("after before beginning continue copy each end every from get global in local named of return set some that the then times to where whose with without".split(" "),{klass:"keyword"});a.push("first second third fourth fifth sixth seventh eighth ninth tenth last front back middle".split(" "),{klass:"keyword"});a.push("activate add alias AppleScript ask attachment boolean class constant delete duplicate empty exists false id integer list make message modal modified new no paragraph pi properties quit real record remove rest result reveal reverse run running save string true word yes".split(" "),
|
3
|
-
{klass:"keyword"});var b=[/(\-\-|#).*$/gm,/\(\*(?:[\s\S]*?\(\*[\s\S]*?\*\))*[\s\S]*?\*\)/gm,Syntax.lib.perlStyleComment.pattern];a.push(Syntax.lib.webLink);a.push(b,{klass:"comment",allow:["href"]});a.push(Syntax.lib.doubleQuotedString);a.push([/\b\d+(st|nd|rd|th)\b/g,/(-)?(\d)+(\.(\d)?)?(E\+(\d)+)?/g],{klass:"constant"});a.push({pattern:/&|\u00ac|=|\u2260|>|<|\u2265|>=|\u2264|<=|\*|\+|-|\/|\u00f7|\^/g,klass:"operator"});a.push({pattern:/\b(?:and|as|div|mod|not|or|return(?!\s&)(ing)?|equals|(is(n't| not)? )?equal( to)?|does(n't| not) equal|(is(n't| not)? )?(greater|less) than( or equal( to)?)?|(comes|does(n't| not) come) (after|before)|is(n't| not)?( in)? (back|front) of|is(n't| not)? behind|is(n't| not)?( (in|contained by))?|does(n't| not) contain|contain(s)?|(start|begin|end)(s)? with|((but|end) )?(consider|ignor)ing|prop(erty)?|(a )?ref(erence)?( to)?|repeat (until|while|with)|((end|exit) )?repeat|((else|end) )?if|else|(end )?(script|tell|try)|(on )?error|(put )?into|(of )?(it|me)|its|my|with (timeout( of)?|transaction)|end (timeout|transaction))\b/g,
|
4
|
-
klass:"keyword"});a.push({pattern:/\b(?:about|above|against|around|at|below|beneath|beside|between|by|(apart|aside) from|(instead|out) of|into|on(to)?|over|since|thr(ough|u)|under)\b/g,klass:"keyword"});a.push({pattern:/\b(?:adding folder items to|after receiving|choose( ((remote )?application|color|folder|from list|URL))?|clipboard info|set the clipboard to|(the )?clipboard|entire contents|display(ing| (alert|dialog|mode))?|document( (edited|file|nib name))?|file( (name|type))?|(info )?for|giving up after|(name )?extension|quoted form|return(ed)?|second(?! item)(s)?|list (disks|folder)|text item(s| delimiters)?|(Unicode )?text|(disk )?item(s)?|((current|list) )?view|((container|key) )?window|with (data|icon( (caution|note|stop))?|parameter(s)?|prompt|properties|seed|title)|case|diacriticals|hyphens|numeric strings|punctuation|white space|folder creation|application(s( folder)?| (processes|scripts position|support))?|((desktop )?(pictures )?|(documents|downloads|favorites|home|keychain|library|movies|music|public|scripts|sites|system|users|utilities|workflows) )folder|desktop|Folder Action scripts|font(s| panel)?|help|internet plugins|modem scripts|(system )?preferences|printer descriptions|scripting (additions|components)|shared (documents|libraries)|startup (disk|items)|temporary items|trash|on server|in AppleTalk zone|((as|long|short) )?user name|user (ID|locale)|(with )?password|in (bundle( with identifier)?|directory)|(close|open for) access|read|write( permission)?|(g|s)et eof|using( delimiters)?|starting at|default (answer|button|color|country code|entr(y|ies)|identifiers|items|name|location|script editor)|hidden( answer)?|open(ed| (location|untitled))?|error (handling|reporting)|(do( shell)?|load|run|store) script|administrator privileges|altering line endings|get volume settings|(alert|boot|input|mount|output|set) volume|output muted|(fax|random )?number|round(ing)?|up|down|toward zero|to nearest|as taught in school|system (attribute|info)|((AppleScript( Studio)?|system) )?version|(home )?directory|(IPv4|primary Ethernet) address|CPU (type|speed)|physical memory|time (stamp|to GMT)|replacing|ASCII (character|number)|localized string|from table|offset|summarize|beep|delay|say|(empty|multiple) selections allowed|(of|preferred) type|invisibles|showing( package contents)?|editable URL|(File|FTP|News|Media|Web) [Ss]ervers|Telnet hosts|Directory services|Remote applications|waiting until completion|saving( (in|to))?|path (for|to( (((current|frontmost) )?application|resource))?)|POSIX (file|path)|(background|RGB) color|(OK|cancel) button name|cancel button|button(s)?|cubic ((centi)?met(re|er)s|yards|feet|inches)|square ((kilo)?met(re|er)s|miles|yards|feet)|(centi|kilo)?met(re|er)s|miles|yards|feet|inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees (Celsius|Fahrenheit|Kelvin)|print( (dialog|settings))?|clos(e(able)?|ing)|(de)?miniaturized|miniaturizable|zoom(ed|able)|attribute run|action (method|property|title)|phone|email|((start|end)ing|home) page|((birth|creation|current|custom|modification) )?date|((((phonetic )?(first|last|middle))|computer|host|maiden|related) |nick)?name|aim|icq|jabber|msn|yahoo|address(es)?|save addressbook|should enable action|city|country( code)?|formatte(r|d address)|(palette )?label|state|street|zip|AIM [Hh]andle(s)?|my card|select(ion| all)?|unsaved|(alpha )?value|entr(y|ies)|group|(ICQ|Jabber|MSN) handle|person|people|company|department|icon image|job title|note|organization|suffix|vcard|url|copies|collating|pages (across|down)|request print time|target( printer)?|((GUI Scripting|Script menu) )?enabled|show Computer scripts|(de)?activated|awake from nib|became (key|main)|call method|of (class|object)|center|clicked toolbar item|closed|for document|exposed|(can )?hide|idle|keyboard (down|up)|event( (number|type))?|launch(ed)?|load (image|movie|nib|sound)|owner|log|mouse (down|dragged|entered|exited|moved|up)|move|column|localization|resource|script|register|drag (info|types)|resigned (active|key|main)|resiz(e(d)?|able)|right mouse (down|dragged|up)|scroll wheel|(at )?index|should (close|open( untitled)?|quit( after last window closed)?|zoom)|((proposed|screen) )?bounds|show(n)?|behind|in front of|size (mode|to fit)|update(d| toolbar item)?|was (hidden|miniaturized)|will (become active|close|finish launching|hide|miniaturize|move|open|quit|(resign )?active|((maximum|minimum|proposed) )?size|show|zoom)|bundle|data source|movie|pasteboard|sound|tool(bar| tip)|(color|open|save) panel|coordinate system|frontmost|main( (bundle|menu|window))?|((services|(excluded from )?windows) )?menu|((executable|frameworks|resource|scripts|shared (frameworks|support)) )?path|(selected item )?identifier|data|content(s| view)?|character(s)?|click count|(command|control|option|shift) key down|context|delta (x|y|z)|key( code)?|location|pressure|unmodified characters|types|(first )?responder|playing|(allowed|selectable) identifiers|allows customization|(auto saves )?configuration|visible|image( name)?|menu form representation|tag|user(-| )defaults|associated file name|(auto|needs) display|current field editor|floating|has (resize indicator|shadow)|hides when deactivated|level|minimized (image|title)|opaque|position|release when closed|sheet|title(d)?)\b/g,
|
5
|
-
klass:"keyword"})});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("assembly",function(a){a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push({pattern:/\.[a-zA-Z_][a-zA-Z0-9_]*/gm,klass:"directive"});a.push({pattern:/^[a-zA-Z_][a-zA-Z0-9_]*:/gm,klass:"label"});a.push({pattern:/^\s*([a-zA-Z]+)/gm,matches:Syntax.extractMatches({klass:"function"})});a.push({pattern:/(-[0-9]+)|(\b[0-9]+)|(\$[0-9]+)/g,klass:"constant"});a.push({pattern:/(\-|\b|\$)(0x[0-9a-f]+|[0-9]+|[a-z0-9_]+)/gi,klass:"constant"});a.push({pattern:/%\w+/g,klass:"register"});
|
3
|
-
a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.perlStyleComment);a.push(Syntax.lib.webLink)});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("bash-script",function(a){a.push(["&&","|",";","{","}"],{klass:"operator"});a.push({pattern:/(?:^|\||;|&&)\s*((?:"([^"]|\\")+"|'([^']|\\')+'|\\\n|.|[ \t])+?)(?=$|\||;|&&)/gmi,matches:Syntax.extractMatches({brush:"bash-statement"})})});
|
3
|
-
Syntax.register("bash-statement",function(a){a.push("break case continue do done elif else eq fi for function ge gt if in le lt ne return then until while".split(" "),{klass:"keyword"});a.push("> < = ` -- { } ( ) [ ]".split(" "),{klass:"operator"});a.push({pattern:/\(\((.*?)\)\)/gmi,klass:"expression",allow:["variable","string","operator","constant"]});a.push({pattern:/`([\s\S]+?)`/gmi,matches:Syntax.extractMatches({brush:"bash-script",debug:!0})});a.push(Syntax.lib.perlStyleComment);a.push({pattern:/^\s*((?:\S+?=\$?(?:\[[^\]]+\]|\(\(.*?\)\)|"(?:[^"]|\\")+"|'(?:[^']|\\')+'|\S+)\s*)*)((?:(\\ |\S)+)?)/gmi,
|
4
|
-
matches:Syntax.extractMatches({klass:"env",allow:["variable","string","operator","constant","expression"]},{klass:"function",allow:["variable","string"]})});a.push({pattern:/(\S+?)=/gmi,matches:Syntax.extractMatches({klass:"variable"}),only:["env"]});a.push({pattern:/\$\w+/g,klass:"variable"});a.push({pattern:/\s\-+[\w-]+/g,klass:"option"});a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.webLink)});
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.brushes.dependency("bash","bash-script");Syntax.register("bash",function(a){a.push({pattern:/^([\w@:~ ]*?[\$|#])\s+(.*?)$/gm,matches:Syntax.extractMatches({klass:"prompt"},{brush:"bash-script"})});a.push({pattern:/^\-\- .*$/gm,klass:"comment",allow:["href"]});a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.webLink);a.push({klass:"stderr",allow:["string","comment","constant","href"]})});
|
@@ -1,5 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.lib.vbStyleComment={pattern:/' .*$/gm,klass:"comment",allow:["href"]};
|
3
|
-
Syntax.register("basic",function(a){var b="- & &= * *= / /= \\ = ^ ^= + += = -=".split(" ");b="+ - * / += -= *= /= = := == != ! % ? > < >= <= && || & | ^ . ~ .. >> << >>> <<< >>= <<= >>>= <<<= %= ^= @".split(" ");a.push("CBool CByte CChar CDate CDec CDbl Char CInt CLng CObj Const CShort CSng CStr CType Date Decimal Variant String Short Long Single Double Object Integer Boolean Byte Char".split(" "),{klass:"type"});a.push("AddHandler AddressOf Alias And AndAlso Ansi As Assembly Auto ByRef ByVal Call Case Catch Declare Default Delegate Dim DirectCast Do Each Else ElseIf End Enum Erase Error Event Exit Finally For Function Get GetType GoSub GoTo Handles If Implements Imports In Inherits Interface Is Let Lib Like Loop Mod Module MustOverride Namespace New Next Not On Option Optional Or OrElse Overloads Overridable Overrides ParamArray Preserve Property RaiseEvent ReadOnly ReDim REM RemoveHandler Resume Return Select Set Static Step Stop Structure Sub SyncLock Then Throw To Try TypeOf Unicode Until When While With WithEvents WriteOnly Xor ExternalSource Region Print Class".split(" "),{klass:"keyword",
|
4
|
-
options:"gi"});a.push(b,{klass:"operator"});a.push("Public Protected Private Shared Friend Shadows MustInherit NotInheritable NotOverridable".split(" "),{klass:"access"});a.push(["Me","MyClass","MyBase","super","True","False","Nothing",/[A-Z][A-Z0-9_]+/g],{klass:"constant"});a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.vbStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.postprocess=function(a,b,c){jQuery(".function",
|
5
|
-
b).each(function(){var a=jQuery(this).text();jQuery(this).replaceWith(jQuery("<a>").attr("href","http://social.msdn.microsoft.com/Search/en-us?query="+encodeURIComponent(a)).text(a))});return b}});
|
@@ -1,5 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("clang",function(a){a.push("this true false NULL YES NO nil".split(" "),{klass:"constant"});a.push("mutable auto const register typename abstract".split(" "),{klass:"keyword"});a.push("double float int short char long signed unsigned bool void id".split(" "),{klass:"type"});a.push("@interface @implementation @protocol @end @try @throw @catch @finally @class @selector @encode @synchronized @property @synthesize @dynamic struct break continue else for switch case default enum goto register sizeof typedef volatile do extern if return static union while asm dynamic_cast namespace reinterpret_cast try explicit static_cast typeid catch operator template class const_cast inline throw virtual IBOutlet".split(" "),
|
3
|
-
{klass:"keyword"});a.push("+ * / - & | ~ ! % < = > [ ] new delete in".split(" "),{klass:"operator"});a.push("@private @protected @public @required @optional private protected public friend using".split(" "),{klass:"access"});a.push({pattern:/@property\((.*)\)[^;]+;/gmi,klass:"objective-c-property",allow:"*"});a.push("getter setter readwrite readonly assign retain copy nonatomic".split(" "),{klass:"keyword",only:["objective-c-property"]});a.push({pattern:/@(?=")/g,klass:"string"});a.push(Syntax.lib.camelCaseType);
|
4
|
-
a.push(Syntax.lib.cStyleType);a.push({pattern:/(?:class|struct|enum|namespace)\s+([^{;\s]+)/gmi,matches:Syntax.extractMatches({klass:"type"})});a.push({pattern:/#.*$/gmi,klass:"preprocessor",allow:["string"]});a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.webLink);a.push({pattern:/\w+:(?=.*(\]|;|\{))(?!:)/g,klass:"function"});a.push({pattern:/[^:\[]\s+(\w+)(?=\])/g,matches:Syntax.extractMatches({klass:"function"})});a.push({pattern:/-\s*(\([^\)]+?\))?\s*(\w+)\s*\{/g,
|
5
|
-
matches:Syntax.extractMatches({index:2,klass:"function"})});a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.cStyleFunction)});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("csharp",function(a){a.push(["this","true","false","null"],{klass:"constant"});a.push("object bool byte fixed float uint char ulong ushort decimal int sbyte short void long string double".split(" "),{klass:"type"});a.push("abstract add alias ascending base break case catch class const continue default delegate descending do dynamic else enum event explicit extern finally for foreach from get global goto group if implicit in interface into join let lock namespace new operator orderby out override params partial readonly ref remove return sealed select set stackalloc static struct switch throw try unsafe using value var virtual volatile where while yield".split(" "),
|
3
|
-
{klass:"keyword"});a.push("+ - * / % & | ^ ! ~ && || ++ -- << >> == != < > <= >= = ? new as is sizeof typeof checked unchecked".split(" "),{klass:"operator"});a.push(["public","private","internal","protected"],{klass:"access"});a.push(Syntax.lib.cStyleFunction);a.push({pattern:/(?:\.)([a-z_][a-z0-9_]+)/gi,matches:Syntax.extractMatches({klass:"function"})});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);
|
4
|
-
a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber)});
|
@@ -1,5 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("css",function(a){var e=[].concat(jQuery.map("AliceBlue AntiqueWhite Aqua Aquamarine Azure Beige Bisque Black BlanchedAlmond Blue BlueViolet Brown BurlyWood CadetBlue Chartreuse Chocolate Coral CornflowerBlue Cornsilk Crimson Cyan DarkBlue DarkCyan DarkGoldenRod DarkGray DarkGreen DarkKhaki DarkMagenta DarkOliveGreen Darkorange DarkOrchid DarkRed DarkSalmon DarkSeaGreen DarkSlateBlue DarkSlateGray DarkTurquoise DarkViolet DeepPink DeepSkyBlue DimGray DodgerBlue FireBrick FloralWhite ForestGreen Fuchsia Gainsboro GhostWhite Gold GoldenRod Gray Green GreenYellow HoneyDew HotPink IndianRed Indigo Ivory Khaki Lavender LavenderBlush LawnGreen LemonChiffon LightBlue LightCoral LightCyan LightGoldenRodYellow LightGrey LightGreen LightPink LightSalmon LightSeaGreen LightSkyBlue LightSlateGray LightSteelBlue LightYellow Lime LimeGreen Linen Magenta Maroon MediumAquaMarine MediumBlue MediumOrchid MediumPurple MediumSeaGreen MediumSlateBlue MediumSpringGreen MediumTurquoise MediumVioletRed MidnightBlue MintCream MistyRose Moccasin NavajoWhite Navy OldLace Olive OliveDrab Orange OrangeRed Orchid PaleGoldenRod PaleGreen PaleTurquoise PaleVioletRed PapayaWhip PeachPuff Peru Pink Plum PowderBlue Purple Red RosyBrown RoyalBlue SaddleBrown Salmon SandyBrown SeaGreen SeaShell Sienna Silver SkyBlue SlateBlue SlateGray Snow SpringGreen SteelBlue Tan Teal Thistle Tomato Turquoise Violet Wheat White WhiteSmoke Yellow YellowGreen".split(" "),
|
3
|
-
function(a){return"("+Syntax.Brush.convertStringToTokenPattern(a,!0)+")"}),jQuery.map(["#[0-9a-f]{3,6}","rgba?\\(.+?\\)","hsla?\\(.+?\\)"],function(a){return"("+Syntax.Brush.convertStringToTokenPattern(a,!1)+")"}));a.push({pattern:/\(.*?\)/g,allow:"*",disallow:["property"]});a.push({pattern:/\s*([:\.\[\]"'=\s\w#\.\-,]+)\s+\{/gm,matches:Syntax.extractMatches({klass:"selector",allow:["string"]})});a.push({pattern:new RegExp(e.join("|"),"gi"),klass:"color",process:function(a,d){d=Syntax.innerText(a);
|
4
|
-
var c=document.createElement("span");c.className="colour-box";var b=document.createElement("span");b.className="sample";b.style.backgroundColor=d;b.appendChild(document.createTextNode(" "));c.appendChild(b);a.appendChild(c);return a}});a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.webLink);a.push({pattern:/\{(.|\n)*?\}/g,klass:"properties",allow:"*"});a.push({pattern:/:(.*?(?=\})|(.|\n)*?(?=(\}|;)))/g,matches:Syntax.extractMatches({klass:"value",allow:["color"],only:["properties"]})});a.push({pattern:/([\-\w]+):/g,
|
5
|
-
matches:Syntax.extractMatches({klass:"property",process:Syntax.lib.webLinkProcess("http://cssdocs.org/")})});a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.cStyleFunction)});
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("diff",function(a){a.push({pattern:/^\+\+\+.*$/gm,klass:"add"});a.push({pattern:/^\-\-\-.*$/gm,klass:"del"});a.push({pattern:/^@@.*@@/gm,klass:"offset"});a.push({pattern:/^\+[^\+]{1}.*$/gm,klass:"insert"});a.push({pattern:/^\-[^\-]{1}.*$/gm,klass:"remove"});a.postprocess=function(a,b,c){$(".insert",b).closest(".source").addClass("insert-line");$(".remove",b).closest(".source").addClass("remove-line");$(".offset",b).closest(".source").addClass("offset-line");return b}});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("go",function(a){a.push(["true","false","iota","nil"],{klass:"constant"});a.push([/u?int\d*/g,/float\d+/g,/complex\d+/g,"byte","uintptr","string"],{klass:"type"});a.push("break default func interface select case defer go map struct chan else goto package switch const fallthrough if range type continue for import return var".split(" "),{klass:"keyword"});a.push("+ & += &= && == != - | -= |= || < <= * ^ *= ^= <- > >= / << /= <<= ++ = := , ; % >> %= >>= -- ! ... . : &^ &^=".split(" "),
|
3
|
-
{klass:"operator"});a.push("append cap close complex copy imag len make new panic print println real recover".split(" "),{klass:"function"});a.push(Syntax.lib.cStyleFunction);a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber)});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("haskell",function(a){a.push(["True","False"],{klass:"constant"});a.push("as;case;of;class;data;data family;data instance;default;deriving;deriving instance;do;forall;foreign;hiding;if;then;else;import;infix;infixl;infixr;instance;let;in;mdo;module;newtype;proc;qualified;rec;type;type family;type instance;where".split(";"),{klass:"keyword"});a.push("` | \\ - -< -<< -> * ? ?? # <- @ ! :: _ ~ > ; { }".split(" "),{klass:"operator"});a.push(Syntax.lib.camelCaseType);a.push({pattern:/\-\-.*$/gm,
|
3
|
-
klass:"comment",allow:["href"]});a.push({pattern:/\{\-[\s\S]*?\-\}/gm,klass:"comment",allow:["href"]});a.push(Syntax.lib.webLink);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape)});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.brushes.dependency("html","xml");Syntax.brushes.dependency("html","javascript");Syntax.brushes.dependency("html","css");Syntax.brushes.dependency("html","php-script");Syntax.brushes.dependency("html","ruby");
|
3
|
-
Syntax.register("html",function(a){a.push({pattern:/<script.*?type=.?text\/javascript.*?>((.|\n)*?)<\/script>/gmi,matches:Syntax.extractMatches({brush:"javascript"})});a.push({pattern:/<style.*?type=.?text\/css.*?>((.|\n)*?)<\/style>/gmi,matches:Syntax.extractMatches({brush:"css"})});a.push({pattern:/((<\?php)([\s\S]*?)(\?>))/gm,matches:Syntax.extractMatches({klass:"php-tag",allow:["keyword","php-script"]},{klass:"keyword"},{brush:"php-script"},{klass:"keyword"})});a.push({pattern:/((<\?rb?)([\s\S]*?)(\?>))/gm,
|
4
|
-
matches:Syntax.extractMatches({klass:"ruby-tag",allow:["keyword","ruby"]},{klass:"keyword"},{brush:"ruby"},{klass:"keyword"})});a.push({pattern:/<%=?(.*?)(%>)/g,klass:"instruction",allow:["string"]});a.push({pattern:/<!(DOCTYPE(.*?))>/g,matches:Syntax.extractMatches({klass:"doctype"})});a.push({pattern:/(%[0-9a-f]{2})/gi,klass:"percent-escape",only:["html"]});a.derives("xml")});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("io",function(a){a.push(Syntax.lib.cStyleFunction);a.push(["return"],{klass:"keywords"});a.push("::= := or and @ + * / - & | ~ ! % < = > [ ] new delete".split(" "),{klass:"operator"});a.push({pattern:/\b([ \t]+([a-z]+))/gi,matches:Syntax.extractMatches({index:2,klass:"function"})});a.push({pattern:/\)([ \t]+([a-z]+))/gi,matches:Syntax.extractMatches({index:2,klass:"function"})});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.perlStyleComment);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);
|
3
|
-
a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber)});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("java",function(a){a.push(["this","true","false","null"],{klass:"constant"});a.push("void byte short int long float double boolean char".split(" "),{klass:"type"});a.push("abstract continue for switch assert default goto synchronized do if break implements throw else import throws case enum return transient catch extends try final interface static class finally strictfp volatile const native super while".split(" "),{klass:"keyword"});a.push("++ -- ++ -- + - ~ ! * / % + - << >> >>> < > <= >= == != & ^ | && || ? = += -= *= /= %= &= ^= |= <<= >>= >>>= instanceof new delete".split(" "),
|
3
|
-
{klass:"operator"});a.push(["private","protected","public","package"],{klass:"access"});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.cStyleFunction);a.processes["function"]=Syntax.lib.webLinkProcess('java "Developer Documentation"',
|
4
|
-
!0)});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("javascript",function(a){a.push(["this","true","false","null"],{klass:"constant"});a.push("async await break case catch class const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield".split(" "),{klass:"keyword"});a.push("+*/-&|~!%<=>".split(""),{klass:"operator"});a.push("implements package protected interface private public".split(" "),{klass:"access"});a.push(Syntax.lib.perlStyleRegularExpression);
|
3
|
-
a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.cStyleFunction)});
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("kai",function(a){a.push("()[]{}".split(""),{klass:"operator"});a.push(Syntax.lib.perlStyleComment);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.webLink);a.push({pattern:/\(([^\s\(\)]+)/gi,matches:Syntax.extractMatches({klass:"function"})});a.push({pattern:/`[a-z]*/gi,klass:"constant"});a.push(Syntax.lib.multiLineDoubleQuotedString);a.push(Syntax.lib.stringEscape)});
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.lib.lispStyleComment={pattern:/(;+) .*$/gm,klass:"comment",allow:["href"]};Syntax.register("lisp",function(a){a.push(["(",")"],{klass:"operator"});a.push(Syntax.lib.lispStyleComment);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.webLink);a.push({pattern:/\(\s*([^\s\(\)]+)/gmi,matches:Syntax.extractMatches({klass:"function"})});a.push({pattern:/#[a-z]+/gi,klass:"constant"});a.push(Syntax.lib.multiLineDoubleQuotedString);a.push(Syntax.lib.stringEscape)});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("lua",function(a){a.push(["self","true","false","nil"],{klass:"constant"});a.push("and break do else elseif end false for function if in local nil not or repeat return then true until while".split(" "),{klass:"keyword"});a.push("+ - * / % ^ # .. = == ~= < > <= >= ? :".split(" "),{klass:"operator"});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleFunction);a.push({pattern:/\-\-.*$/gm,klass:"comment",allow:["href"]});a.push({pattern:/\-\-\[\[(\n|.)*?\]\]\-\-/gm,klass:"comment",
|
3
|
-
allow:["href"]});a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.webLink)});
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("nginx",function(a){a.push({pattern:/((\w+).*?);/g,matches:Syntax.extractMatches({klass:"directive",allow:"*"},{klass:"function",process:Syntax.lib.webLinkProcess("http://nginx.org/r/")})});a.push({pattern:/(\w+).*?{/g,matches:Syntax.extractMatches({klass:"keyword"})});a.push({pattern:/(\$)[\w]+/g,klass:"variable"});a.push(Syntax.lib.perlStyleComment);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.webLink)});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("ocaml",function(a){a.push(["private","public"],{klass:"access"});a.push(["true","false"],{klass:"constant"});a.push(["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"],{klass:"type"});a.push("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".split(" "),
|
3
|
-
{klass:"keyword"});a.push("! <> % & * + - -> / :: := :> :? :?> < = > ? @ ^ _ ` | ~ ' [< >] <| |> [| |] (| |) (* *) in".split(" "),{klass:"operator"});a.push({pattern:/(?:open|new)\s+((?:\.?[a-z][a-z0-9]*)+)/gi,matches:Syntax.extractMatches({klass:"type"})});a.push({pattern:/(?:\.)([a-z_][a-z0-9_]+)/gi,matches:Syntax.extractMatches({klass:"function"})});a.push({pattern:/(?:\(|,)\s*(\w+\s*=)/g,matches:Syntax.extractMatches({klass:"keyword-argument"})});a.push({pattern:/([a-z_][a-z0-9_]*)\s*\((?!\*)/gi,
|
4
|
-
matches:Syntax.extractMatches({klass:"function"})});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.webLink);a.push({pattern:/\(\*[\s\S]*?\*\)/g,klass:"comment"});a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber)});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("ooc",function(a){a.push(["this","super","true","false","null",/[A-Z][A-Z0-9_]+/g],{klass:"constant"});a.push("Int Int8 Int16 Int32 Int64 Int80 Int128 UInt UInt8 UInt16 UInt32 UInt64 UInt80 UInt128 Octet Short UShort Long ULong LLong ULLong Float Double LDouble Float32 Float64 Float128 Char UChar WChar String Void Pointer Bool SizeT This".split(" "),{klass:"type"});a.push("class interface implement abstract extends from const final static import use extern inline proto break continue fallthrough operator if else for while do switch case as in version return include cover func".split(" "),
|
3
|
-
{klass:"keyword"});a.push("+ - * / += -= *= /= = := == != ! % ? > < >= <= && || & | ^ . ~ .. >> << >>> <<< >>= <<= >>>= <<<= %= ^= @".split(" "),{klass:"operator"});a.push({pattern:/0[xcb][0-9a-fA-F]+/g,klass:"constant"});a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleType);a.push(Syntax.lib.cStyleFunction);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);
|
4
|
-
a.push(Syntax.lib.stringEscape);a.processes["function"]=Syntax.lib.webLinkProcess("http://docs.ooc-lang.org/search.html?q=")});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("pascal",function(a){a.push(["true","false","nil"],{klass:"constant",options:"gi"});a.push("absolute abstract all and_then as asm asmname attribute begin bindable c c_language case class const constructor destructor dispose do downto else end except exit export exports external far file finalization finally for forward function goto if implementation import inherited initialization inline interface interrupt is keywords label library module name near new object of on only operator or_else otherwise packed pascal pow private procedure program property protected public published qualified raise record repeat resident restricted segment set then threadvar to try type unit until uses value var view virtual while with".split(" "),
|
3
|
-
{klass:"keyword",options:"gi"});a.push("+ - * / div mod and or xor shl shr not = >= > <> <= < in :=".split(" "),{klass:"operator",options:"gi"});a.push(Syntax.lib.camelCaseType);a.push({pattern:/\{[\s\S]*?\}/gm,klass:"comment",allow:["href"]});a.push({pattern:/\(\*[\s\S]*?\*\)/gm,klass:"comment",allow:["href"]});a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);
|
4
|
-
a.push(Syntax.lib.cStyleFunction)});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("perl5",function(a){a.push(["this","true","false"],{klass:"constant"});a.push("bless caller continue die do dump else elsif eval exit for foreach goto if import last local my next no our package redo ref require return sub tie tied unless untie until use wantarray while".split(" "),{klass:"keyword"});a.push("-> ++ -- ** ! ~ \\ + - =~ !~ * / % x + - . << >> < > <= >= lt gt le ge == != <=> eq ne cmp ~~ & | ^ && || // .. ... ?: = , => not and or xor".split(" "),{klass:"operator"});a.push("abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr chroot close closedir connect cos crypt defined delete each endgrent endhostent endnetent endprotoent endpwent endservent eof exec exists exp fcntl fileno flock fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getppid getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt glob gmtime grep hex index int ioctl join keys kill lc lcfirst length link listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd oct open opendir ord pack pipe pop pos print printf prototype push quotemeta rand read readdir readline readlink readpipe recv rename reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat study substr symlink syscall sysopen sysread sysseek system syswrite tell telldir time times tr truncate uc ucfirst umask undef unlink unpack unshift utime values vec wait waitpid warn write".split(" "),
|
3
|
-
{klass:"function"});a.push(Syntax.lib.perlStyleRegularExpression);a.push(Syntax.lib.perlStyleComment);a.push(Syntax.lib.webLink);a.push({pattern:/(\$|@|%)\w+/gi,klass:"variable"});a.push({pattern:/__END__[\s\S]*/gm,klass:"comment"});a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.cStyleFunction)});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("php-script",function(a){a.push(["this","true","false"],{klass:"constant"});a.push("abstract and as break case cfunction class const continue declare default die do echo else elseif enddeclare endfor endforeach endif endswitch endwhile extends extends for foreach function global if implements include include_once interface old_function or require require_once return static switch throw use var while xor".split(" "),{klass:"keyword"});a.push("+ * / - & | ~ ! % < = > [ ] new".split(" "),
|
3
|
-
{klass:"operator"});a.push(["private","protected","public"],{klass:"access"});a.push({pattern:/\$[a-z_][a-z0-9]*/gi,klass:"variable"});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleFunction);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.perlStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);
|
4
|
-
a.processes["function"]=Syntax.lib.webLinkProcess("http://www.php.net/manual-lookup.php?pattern=")});
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.brushes.dependency("php","php-script");Syntax.register("php",function(a){a.push({pattern:/(<\?(php)?)((.|\n)*?)(\?>)/gm,matches:Syntax.extractMatches({klass:"keyword"},null,{brush:"php-script"},null,{klass:"keyword"})})});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("protobuf",function(a){a.push("enum extend extensions group import max message option package returns rpc service syntax to default".split(" "),{klass:"keyword"});a.push(["true","false"],{klass:"constant"});a.push("bool bytes double fixed32 fixed64 float int32 int64 sfixed32 sfixed64 sint32 sint64 string uint32 uint64".split(" "),{klass:"type"});a.push(["optional","required","repeated"],{klass:"access"});a.push(Syntax.lib.camelCaseType);a.push({pattern:/\s+(\w+)\s*=\s*\d+/g,matches:Syntax.extractMatches({klass:"variable"})});
|
3
|
-
a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber)});
|
@@ -1,5 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("python",function(a){a.push({pattern:/^\s*@\w+/gm,klass:"decorator"});a.push(["self","True","False","None"],{klass:"constant"});a.push("and as assert break class continue def del elif else except exec finally for from global if import in is lambda not or pass print raise return try while with yield".split(" "),{klass:"keyword"});a.push("!= % %= & &= ( ) * ** **= *= + += , - -= . / // //= /= : ; < << <<= <= <> = == > >= >> >>= @ [ ] ^ ^= ` ` { | |= } ~".split(" "),{klass:"operator"});
|
3
|
-
a.push("abs all any basestring bin bool callable chr classmethod cmp compile complex delattr dict dir divmod enumerate eval execfile file filter float format frozenset getattr globals hasattr hash help hex id input int isinstance issubclass iter len list locals long map max min next object oct open ord pow print property range raw_input reduce reload repr reversed round set setattr slice sorted staticmethod str sum super tuple type type unichr unicode vars xrange zip __import__ apply buffer coerce intern".split(" "),
|
4
|
-
{klass:"builtin"});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleFunction);a.push(Syntax.lib.perlStyleComment);a.push({pattern:/(['"]{3})([^\1])*?\1/gm,klass:"comment"});a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.processes["function"]=Syntax.lib.webLinkProcess("http://docs.python.org/search.html?q=");a.processes.type=Syntax.lib.webLinkProcess("http://docs.python.org/search.html?q=");
|
5
|
-
a.processes.builtin=Syntax.lib.webLinkProcess("http://docs.python.org/search.html?q=")});
|
@@ -1,5 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.lib.rubyStyleFunction={pattern:/(?:def\s+|\.)([a-z_][a-z0-9_]+)/gi,matches:Syntax.extractMatches({klass:"function"})};Syntax.lib.rubyStyleSymbol={pattern:/([:]?):\w+/g,klass:"constant",matches:function(a,b){return""!=a[1]?[]:[new Syntax.Match(a.index,a[0].length,b,a[0])]}};
|
3
|
-
Syntax.register("ruby",function(a){a.push(["private","protected","public"],{klass:"access"});a.push(["self","super","true","false","nil"],{klass:"constant"});a.push({pattern:/(%[\S])(\{[\s\S]*?\})/g,matches:Syntax.extractMatches({klass:"function"},{klass:"constant"})});a.push({pattern:/`[^`]+`/g,klass:"string"});a.push({pattern:/#\{([^\}]*)\}/g,matches:Syntax.extractMatches({brush:"ruby",only:["string"]})});a.push(Syntax.lib.rubyStyleRegularExpression);a.push({pattern:/(@+|\$)[\w]+/g,klass:"variable"});
|
4
|
-
a.push(Syntax.lib.camelCaseType);a.push("alias and begin break case class def define_method defined? do else elsif end ensure false for if in module next not or raise redo rescue retry return then throw undef unless until when while yield block_given?".split(" "),{klass:"keyword"});a.push("+*/-&|~!%<=>".split(""),{klass:"operator"});a.push(Syntax.lib.rubyStyleSymbol);a.push(Syntax.lib.perlStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);
|
5
|
-
a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.rubyStyleFunction);a.push(Syntax.lib.cStyleFunction)});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.brushes.dependency("scala","xml");
|
3
|
-
Syntax.register("scala",function(a){a.push("abstract do finally import object return trait var case catch class else extends for forSome if lazy match new override package private sealed super try type while with yield def final implicit protected throw val".split(" "),{klass:"keyword"});a.push("_ : = => <- <: <% >: # @".split(" "),{klass:"operator"});a.push(["this","null","true","false"],{klass:"constant"});a.push({pattern:/"""[\s\S]*?"""/g,klass:"string"});a.push(Syntax.lib.doubleQuotedString);
|
4
|
-
a.push({pattern:/(?:def\s+|\.)([a-z_][a-z0-9_]+)/gi,matches:Syntax.extractMatches({klass:"function"})});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleFunction);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.derives("xml")});
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("smalltalk",function(a){a.push(["self","super","true","false","nil"],{klass:"constant"});a.push(["[","]","|",":=","."],{klass:"operator"});a.push({pattern:/\w+:/g,klass:"function"});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber)});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.lib.sqlStyleComment={pattern:/-- .*$/gm,klass:"comment",allow:["href"]};
|
3
|
-
Syntax.register("sql",function(a){a.push("= != < > <= >= + - * / %".split(" "),{klass:"operator"});a.push(Syntax.lib.sqlStyleComment);a.push("A ABORT ABS ABSOLUTE ACCESS ACTION ADA ADD ADMIN AFTER AGGREGATE ALIAS ALL ALLOCATE ALSO ALTER ALWAYS ANALYSE ANALYZE AND ANY ARE ARRAY AS ASC ASENSITIVE ASSERTION ASSIGNMENT ASYMMETRIC AT ATOMIC ATTRIBUTE ATTRIBUTES AUDIT AUTHORIZATION AUTO_INCREMENT AVG AVG_ROW_LENGTH BACKUP BACKWARD BEFORE BEGIN BERNOULLI BETWEEN BIGINT BINARY BIT BIT_LENGTH BITVAR BLOB BOOL BOOLEAN BOTH BREADTH BREAK BROWSE BULK BY C CACHE CALL CALLED CARDINALITY CASCADE CASCADED CASE CAST CATALOG CATALOG_NAME CEIL CEILING CHAIN CHANGE CHAR CHAR_LENGTH CHARACTER CHARACTER_LENGTH CHARACTER_SET_CATALOG CHARACTER_SET_NAME CHARACTER_SET_SCHEMA CHARACTERISTICS CHARACTERS CHECK CHECKED CHECKPOINT CHECKSUM CLASS CLASS_ORIGIN CLOB CLOSE CLUSTER CLUSTERED COALESCE COBOL COLLATE COLLATION COLLATION_CATALOG COLLATION_NAME COLLATION_SCHEMA COLLECT COLUMN COLUMN_NAME COLUMNS COMMAND_FUNCTION COMMAND_FUNCTION_CODE COMMENT COMMIT COMMITTED COMPLETION COMPRESS COMPUTE CONDITION CONDITION_NUMBER CONNECT CONNECTION CONNECTION_NAME CONSTRAINT CONSTRAINT_CATALOG CONSTRAINT_NAME CONSTRAINT_SCHEMA CONSTRAINTS CONSTRUCTOR CONTAINS CONTAINSTABLE CONTINUE CONVERSION CONVERT COPY CORR CORRESPONDING COUNT COVAR_POP COVAR_SAMP CREATE CREATEDB CREATEROLE CREATEUSER CROSS CSV CUBE CUME_DIST CURRENT CURRENT_DATE CURRENT_DEFAULT_TRANSFORM_GROUP CURRENT_PATH CURRENT_ROLE CURRENT_TIME CURRENT_TIMESTAMP CURRENT_TRANSFORM_GROUP_FOR_TYPE CURRENT_USER CURSOR CURSOR_NAME CYCLE DATA DATABASE DATABASES DATE DATETIME DATETIME_INTERVAL_CODE DATETIME_INTERVAL_PRECISION DAY DAY_HOUR DAY_MICROSECOND DAY_MINUTE DAY_SECOND DAYOFMONTH DAYOFWEEK DAYOFYEAR DBCC DEALLOCATE DEC DECIMAL DECLARE DEFAULT DEFAULTS DEFERRABLE DEFERRED DEFINED DEFINER DEGREE DELAY_KEY_WRITE DELAYED DELETE DELIMITER DELIMITERS DENSE_RANK DENY DEPTH DEREF DERIVED DESC DESCRIBE DESCRIPTOR DESTROY DESTRUCTOR DETERMINISTIC DIAGNOSTICS DICTIONARY DISABLE DISCONNECT DISK DISPATCH DISTINCT DISTINCTROW DISTRIBUTED DIV DO DOMAIN DOUBLE DROP DUAL DUMMY DUMP DYNAMIC DYNAMIC_FUNCTION DYNAMIC_FUNCTION_CODE EACH ELEMENT ELSE ELSEIF ENABLE ENCLOSED ENCODING ENCRYPTED END END-EXEC ENUM EQUALS ERRLVL ESCAPE ESCAPED EVERY EXCEPT EXCEPTION EXCLUDE EXCLUDING EXCLUSIVE EXEC EXECUTE EXISTING EXISTS EXIT EXP EXPLAIN EXTERNAL EXTRACT FALSE FETCH FIELDS FILE FILLFACTOR FILTER FINAL FIRST FLOAT FLOAT4 FLOAT8 FLOOR FLUSH FOLLOWING FOR FORCE FOREIGN FORTRAN FORWARD FOUND FREE FREETEXT FREETEXTTABLE FREEZE FROM FULL FULLTEXT FUNCTION FUSION G GENERAL GENERATED GET GLOBAL GO GOTO GRANT GRANTED GRANTS GREATEST GROUP GROUPING HANDLER HAVING HEADER HEAP HIERARCHY HIGH_PRIORITY HOLD HOLDLOCK HOST HOSTS HOUR HOUR_MICROSECOND HOUR_MINUTE HOUR_SECOND IDENTIFIED IDENTITY IDENTITY_INSERT IDENTITYCOL IF IGNORE ILIKE IMMEDIATE IMMUTABLE IMPLEMENTATION IMPLICIT IN INCLUDE INCLUDING INCREMENT INDEX INDICATOR INFILE INFIX INHERIT INHERITS INITIAL INITIALIZE INITIALLY INNER INOUT INPUT INSENSITIVE INSERT INSERT_ID INSTANCE INSTANTIABLE INSTEAD INT INT1 INT2 INT3 INT4 INT8 INTEGER INTERSECT INTERSECTION INTERVAL INTO INVOKER IS ISAM ISNULL ISOLATION ITERATE JOIN K KEY KEY_MEMBER KEY_TYPE KEYS KILL LANCOMPILER LANGUAGE LARGE LAST LAST_INSERT_ID LATERAL LEADING LEAST LEAVE LEFT LENGTH LESS LEVEL LIKE LIMIT LINENO LINES LISTEN LN LOAD LOCAL LOCALTIME LOCALTIMESTAMP LOCATION LOCATOR LOCK LOGIN LOGS LONG LONGBLOB LONGTEXT LOOP LOW_PRIORITY LOWER M MAP MATCH MATCHED MAX MAX_ROWS MAXEXTENTS MAXVALUE MEDIUMBLOB MEDIUMINT MEDIUMTEXT MEMBER MERGE MESSAGE_LENGTH MESSAGE_OCTET_LENGTH MESSAGE_TEXT METHOD MIDDLEINT MIN MIN_ROWS MINUS MINUTE MINUTE_MICROSECOND MINUTE_SECOND MINVALUE MLSLABEL MOD MODE MODIFIES MODIFY MODULE MONTH MONTHNAME MORE MOVE MULTISET MUMPS MYISAM NAMES NATIONAL NATURAL NCHAR NCLOB NESTING NEW NEXT NO NO_WRITE_TO_BINLOG NOAUDIT NOCHECK NOCOMPRESS NOCREATEDB NOCREATEROLE NOCREATEUSER NOINHERIT NOLOGIN NONCLUSTERED NONE NORMALIZE NORMALIZED NOSUPERUSER NOT NOTHING NOTIFY NOTNULL NOWAIT NULL NULLABLE NULLIF NULLS NUMBER NUMERIC OBJECT OCTET_LENGTH OCTETS OF OFF OFFLINE OFFSET OFFSETS OIDS OLD ON ONLINE ONLY OPEN OPENDATASOURCE OPENQUERY OPENROWSET OPENXML OPERATION OPERATOR OPTIMIZE OPTION OPTIONALLY OPTIONS OR ORDER ORDERING ORDINALITY OTHERS OUT OUTER OUTFILE OUTPUT OVER OVERLAPS OVERLAY OVERRIDING OWNER PACK_KEYS PAD PARAMETER PARAMETER_MODE PARAMETER_NAME PARAMETER_ORDINAL_POSITION PARAMETER_SPECIFIC_CATALOG PARAMETER_SPECIFIC_NAME PARAMETER_SPECIFIC_SCHEMA PARAMETERS PARTIAL PARTITION PASCAL PASSWORD PATH PCTFREE PERCENT PERCENT_RANK PERCENTILE_CONT PERCENTILE_DISC PLACING PLAN PLI POSITION POSTFIX POWER PRECEDING PRECISION PREFIX PREORDER PREPARE PREPARED PRESERVE PRIMARY PRINT PRIOR PRIVILEGES PROC PROCEDURAL PROCEDURE PROCESS PROCESSLIST PUBLIC PURGE QUOTE RAID0 RAISERROR RANGE RANK RAW READ READS READTEXT REAL RECHECK RECONFIGURE RECURSIVE REF REFERENCES REFERENCING REGEXP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY REINDEX RELATIVE RELEASE RELOAD RENAME REPEAT REPEATABLE REPLACE REPLICATION REQUIRE RESET RESIGNAL RESOURCE RESTART RESTORE RESTRICT RESULT RETURN RETURNED_CARDINALITY RETURNED_LENGTH RETURNED_OCTET_LENGTH RETURNED_SQLSTATE RETURNS REVOKE RIGHT RLIKE ROLE ROLLBACK ROLLUP ROUTINE ROUTINE_CATALOG ROUTINE_NAME ROUTINE_SCHEMA ROW ROW_COUNT ROW_NUMBER ROWCOUNT ROWGUIDCOL ROWID ROWNUM ROWS RULE SAVE SAVEPOINT SCALE SCHEMA SCHEMA_NAME SCHEMAS SCOPE SCOPE_CATALOG SCOPE_NAME SCOPE_SCHEMA SCROLL SEARCH SECOND SECOND_MICROSECOND SECTION SECURITY SELECT SELF SENSITIVE SEPARATOR SEQUENCE SERIALIZABLE SERVER_NAME SESSION SESSION_USER SET SETOF SETS SETUSER SHARE SHOW SHUTDOWN SIGNAL SIMILAR SIMPLE SIZE SMALLINT SOME SONAME SOURCE SPACE SPATIAL SPECIFIC SPECIFIC_NAME SPECIFICTYPE SQL SQL_BIG_RESULT SQL_BIG_SELECTS SQL_BIG_TABLES SQL_CALC_FOUND_ROWS SQL_LOG_OFF SQL_LOG_UPDATE SQL_LOW_PRIORITY_UPDATES SQL_SELECT_LIMIT SQL_SMALL_RESULT SQL_WARNINGS SQLCA SQLCODE SQLERROR SQLEXCEPTION SQLSTATE SQLWARNING SQRT SSL STABLE START STARTING STATE STATEMENT STATIC STATISTICS STATUS STDDEV_POP STDDEV_SAMP STDIN STDOUT STORAGE STRAIGHT_JOIN STRICT STRING STRUCTURE STYLE SUBCLASS_ORIGIN SUBLIST SUBMULTISET SUBSTRING SUCCESSFUL SUM SUPERUSER SYMMETRIC SYNONYM SYSDATE SYSID SYSTEM SYSTEM_USER TABLE TABLE_NAME TABLES TABLESAMPLE TABLESPACE TEMP TEMPLATE TEMPORARY TERMINATE TERMINATED TEXT TEXTSIZE THAN THEN TIES TIME TIMESTAMP TIMEZONE_HOUR TIMEZONE_MINUTE TINYBLOB TINYINT TINYTEXT TO TOAST TOP TOP_LEVEL_COUNT TRAILING TRAN TRANSACTION TRANSACTION_ACTIVE TRANSACTIONS_COMMITTED TRANSACTIONS_ROLLED_BACK TRANSFORM TRANSFORMS TRANSLATE TRANSLATION TREAT TRIGGER TRIGGER_CATALOG TRIGGER_NAME TRIGGER_SCHEMA TRIM TRUE TRUNCATE TRUSTED TSEQUAL TYPE UESCAPE UID UNBOUNDED UNCOMMITTED UNDER UNDO UNENCRYPTED UNION UNIQUE UNKNOWN UNLISTEN UNLOCK UNNAMED UNNEST UNSIGNED UNTIL UPDATE UPDATETEXT UPPER USAGE USE USER USER_DEFINED_TYPE_CATALOG USER_DEFINED_TYPE_CODE USER_DEFINED_TYPE_NAME USER_DEFINED_TYPE_SCHEMA USING UTC_DATE UTC_TIME UTC_TIMESTAMP VACUUM VALID VALIDATE VALIDATOR VALUE VALUES VAR_POP VAR_SAMP VARBINARY VARCHAR VARCHAR2 VARCHARACTER VARIABLE VARIABLES VARYING VERBOSE VIEW VOLATILE WAITFOR WHEN WHENEVER WHERE WHILE WIDTH_BUCKET WINDOW WITH WITHIN WITHOUT WORK WRITE WRITETEXT X509 XOR YEAR YEAR_MONTH ZEROFILL ZONE".split(" "),{klass:"keyword",
|
4
|
-
options:"gi"});a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.webLink)});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("super-collider",function(a){a.push(["const","arg","classvar","var"],{klass:"keyword"});a.push("`+@:*/-&|~!%<=>".split(""),{klass:"operator"});a.push("thisFunctionDef thisFunction thisMethod thisProcess thisThread this super true false nil inf".split(" "),{klass:"constant"});a.push(Syntax.lib.camelCaseType);a.push({pattern:/\$(\\)?./g,klass:"constant"});a.push({pattern:/\\[a-z_][a-z0-9_]*/gi,klass:"symbol"});a.push({pattern:/'[^']+'/g,klass:"symbol"});a.push(Syntax.lib.cStyleComment);
|
3
|
-
a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push({pattern:/(?:\.)([a-z_][a-z0-9_]*)/gi,matches:Syntax.extractMatches({klass:"function"})});a.push(Syntax.lib.cStyleFunction)});
|
@@ -1,3 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("swift",function(a){a.push(["fileprivate","open","private","public"],{klass:"access"});a.push(["self","super","true","false","nil"],{klass:"constant"});a.push({pattern:/`[^`]+`/g,klass:"identifier"});a.push({pattern:/\\\(([^)]*)\)/g,matches:Syntax.extractMatches({brush:"swift",only:["string"]})});a.push(Syntax.lib.camelCaseType);a.push("associatedtype class deinit enum extension fileprivate func import init inout internal let operator private protocol static struct subscript typealias var break case continue default defer do else fallthrough for guard if in repeat return switch where while as catch is rethrows throw throws try _ #available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation associativity convenience dynamic didSet final get infix indirect lazy left mutating none nonmutating optional override postfix precedence prefix Protocol required right set Type unowned weak willSet".split(" "),
|
3
|
-
{klass:"keyword"});a.push("+ * / - & | ~ ! % < = > ( ) { } [ ] . , : ; = @ # -> ` ? !".split(" "),{klass:"operator"});a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.cStyleFunction)});
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.brushes.dependency("trenni","xml");Syntax.brushes.dependency("trenni","ruby");Syntax.register("trenni",function(a){a.push({pattern:/((<\?r)([\s\S]*?)(\?>))/gm,matches:Syntax.extractMatches({klass:"ruby-tag",allow:["keyword","ruby"]},{klass:"keyword"},{brush:"ruby"},{klass:"keyword"})});a.push({pattern:/((#{)([\s\S]*?)(}))/gm,matches:Syntax.extractMatches({klass:"ruby-tag",allow:["keyword","ruby"]},{klass:"keyword"},{brush:"ruby"},{klass:"keyword"})});a.derives("xml")});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.lib.xmlEntity={pattern:/&\w+;/g,klass:"entity"};Syntax.lib.xmlPercentEscape={pattern:/(%[0-9a-f]{2})/gi,klass:"percent-escape",only:["string"]};
|
3
|
-
Syntax.register("xml-tag",function(a){a.push({pattern:/<\/?((?:[^:\s>]+:)?)([^\s>]+)(\s[^>]*)?\/?>/g,matches:Syntax.extractMatches({klass:"namespace"},{klass:"tag-name"})});a.push({pattern:/([^=\s]+)=(".*?"|'.*?'|[^\s>]+)/g,matches:Syntax.extractMatches({klass:"attribute",only:["tag"]},{klass:"string",only:["tag"]})});a.push(Syntax.lib.xmlEntity);a.push(Syntax.lib.xmlPercentEscape);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString)});
|
4
|
-
Syntax.register("xml",function(a){a.push({pattern:/(<!(\[CDATA\[)([\s\S]*?)(\]\])>)/gm,matches:Syntax.extractMatches({klass:"cdata",allow:["cdata-content","cdata-tag"]},{klass:"cdata-tag"},{klass:"cdata-content"},{klass:"cdata-tag"})});a.push(Syntax.lib.xmlComment);a.push({pattern:/<[^>\-\s]([^>'"!\/;\?@\[\]^`\{\}\|]|"[^"]*"|'[^']')*[\/?]?>/g,brush:"xml-tag"});a.push(Syntax.lib.xmlEntity);a.push(Syntax.lib.xmlPercentEscape);a.push(Syntax.lib.webLink)});
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.register("yaml",function(a){a.push({pattern:/^\s*#.*$/gm,klass:"comment",allow:["href"]});a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push({pattern:/(&|\*)[a-z0-9]+/gi,klass:"constant"});a.push({pattern:/(.*?):/gi,matches:Syntax.extractMatches({klass:"keyword"})});a.push(Syntax.lib.webLink)});
|
@@ -1,7 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.alias("apache",[]);Syntax.alias("applescript",[]);Syntax.alias("assembly",["asm"]);Syntax.alias("bash-script",[]);Syntax.alias("bash",[]);Syntax.alias("basic",["vb"]);Syntax.alias("clang",["cpp","c++","c","objective-c"]);Syntax.alias("csharp",["c-sharp","c#"]);Syntax.alias("css",[]);Syntax.alias("diff",["patch"]);Syntax.alias("go",[]);Syntax.alias("haskell",[]);Syntax.alias("html",[]);Syntax.alias("io",[]);Syntax.alias("java",[]);Syntax.alias("javascript",["js","actionscript"]);
|
3
|
-
Syntax.alias("kai",[]);Syntax.alias("lisp",["scheme","clojure"]);Syntax.alias("lua",[]);Syntax.alias("nginx",[]);Syntax.alias("ocaml",["ml","sml","fsharp"]);Syntax.alias("ooc",[]);Syntax.alias("pascal",["delphi"]);Syntax.alias("perl5",[]);Syntax.alias("php-script",[]);Syntax.alias("php",[]);Syntax.alias("plain",["text"]);Syntax.alias("protobuf",[]);Syntax.alias("python",[]);Syntax.alias("ruby",[]);Syntax.alias("scala",[]);Syntax.alias("smalltalk",[]);Syntax.alias("sql",[]);
|
4
|
-
Syntax.alias("super-collider",["sc"]);Syntax.alias("swift",[]);Syntax.alias("html",[]);Syntax.alias("xml",[]);Syntax.alias("yaml",[]);Syntax.styles["jquery.syntax.brush.apache"]=["base/jquery.syntax.brush.apache.css"];Syntax.styles["jquery.syntax.brush.applescript"]=["base/jquery.syntax.brush.applescript.css"];Syntax.styles["jquery.syntax.brush.assembly"]=["base/jquery.syntax.brush.assembly.css"];Syntax.styles["jquery.syntax.brush.bash-script"]=["base/jquery.syntax.brush.bash-script.css"];
|
5
|
-
Syntax.styles["jquery.syntax.brush.bash"]=["base/jquery.syntax.brush.bash.css"];Syntax.styles["jquery.syntax.brush.clang"]=["base/jquery.syntax.brush.clang.css"];Syntax.styles["jquery.syntax.brush.css"]=["base/jquery.syntax.brush.css.css"];Syntax.styles["jquery.syntax.brush.diff"]=["base/jquery.syntax.brush.diff.css"];Syntax.styles["jquery.syntax.brush.html"]=["base/jquery.syntax.brush.html.css"];Syntax.styles["jquery.syntax.brush.ocaml"]=["base/jquery.syntax.brush.ocaml.css"];
|
6
|
-
Syntax.styles["jquery.syntax.brush.protobuf"]=["base/jquery.syntax.brush.protobuf.css"];Syntax.styles["jquery.syntax.brush.python"]=["base/jquery.syntax.brush.python.css"];Syntax.styles["jquery.syntax.brush.ruby"]=["base/jquery.syntax.brush.ruby.css"];Syntax.styles["jquery.syntax.brush.xml"]=["base/jquery.syntax.brush.xml.css"];Syntax.styles["jquery.syntax.core"]=["base/jquery.syntax.core.css","bright/jquery.syntax.core.css","paper/jquery.syntax.core.css"];Syntax.styles["jquery.syntax.editor"]=["base/jquery.syntax.editor.css"];
|
7
|
-
Syntax.themes.base=[];Syntax.themes.bright=["base"];Syntax.themes.paper=["base"];
|
@@ -1,34 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
RegExp.prototype.indexOf||(RegExp.indexOf=function(b,a){return b[0].indexOf(b[a])+b.index});RegExp.prototype.escape||(RegExp.escape=function(b){return b.replace(/[\-\[\]{}()*+?.\\\^$|,#\s]/g,"\\$&")});String.prototype.repeat||(String.prototype.repeat=function(b){return Array(b+1).join(this)});Syntax.innerText=function(b){if(!b)return"";if("BR"==b.nodeName)return"\n";if(b.textContent)var a=b.textContent;else document.body.innerText&&(a=b.innerText);return a.replace(/\r\n?/g,"\n")};
|
3
|
-
Syntax.extractTextFromSelection=function(b){for(var a="",c=0;c<b.rangeCount;c+=1){var d=b.getRangeAt(c).toString();a+=d}return a};Syntax.copyCode=function(b){var a=window.getSelection();a=Syntax.extractTextFromSelection(a);b.clipboardData.setData("text/plain",a);return!1};
|
4
|
-
Syntax.extractElementMatches=function(b,a){var c=[];a=a||0;(function(b){for(var d=0;b[d];d++){var f=b[d];if(3===f.nodeType||4===f.nodeType)a+=f.nodeValue.length;else if(1===f.nodeType){var g=Syntax.innerText(f);c.push(new Syntax.Match(a,g.length,{klass:f.className,force:!0,element:f,allow:"*"},g))}8!==f.nodeType&&f.children&&arguments.callee(f.childNodes,a)}})(b);c.shift();return c};
|
5
|
-
Syntax.extractMatches=function(){var b=arguments;return function(a,c){for(var d=[],e=0;e<b.length;e+=1){var f=b[e],g=e+1;null!=f&&("undefined"!=typeof f.index&&(g=f.index),f.debug&&console.log("extractMatches",f,g,a[g],a),0<a[g].length&&(f.brush?d.push(Syntax.Brush.buildTree(f,a[g],RegExp.indexOf(a,g))):(f=jQuery.extend({owner:c.owner},f),d.push(new Syntax.Match(RegExp.indexOf(a,g),a[g].length,f,a[g])))))}return d}};
|
6
|
-
Syntax.lib.webLinkProcess=function(b,a){a&&(b="http://www.google.com/search?btnI=I&q="+encodeURIComponent(b+" "));return function(a,d,e){if(!1===e.linkify)return a;d=document.createElement("a");d.href=b+encodeURIComponent(Syntax.innerText(a));for(d.className=a.className;0<a.childNodes.length;)d.appendChild(a.childNodes[0]);return d}};Syntax.register=function(b,a){var c=Syntax.brushes[b]=new Syntax.Brush;c.klass=b;a(c)};Syntax.lib.cStyleComment={pattern:/\/\*[\s\S]*?\*\//gm,klass:"comment",allow:["href"]};
|
7
|
-
Syntax.lib.cppStyleComment={pattern:/\/\/.*$/gm,klass:"comment",allow:["href"]};Syntax.lib.perlStyleComment={pattern:/#.*$/gm,klass:"comment",allow:["href"]};Syntax.lib.perlStyleRegularExpression={pattern:/\B\/([^\\\/]|\\.)*\/[a-z]*(?=\s*($|[^\w\s'"\(]))/gm,klass:"constant",incremental:!0};Syntax.lib.rubyStyleRegularExpression={pattern:/\B\/([^\\\/]|\\.)*\/[a-z]*(?=\s*($|[^\w\s'"\(]|do))/gm,klass:"constant",incremental:!0};Syntax.lib.cStyleFunction={pattern:/([a-z_][a-z0-9_]*)\s*\(/gi,matches:Syntax.extractMatches({klass:"function"})};
|
8
|
-
Syntax.lib.camelCaseType={pattern:/\b_*[A-Z][\w]*\b/g,klass:"type"};Syntax.lib.cStyleType={pattern:/\b[_a-z][_\w]*_t\b/gi,klass:"type"};Syntax.lib.xmlComment={pattern:/(<|<)!--[\s\S]*?--(>|>)/gm,klass:"comment"};Syntax.lib.webLink={pattern:/\w+:\/\/[\w\-.\/?%&=@:;#]*/g,klass:"href"};Syntax.lib.hexNumber={pattern:/\b0x[0-9a-fA-F]+/g,klass:"constant"};Syntax.lib.decimalNumber={pattern:/\b[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?/g,klass:"constant"};
|
9
|
-
Syntax.lib.doubleQuotedString={pattern:/"([^\\"\n]|\\.)*"/g,klass:"string"};Syntax.lib.singleQuotedString={pattern:/'([^\\'\n]|\\.)*'/g,klass:"string"};Syntax.lib.multiLineDoubleQuotedString={pattern:/"([^\\"]|\\.)*"/g,klass:"string"};Syntax.lib.multiLineSingleQuotedString={pattern:/'([^\\']|\\.)*'/g,klass:"string"};Syntax.lib.stringEscape={pattern:/\\./g,klass:"escape",only:["string"]};
|
10
|
-
Syntax.Match=function(b,a,c,d){this.offset=b;this.endOffset=b+a;this.length=a;this.expression=c;this.value=d;this.children=[];this.next=this.parent=null};Syntax.Match.prototype.shift=function(b,a){this.adjust(b,null,a);for(var c=0;c<this.children.length;c++)this.children[c].shift(b,a)};Syntax.Match.prototype.adjust=function(b,a,c){this.offset+=b;this.endOffset+=b;a&&(this.length=a,this.endOffset=this.offset+a);c&&(this.value=c.substr(this.offset,this.length))};
|
11
|
-
Syntax.Match.sort=function(b,a){return b.offset-a.offset||a.length-b.length};Syntax.Match.prototype.contains=function(b){return b.offset>=this.offset&&b.endOffset<=this.endOffset};Syntax.Match.defaultReduceCallback=function(b,a){"string"===typeof b&&(b=document.createTextNode(b));a.appendChild(b)};
|
12
|
-
Syntax.Match.prototype.reduce=function(b,a){var c=this.offset;var d=this.expression&&this.expression.element?this.expression.element.cloneNode(!1):document.createElement("span");b=b||Syntax.Match.defaultReduceCallback;this.expression&&this.expression.klass&&(0<d.className.length&&(d.className+=" "),d.className+=this.expression.klass);this.className&&(d.className+=" ",d.className+=this.className);for(var e=0;e<this.children.length;e+=1){var f=this.children[e],g=f.offset;f.offset<this.offset&&console.log("Syntax Warning: Offset of child",
|
13
|
-
f,"is before offset of parent",this);c=this.value.substr(c-this.offset,g-c);b(c,d);b(f.reduce(b,a),d);c=f.endOffset}c===this.offset?b(this.value,d):c<this.endOffset?b(this.value.substr(c-this.offset,this.endOffset-c),d):c>this.endOffset&&console.log("Syntax Warning: Start position "+c+" exceeds end of value "+this.endOffset);a&&(d=a(d,this));return d};
|
14
|
-
Syntax.Match.prototype.canContain=function(b){return b.expression.force?!0:this.complete?!1:b.expression.only?!0:"undefined"===typeof this.expression.allow||jQuery.isArray(this.expression.disallow)&&-1!==jQuery.inArray(b.expression.klass,this.expression.disallow)?!1:"*"===this.expression.allow||jQuery.isArray(this.expression.allow)&&-1!==jQuery.inArray(b.expression.klass,this.expression.allow)?!0:!1};
|
15
|
-
Syntax.Match.prototype.canHaveChild=function(b){if(b=b.expression.only){for(var a=this;null!==a;){if(-1!==jQuery.inArray(a.expression.klass,b))return!0;if((a=a.parent)&&a.complete)break}return!1}return!0};Syntax.Match.prototype._splice=function(b,a){return this.canHaveChild(a)?(this.children.splice(b,0,a),a.parent=this,a.expression.owner||(a.expression.owner=this.expression.owner),this):null};
|
16
|
-
Syntax.Match.prototype.insert=function(b,a){if(!this.contains(b))return null;if(a){a=this;for(var c=0;c<a.children.length;)a.children[c].contains(b)?(a=a.children[c],c=0):c+=1;return a._insertWhole(b)}return this._insert(b)};
|
17
|
-
Syntax.Match.prototype._insertWhole=function(b){var a=this.bisectAtOffsets([b.offset,b.endOffset]);this.children=[];a[0]&&(this.children=this.children.concat(a[0].children));if(a[1]){b.children=[];this.expression&&this.expression.owner&&(b.expression=this.expression.owner.getRuleForKlass(b.expression.klass)||b.expression);for(var c=0;c<a[1].children.length;c+=1){var d=a[1].children[c];b.canContain(d)&&b.children.push(d)}this.children.push(b)}a[2]&&(this.children=this.children.concat(a[2].children));
|
18
|
-
return this};Syntax.Match.prototype.insertAtEnd=function(b){if(!this.contains(b))return console.log("Syntax Error: Child is not contained in parent node!"),null;if(!this.canContain(b))return null;if(0<this.children.length){var a=this.children.length-1,c=this.children[a];return b.offset<c.offset?b.force?this._insert(b):null:b.offset<c.endOffset?b.endOffset<=c.endOffset?c.insertAtEnd(b):b.force?this._insert(b):null:this._splice(a+1,b)}return this._splice(0,b)};
|
19
|
-
Syntax.Match.prototype._insert=function(b){if(0==this.children.length)return this._splice(0,b);for(var a=0;a<this.children.length;a+=1){var c=this.children[a];if(b.endOffset<=c.offset)return this._splice(a,b);if(!(b.offset>=c.endOffset)){if(c.contains(b))return c._insert(b);b=b.bisectAtOffsets([c.offset,c.endOffset]);b[0]&&this._splice(a,b[0]);b[1]&&c.insert(b[1]);if(b[2])b=b[2];else return this}}this._splice(this.children.length,b)};
|
20
|
-
Syntax.Match.prototype.bisectAtOffsets=function(b){var a=[],c=this.offset,d=null,e=jQuery.merge([],this.children);b=b.slice(0);b.push(this.endOffset);b.sort(function(a,b){return a-b});for(var f=0;f<b.length;f+=1){var g=b[f];if(g>this.endOffset)break;g<this.offset||0==g-c?(a.push(null),c=g):(c<this.offset&&(c=this.offset),g=new Syntax.Match(c,g-c,this.expression),g.value=this.value.substr(c-this.offset,g.length),d&&(d.next=g),d=g,c=g.endOffset,a.push(g))}b.length=a.length;for(f=0;f<a.length;f+=1)if(null!=
|
21
|
-
a[f]){for(g=b[0];0<e.length;)if(e[0].endOffset<=a[f].endOffset)a[f].children.push(e.shift());else break;if(e.length&&e[0].offset<a[f].endOffset){c=e.shift().bisectAtOffsets(b);for(d=0;d<c.length;d+=1)null!=c[d]&&a[f+d].children.push(c[d]);f+=c.length-2;b.splice(0,c.length-2)}b.shift()}e.length&&console.log("Syntax Error: Children nodes not consumed",e.length," remaining!");return a};
|
22
|
-
Syntax.Match.prototype.split=function(b){for(var a=[];null!==b.exec(this.value);)a.push(b.lastIndex);b=this.bisectAtOffsets(a);return jQuery.grep(b,function(a,b){return a})};
|
23
|
-
Syntax.Match.prototype.splitLines=function(){for(var b=this.split(/\n/g),a=0;a<b.length;a+=1){var c=b[a],d=c.value.search(/\S/),e=new Syntax.Match(c.offset,c.length,c.expression,c.value);0<d?(c=c.bisectAtOffsets([c.offset+d]),e.children=c,c[0].expression={klass:"indent"},c[1].expression={klass:"text"}):(c.expression={klass:"text"},e.children=[c]);b[a]=e}return b};Syntax.Brush=function(){this.klass=null;this.rules=[];this.parents=[];this.processes={}};
|
24
|
-
Syntax.Brush.prototype.derives=function(b){this.parents.push(b);this.rules.push({apply:function(a,c){return Syntax.brushes[b].getMatches(a)}})};Syntax.Brush.prototype.allKlasses=function(){for(var b=[this.klass],a=0;a<this.parents.length;a+=1)b=b.concat(Syntax.brushes[this.parents[a]].allKlasses());return b};Syntax.Brush.convertStringToTokenPattern=function(b,a){var c="\\b",d="\\b";b.match(/^\w/)?b.match(/\w$/)||(d="\\B"):c=b.match(/\w$/)?"\\B":d="";a&&(b=RegExp.escape(b));return c+b+d};
|
25
|
-
Syntax.Brush.MatchPattern=function(b,a){if(!a.pattern)return[];var c=[],d=RegExp();for(d.compile(a.pattern);null!==(match=d.exec(b));)a.matches?c=c.concat(a.matches(match,a)):a.brush?c.push(Syntax.Brush.buildTree(a,match[0],match.index)):c.push(new Syntax.Match(match.index,match[0].length,a,match[0])),a.incremental&&(d.lastIndex=match.index+1);return c};
|
26
|
-
Syntax.Brush.prototype.push=function(b,a){if(jQuery.isArray(b)){for(var c="(",d=0;d<b.length;d+=1){0<d&&(c+="|");var e=b[d];c=e instanceof RegExp?c+e.source:c+Syntax.Brush.convertStringToTokenPattern(e,!0)}this.push(jQuery.extend({pattern:new RegExp(c+")",a.options||"g")},a))}else a=b,"string"===typeof a.pattern&&(a.string=a.pattern,a.pattern=new RegExp(Syntax.Brush.convertStringToTokenPattern(a.string,!0),a.options||"g")),"undefined"!==typeof XRegExp&&(a.pattern=new XRegExp(a.pattern)),a.apply=a.apply||
|
27
|
-
Syntax.Brush.MatchPattern,a.pattern&&a.pattern.global||"undefined"==typeof a.pattern?this.rules.push(jQuery.extend({owner:this},a)):console.log("Syntax Error: Malformed rule: ",a)};Syntax.Brush.prototype.getMatchesForRule=function(b,a){var c=[];"undefined"!=typeof a.apply&&(c=a.apply(b,a));a.debug&&console.log("Syntax matches:",a,b,c);return c};Syntax.Brush.prototype.getRuleForKlass=function(b){for(var a=0;a<this.rules.length;a+=1)if(this.rules[a].klass==b)return this.rules[a];return null};
|
28
|
-
Syntax.Brush.prototype.getMatches=function(b){for(var a=[],c=0;c<this.rules.length;c+=1)a=a.concat(this.getMatchesForRule(b,this.rules[c]));return a};Syntax.Brush.buildTree=function(b,a,c,d){a=Syntax.brushes[b.brush].buildTree(a,c,d);jQuery.extend(a.expression,b);return a};
|
29
|
-
Syntax.Brush.prototype.buildTree=function(b,a,c){a=a||0;b=b.replace(/\r/g,"");var d=this.getMatches(b);if(a&&0<a)for(var e=0;e<d.length;e+=1)d[e].shift(a);b=new Syntax.Match(a,b.length,{klass:this.allKlasses().join(" "),allow:"*",owner:this},b);d.sort(Syntax.Match.sort);for(e=0;e<d.length;e+=1)b.insertAtEnd(d[e]);if(c)for(e=0;e<c.length;e+=1)b.insert(c[e],!0);b.complete=!0;return b};
|
30
|
-
Syntax.Brush.prototype.process=function(b,a,c){b=this.buildTree(b,0,a).splitLines();a=document.createElement("code");a.className="syntax highlighted";for(var d=0;d<b.length;d+=1){var e=b[d].reduce(null,function(a,b){if(b.expression&&(b.expression.process&&(a=b.expression.process(a,b,c)),b.expression.owner)){var d=b.expression.owner.processes[b.expression.klass];d&&(a=d(a,b,c))}return a});a.appendChild(e)}return a};
|
31
|
-
Syntax.highlightText=function(b,a,c,d,e){a=(a||"plain").toLowerCase();a=Syntax.aliases[a]||a;Syntax.brushes.get(a,function(a){var f=a.process(b,c,d);d.linkify&&jQuery("span.href",f).each(function(){jQuery(this).replaceWith(jQuery("<a>").attr("href",this.innerHTML).text(this.innerHTML))});e(f,a,b,d)})};
|
32
|
-
Syntax.extractBrushName=function(b){b=b.toLowerCase();var a=b.match(/(brush|language)-([\S]+)/);if(a)return a[2];b=b.split(/ /);if(-1!==jQuery.inArray("syntax",b))for(a=0;a<b.length;a+=1){var c=Syntax.aliases[b[a]];if(c)return c}return null};
|
33
|
-
Syntax.highlight=function(b,a,c){b.each(function(){var b=jQuery(this),e=a.brush||Syntax.extractBrushName(this.className),f=Syntax.innerText(this),g=Syntax.extractElementMatches(b);a.matches&&Array.prototype.push(g,a.matches);Syntax.highlightText(f,e,g,a,function(d,e){d.oncopy=Syntax.copyCode;d=jQuery(d);if(a.theme){for(var f=Syntax.themes[a.theme],g=0;g<f.length;g+=1)d.addClass("syntax-theme-"+f[g]);d.addClass("syntax-theme-"+a.theme)}e.postprocess&&(d=e.postprocess(a,d,b));c&&(d=c(a,d,b));d&&!0===
|
34
|
-
a.replace&&b.replaceWith(d)})})};Syntax.loader.core=!0;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Syntax.Editor=function(a,b){this.container=a;this.current=this.getLines()};Syntax.Editor.prototype.getLines=function(){for(var a=this.container.childNodes,b=[],c=[],d="",f=0,e=0;e<a.length;e+=1){var g=Syntax.innerText([a[e]]).split("\n");if(1<g.length){g[0]=d+g[0];d=g.pop();for(var h=0;h<g.length;h+=1)c.push(f-b.length),b.push(g[h]);f=e+1}else d+=g[0]}""!=d?(c.push(f-b.length),b.push(d)):--f;c.push(f);console.log("getLines",c,b,a);return{lines:b,offsets:c}};
|
3
|
-
Syntax.Editor.prototype.updateChangedLines=function(){for(var a={},b=this.getLines(),c=0,d=0;c<this.current.lines.length&&d<b.lines.length;)if(this.current.lines[c]==b.lines[d])c+=1,d+=1;else break;a.start=d;c=this.current.lines.length;for(d=b.lines.length;c>a.start&&d>a.start;)if(this.current.lines[c-1]==b.lines[d-1])--c,--d;else break;a.end=d;a.originalEnd=c;for(a.difference=b.lines.length-this.current.lines.length;0<a.start&&b.offsets[a.start]!=b.offsets[a.start-1];)--a.start;if(0<a.difference)for(;a.end<
|
4
|
-
b.lines.length-1&&b.offsets[a.end-1]!=b.offsets[a.end];)a.end+=1,a.originalEnd+=1;this.current=b;return this.changed=a};Syntax.Editor.prototype.textForLines=function(a,b){return this.current.lines.slice(a,b).join("\n")+"\n"};
|
5
|
-
Syntax.Editor.prototype.updateLines=function(a,b){if(a.start!=a.end){var c=a.start;a=a.end;c+=this.current.offsets[c];a+=this.current.offsets[a];c=Array.prototype.slice.call(this.container.childNodes,c,a);$(c).replaceWith(b)}else 0==a.start?$(this.container).prepend(b):(c=a.start,c+=this.current.offsets[c],$(this.container.childNodes[c]).after(b))};
|
6
|
-
Syntax.Editor.getCharacterOffset=function(a){var b=0;if("undefined"!=typeof window.getSelection){b=window.getSelection().getRangeAt(0);var c=b.cloneRange();c.selectNodeContents(a);c.setEnd(b.endContainer,b.endOffset);b=c.toString().length}else"undefined"!=typeof document.selection&&"Control"!=document.selection.type&&(b=document.selection.createRange(),c=document.body.createTextRange(),c.moveToElementText(a),c.setEndPoint("EndToEnd",b),b=c.text.length);return b};
|
7
|
-
Syntax.Editor.getNodesForCharacterOffsets=function(a,b){b=document.createTreeWalker(b,NodeFilter.SHOW_TEXT,function(a){return NodeFilter.FILTER_ACCEPT},!1);for(var c=[],d=0,f=0;f<a.length&&b.nextNode();){for(var e=d+b.currentNode.length;f<a.length&&a[f]<e;)c.push([b.currentNode,d,e]),f+=1;d=e}return c};
|
8
|
-
Syntax.Editor.prototype.getClientState=function(){var a={},b=window.getSelection();0<b.rangeCount&&(a.range=b.getRangeAt(0));a.range&&(a.startOffset=Syntax.Editor.getCharacterOffset(this.container));return a};
|
9
|
-
Syntax.Editor.prototype.setClientState=function(a){if(a.startOffset){var b=Syntax.Editor.getNodesForCharacterOffsets([a.startOffset],this.container),c=document.createRange();c.setStart(b[0][0],a.startOffset-b[0][1]);c.setEnd(b[0][0],a.startOffset-b[0][1]);a=window.getSelection();a.removeAllRanges();a.addRange(c)}};
|
10
|
-
Syntax.layouts.editor=function(a,b){var c=jQuery('<div class="editor syntax highlighted" contentEditable="true">');c.append(b.children());var d=new Syntax.Editor(c.get(0)),f=function(b){var c=d.getClientState(),e=d.updateChangedLines();0>e.difference&&0<e.start&&--e.start;b=d.textForLines(e.start,e.end);e.start==e.end?d.updateLines(e,[]):Syntax.highlightText(b,a,function(a){d.updateLines(e,a.children().get());d.setClientState(c)})};c.bind("keyup",function(){f()});c.bind("paste",function(a){f()});
|
11
|
-
c.bind("keydown",function(a){9==a.keyCode?(a.preventDefault(),document.execCommand("insertHTML",!1," ")):13==a.keyCode&&(a.preventDefault(),document.execCommand("insertHTML",!1,"\n"))});return jQuery('<div class="syntax-container">').append(c)};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
2
|
-
Function.prototype.bind||(Function.prototype.bind=function(a){var b=Array.prototype.slice.call(arguments,1),c=this;return function(){return c.apply(a,b)}});function ResourceLoader(a){this.dependencies={};this.loading={};this.loader=a}ResourceLoader.prototype._finish=function(a){var b=this.dependencies[a];if(b){a=this._loaded.bind(this,a);for(var c=0;c<b.length;c+=1)a=this.get.bind(this,b[c],a);a()}else this._loaded(a)};
|
3
|
-
ResourceLoader.prototype._loaded=function(a){var b=this[a],c=this.loading[a];this.loading[a]=null;if(b)for(a=0;a<c.length;a+=1)c[a](b);else alert("ResourceLoader: Could not load resource named "+a)};ResourceLoader.prototype.dependency=function(a,b){if(!this[b]||this.loading[name])this.dependencies[a]?this.dependencies[a].push(b):this.dependencies[a]=[b]};
|
4
|
-
ResourceLoader.prototype.get=function(a,b){void 0==a?b():this.loading[a]?this.loading[a].push(b):this[a]?b(this[a]):(this.loading[a]=[b],this.loader(a,this._finish.bind(this,a)))};
|
5
|
-
var Syntax={root:null,aliases:{},styles:{},themes:{},lib:{},cacheScripts:!0,cacheStyleSheets:!0,codeSelector:"code:not(.highlighted)",defaultOptions:{theme:"base",replace:!0,linkify:!0},brushes:new ResourceLoader(function(a,b){a=Syntax.aliases[a]||a;Syntax.getResource("jquery.syntax.brush",a,b)}),loader:new ResourceLoader(function(a,b){Syntax.getResource("jquery.syntax",a,b)}),getStyles:function(a){var b=jQuery("<link>");jQuery("head").append(b);Syntax.cacheStyleSheets||(a=a+"?"+Math.random());b.attr({rel:"stylesheet",
|
6
|
-
type:"text/css",href:a})},getScript:function(a,b){var c=document.createElement("script");c.onreadystatechange=function(){!this.onload||"loaded"!=this.readyState&&"complete"!=this.readyState||(this.onload(),this.onload=null)};c.onload=b;c.type="text/javascript";Syntax.cacheScripts||(a=a+"?"+Math.random());c.src=a;document.getElementsByTagName("head")[0].appendChild(c)},getResource:function(a,b,c){Syntax.detectRoot();a=a+"."+b;if(b=this.styles[a])for(var d=0;d<b.length;d+=1)this.getStyles(this.root+
|
7
|
-
b[d]);Syntax.getScript(this.root+a+".js",c)},alias:function(a,b){Syntax.aliases[a]=a;for(var c=0;c<b.length;c+=1)Syntax.aliases[b[c]]=a},brushAliases:function(a){var b=[],c;for(c in Syntax.aliases)Syntax.aliases[c]===a&&b.push(c);return b},brushNames:function(){var a=[],b;for(b in Syntax.aliases)b===Syntax.aliases[b]&&a.push(b);return a},detectRoot:function(){if(null==Syntax.root){var a=jQuery("script").filter(function(){return this.src.match(/jquery\.syntax/)}).get(0);a&&(a=a.src.match(/.*\//))&&
|
8
|
-
(Syntax.root=a[0])}}};jQuery.fn.syntax=function(a,b){0!=this.length&&(a=jQuery.extend(Syntax.defaultOptions,a),Syntax.loader.get("core",function(c){Syntax.highlight(this,a,b)}.bind(this)))};jQuery.syntax=function(a,b){jQuery(Syntax.codeSelector,a?a.context:null).syntax(a,b)};
|