Save everything in case computer melts
This commit is contained in:
parent
5a081f748e
commit
ff2ac65b2b
55 changed files with 2437 additions and 1289 deletions
|
|
@ -75,7 +75,7 @@ var Mode = function(name, desc, extensions) {
|
|||
this.name = name;
|
||||
this.desc = desc;
|
||||
this.mode = "ace/mode/" + name;
|
||||
this.extRe = new RegExp("^.*\\.(" + extensions + ")$", "g");
|
||||
this.extRe = new RegExp("^.*\\.(" + extensions + ")$" , "g");
|
||||
};
|
||||
|
||||
Mode.prototype.supportsFile = function(filename) {
|
||||
|
|
@ -83,49 +83,50 @@ Mode.prototype.supportsFile = function(filename) {
|
|||
};
|
||||
|
||||
var modesByName = {
|
||||
c9search: ["C9Search" , "c9search_results"],
|
||||
coffee: ["CoffeeScript" , "coffee|^Cakefile"],
|
||||
coldfusion: ["ColdFusion" , "cfm"],
|
||||
csharp: ["C#" , "cs"],
|
||||
css: ["CSS" , "css"],
|
||||
diff: ["Diff" , "diff|patch"],
|
||||
glsl: ["Glsl" , "glsl|frag|vert"],
|
||||
golang: ["Go" , "go"],
|
||||
groovy: ["Groovy" , "groovy"],
|
||||
haxe: ["haXe" , "hx"],
|
||||
html: ["HTML" , "htm|html|xhtml"],
|
||||
c_cpp: ["C/C++" , "c|cc|cpp|cxx|h|hh|hpp"],
|
||||
clojure: ["Clojure" , "clj"],
|
||||
jade: ["Jade" , "jade"],
|
||||
java: ["Java" , "java"],
|
||||
javascript: ["JavaScript" , "js"],
|
||||
json: ["JSON" , "json"],
|
||||
jsx: ["JSX" , "jsx"],
|
||||
latex: ["LaTeX" , "latex|tex|ltx|bib"],
|
||||
less: ["LESS" , "less"],
|
||||
liquid: ["Liquid" , "liquid"],
|
||||
lua: ["Lua" , "lua"],
|
||||
luapage: ["LuaPage" , "lp"], // http://keplerproject.github.com/cgilua/manual.html#templates
|
||||
markdown: ["Markdown" , "md|markdown"],
|
||||
ocaml: ["OCaml" , "ml|mli"],
|
||||
perl: ["Perl" , "pl|pm"],
|
||||
pgsql: ["pgSQL" , "pgsql"],
|
||||
php: ["PHP" , "php|phtml"],
|
||||
powershell: ["Powershell" , "ps1"],
|
||||
python: ["Python" , "py"],
|
||||
ruby: ["Ruby" , "ru|gemspec|rake|rb"],
|
||||
scad: ["OpenSCAD" , "scad"],
|
||||
scala: ["Scala" , "scala"],
|
||||
scss: ["SCSS" , "scss|sass"],
|
||||
sh: ["SH" , "sh|bash|bat"],
|
||||
sql: ["SQL" , "sql"],
|
||||
svg: ["SVG" , "svg"],
|
||||
tcl: ["Tcl" , "tcl"],
|
||||
text: ["Text" , "txt"],
|
||||
textile: ["Textile" , "textile"],
|
||||
xml: ["XML" , "xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl"],
|
||||
xquery: ["XQuery" , "xq"],
|
||||
yaml: ["YAML" , "yaml"]
|
||||
c9search: ["C9Search" , "c9search_results"],
|
||||
coffee: ["CoffeeScript" , "coffee|^Cakefile"],
|
||||
coldfusion: ["ColdFusion" , "cfm"],
|
||||
csharp: ["C#" , "cs"],
|
||||
css: ["CSS" , "css"],
|
||||
diff: ["Diff" , "diff|patch"],
|
||||
glsl: ["Glsl" , "glsl|frag|vert"],
|
||||
golang: ["Go" , "go"],
|
||||
groovy: ["Groovy" , "groovy"],
|
||||
haxe: ["haXe" , "hx"],
|
||||
html: ["HTML" , "htm|html|xhtml"],
|
||||
c_cpp: ["C/C++" , "c|cc|cpp|cxx|h|hh|hpp"],
|
||||
clojure: ["Clojure" , "clj"],
|
||||
jade: ["Jade" , "jade"],
|
||||
java: ["Java" , "java"],
|
||||
javascript: ["JavaScript" , "js"],
|
||||
json: ["JSON" , "json"],
|
||||
jsx: ["JSX" , "jsx"],
|
||||
latex: ["LaTeX" , "latex|tex|ltx|bib"],
|
||||
less: ["LESS" , "less"],
|
||||
liquid: ["Liquid" , "liquid"],
|
||||
lua: ["Lua" , "lua"],
|
||||
luapage: ["LuaPage" , "lp"], // http://keplerproject.github.com/cgilua/manual.html#templates
|
||||
markdown: ["Markdown" , "md|markdown"],
|
||||
objectivec: ["Objective-C/C++" , "m"],
|
||||
ocaml: ["OCaml" , "ml|mli"],
|
||||
perl: ["Perl" , "pl|pm"],
|
||||
pgsql: ["pgSQL" , "pgsql"],
|
||||
php: ["PHP" , "php|phtml"],
|
||||
powershell: ["Powershell" , "ps1"],
|
||||
python: ["Python" , "py"],
|
||||
ruby: ["Ruby" , "ru|gemspec|rake|rb"],
|
||||
scad: ["OpenSCAD" , "scad"],
|
||||
scala: ["Scala" , "scala"],
|
||||
scss: ["SCSS" , "scss|sass"],
|
||||
sh: ["SH" , "sh|bash|bat"],
|
||||
sql: ["SQL" , "sql"],
|
||||
svg: ["SVG" , "svg"],
|
||||
tcl: ["Tcl" , "tcl"],
|
||||
text: ["Text" , "txt"],
|
||||
textile: ["Textile" , "textile"],
|
||||
xml: ["XML" , "xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl"],
|
||||
xquery: ["XQuery" , "xq"],
|
||||
yaml: ["YAML" , "yaml"]
|
||||
};
|
||||
|
||||
for (var name in modesByName) {
|
||||
|
|
@ -187,6 +188,7 @@ var docs = {
|
|||
"docs/lua.lua": "Lua",
|
||||
"docs/luapage.lp": "LuaPage",
|
||||
"docs/markdown.md": {name: "Markdown", wrapped: true},
|
||||
"docs/objectivec.m": "Objective-C",
|
||||
"docs/ocaml.ml": "OCaml",
|
||||
"docs/OpenSCAD.scad": "OpenSCAD",
|
||||
"docs/perl.pl": "Perl",
|
||||
|
|
@ -236,7 +238,7 @@ function prepareDocList(docs) {
|
|||
doc = {name: doc || path};
|
||||
|
||||
doc.path = path;
|
||||
doc.desc = doc.name.replace(/^(ace|docs|demo|build)\//, "");
|
||||
doc.desc = doc.name.replace(/^(ace|docs|demo|build)\// , "");
|
||||
if (doc.desc.length > 18)
|
||||
doc.desc = doc.desc.slice(0, 7) + ".." + doc.desc.slice(-9)
|
||||
|
||||
|
|
@ -325,7 +327,7 @@ cmdLine.commands.bindKeys({
|
|||
},
|
||||
})
|
||||
|
||||
cmdLine.commands.removeCommands(["find", "gotoline", "findall", "replace", "replaceall"])
|
||||
cmdLine.commands.removeCommands(["find" , "gotoline" , "findall" , "replace" , "replaceall"])
|
||||
|
||||
/**
|
||||
* This demonstrates how you can define commands and bind shortcuts to them.
|
||||
|
|
@ -389,15 +391,15 @@ var softTabEl = document.getElementById("soft_tab");
|
|||
var behavioursEl = document.getElementById("enable_behaviours");
|
||||
|
||||
var group = document.createElement("optgroup");
|
||||
group.setAttribute("label", "Mode Examples");
|
||||
group.setAttribute("label" , "Mode Examples");
|
||||
fillDropdown(docs, group);
|
||||
docEl.appendChild(group);
|
||||
var group = document.createElement("optgroup");
|
||||
group.setAttribute("label", "Huge documents");
|
||||
group.setAttribute("label" , "Huge documents");
|
||||
fillDropdown(hugeDocs, group);
|
||||
docEl.appendChild(group);
|
||||
var group = document.createElement("optgroup");
|
||||
group.setAttribute("label", "own source");
|
||||
group.setAttribute("label" , "own source");
|
||||
fillDropdown(ownSource, group);
|
||||
docEl.appendChild(group);
|
||||
|
||||
|
|
@ -479,13 +481,13 @@ function saveOption(el, val) {
|
|||
}
|
||||
}
|
||||
|
||||
event.addListener(themeEl, "mouseover", function(e){
|
||||
event.addListener(themeEl , "mouseover", function(e){
|
||||
this.desiredValue = e.target.value;
|
||||
if (!this.$timer)
|
||||
this.$timer = setTimeout(this.updateTheme);
|
||||
})
|
||||
|
||||
event.addListener(themeEl, "mouseout", function(e){
|
||||
event.addListener(themeEl , "mouseout", function(e){
|
||||
this.desiredValue = null;
|
||||
if (!this.$timer)
|
||||
this.$timer = setTimeout(this.updateTheme, 20);
|
||||
|
|
@ -653,11 +655,11 @@ function fillDropdown(list, el) {
|
|||
|
||||
|
||||
/************** dragover ***************************/
|
||||
event.addListener(container, "dragover", function(e) {
|
||||
event.addListener(container , "dragover", function(e) {
|
||||
return event.preventDefault(e);
|
||||
});
|
||||
|
||||
event.addListener(container, "drop", function(e) {
|
||||
event.addListener(container , "drop", function(e) {
|
||||
var file;
|
||||
try {
|
||||
file = e.dataTransfer.files[0];
|
||||
|
|
@ -753,7 +755,7 @@ var statusUpdate = lang.deferredCall(function() {
|
|||
add("REC");
|
||||
|
||||
var c = editor.selection.lead;
|
||||
add(c.row + ":" + c.column, " ");
|
||||
add(c.row + ":" + c.column , " ");
|
||||
if (!editor.selection.isEmpty()) {
|
||||
var r = editor.getSelectionRange()
|
||||
add("(" + (r.end.row - r.start.row) + ":" +(r.end.column - r.start.column) + ")");
|
||||
|
|
|
|||
|
|
@ -1,158 +1,45 @@
|
|||
!!!doctype
|
||||
!!!5
|
||||
!!!
|
||||
|
||||
- var methodSection, constructorSection, propertySection, eventSection;
|
||||
include something
|
||||
|
||||
-function renameMemberTitle(title, count)
|
||||
if title.indexOf("ethods") >= 0
|
||||
span Functions (#{count})
|
||||
else if title.indexOf("ropert") >= 0
|
||||
span Properties (#{count})
|
||||
else
|
||||
span.AS.AS.AS #{title} (#{count})
|
||||
include another_thing
|
||||
|
||||
// let's talk about it
|
||||
|
||||
//
|
||||
here it is. a block comment!
|
||||
and another row!
|
||||
but not here.
|
||||
|
||||
//
|
||||
a far spaced
|
||||
should be lack of block
|
||||
|
||||
// also not a comment
|
||||
div.attemptAtBlock
|
||||
|
||||
span#myName
|
||||
|
||||
#{implicit}
|
||||
!{more_explicit}
|
||||
|
||||
#idDiv
|
||||
|
||||
.idDiv
|
||||
|
||||
test(id="tag")
|
||||
header(id="tag", blah="foo", meh="aads")
|
||||
mixin article(obj, parents)
|
||||
if typeof obj === 'string'
|
||||
obj = list[obj]
|
||||
|
||||
title = obj.id + (obj.type ? ' (' + obj.type + ')' : '')
|
||||
article.article(id=obj.path, data-title=title)
|
||||
if obj.type === 'section' || obj.type === 'namespace' || obj.type === 'class' || obj.type === 'mixin'
|
||||
mixin bleh()
|
||||
|
||||
if obj.stability
|
||||
mixin markdown
|
||||
|
||||
span.label.deprecated
|
||||
| Deprecated
|
||||
if obj.deprecated.from
|
||||
| (since #{obj.deprecated.from})
|
||||
if obj.deprecated.off
|
||||
| and will be removed on #{obj.deprecated.off}
|
||||
if obj.alias_of
|
||||
li
|
||||
span.label.alias.single
|
||||
| Aliased as:
|
||||
!= link(obj.alias_of)
|
||||
div.sideToggler
|
||||
mixin clever-name
|
||||
|
||||
div(id='ellipsis_#{obj.id}', class='ellipsis_description')
|
||||
mixin markdown(obj.short_description)
|
||||
-var x = "0";
|
||||
- y each z
|
||||
|
||||
h3(id='#{obj.id}', class='methodToggle methodClicker inactive')
|
||||
|
||||
div.description
|
||||
|
||||
mixin markdown(obj.description)
|
||||
|
||||
if obj.bound && ~obj.bound.indexOf('#')
|
||||
p.note.methodized
|
||||
| This method can be called <em>either</em> as an
|
||||
!= link(obj.bound, ['link-short'], 'instance method')
|
||||
| <em>or</em> as a generic method. If calling as generic, pass the instance in as the first argument.
|
||||
else if obj.bound && !~obj.bound.indexOf('#')
|
||||
p.note.functionalized
|
||||
| This method can be called <em>either</em> as an instance method <em>or</em> as a
|
||||
!= link(obj.bound, ['link-short'], 'generic method')
|
||||
|. If calling as generic, pass the instance in as the first argument.
|
||||
|
||||
if obj.arguments
|
||||
h4 Arguments
|
||||
!= argumentTable(obj.arguments, ["argument-list", "table", "table-striped", "table-bordered"])
|
||||
|
||||
|
||||
if obj.returns
|
||||
h4 Returns
|
||||
!= returnTable(obj.returns, ["return-list", "table", "table-striped", "table-bordered"])
|
||||
|
||||
//- children
|
||||
for child in obj.children.filter(function(x){return x.type === 'section'})
|
||||
mixin article(child, parents.concat(obj))
|
||||
for child in obj.children.filter(function(x){return x.type === 'utility'})
|
||||
mixin article(child, parents.concat(obj))
|
||||
|
||||
for child in obj.children.filter(function(x){return x.type === 'constructor'})
|
||||
- if (!constructorSection)
|
||||
- constructorSection = true
|
||||
h3.sectionHeader Constructors
|
||||
mixin article(child, parents.concat(obj))
|
||||
|
||||
for child in obj.children.filter(function(x){return x.type === 'namespace' || x.type === 'class' || x.type === 'mixin'})
|
||||
mixin article(child, parents.concat(obj))
|
||||
|
||||
for child in obj.children.filter(function(x){return x.type === 'event'})
|
||||
- if (!eventSection)
|
||||
- eventSection = true
|
||||
h3.sectionHeader Events
|
||||
mixin article(child, parents.concat(obj), 'event')
|
||||
|
||||
for child in obj.children.filter(function(x){return x.type === 'class method'})
|
||||
- if (!methodSection)
|
||||
- methodSection = true
|
||||
h3.sectionHeader Methods
|
||||
mixin article(child, parents.concat(obj))
|
||||
|
||||
for child in obj.children.filter(function(x){return x.type === 'class property'})
|
||||
- if (!propertySection)
|
||||
- propertySection = true
|
||||
h3.sectionHeader Properties
|
||||
mixin article(child, parents.concat(obj))
|
||||
|
||||
for child in obj.children.filter(function(x){return x.type === 'instance method'})
|
||||
mixin article(child, parents.concat(obj))
|
||||
for child in obj.children.filter(function(x){return x.type === 'instance property'})
|
||||
mixin article(child, parents.concat(obj))
|
||||
for child in obj.children.filter(function(x){return x.type === 'constant'})
|
||||
mixin article(child, parents.concat(obj))
|
||||
|
||||
|
||||
|
||||
mixin api()
|
||||
-pos = 0
|
||||
for obj in tree.children
|
||||
.classContent
|
||||
.membersBackground
|
||||
|
||||
div(class=' members pos#{pos}')
|
||||
div(class=' membersContent pos#{pos}')
|
||||
h1.memberHeader
|
||||
-var heading = obj.path
|
||||
span.name #{heading}
|
||||
|
||||
-if (true || obj.filename.indexOf("index") < 0)
|
||||
ul(class='nav tabs pos#{pos}', data-tabs='tabs')
|
||||
for selector, title in {'Events': ['event', 'events'], 'Constructors': ['constructor', 'constructors'], 'Class methods': ['class method', 'class_methods'], 'Class properties': ['class property', 'class_properties'], 'Instance methods': ['instance method', 'instance_methods'], 'Instance properties': ['instance property', 'instance_properties'], 'Constants': ['constant', 'constants']}
|
||||
members = obj.children.filter(function(x){return x.type === selector[0]})
|
||||
li(class="dropdown", data-dropdown="dropdown")
|
||||
if members.length
|
||||
a(href="\#", class="dropdown-toggle", data-toggle="dropdown")
|
||||
!= renameMemberTitle(title, members.length)
|
||||
b.caret
|
||||
ul.dropdown-menu
|
||||
for m in members
|
||||
li(data-id='#{m.id}', class='memberLink')
|
||||
mixin link(m, [], true)
|
||||
-pos++
|
||||
-methodSection = constructorSection = propertySection = eventSection = false;
|
||||
mixin article(obj, [])
|
||||
|
||||
|
||||
mixin short_description_list(collection)
|
||||
ul.method-details-list
|
||||
for obj in collection
|
||||
if typeof obj === 'string'
|
||||
obj = list[obj]
|
||||
li.method-description
|
||||
h4
|
||||
mixin link(obj)
|
||||
if obj.short_description
|
||||
mixin markdown(obj.short_description)
|
||||
|
||||
mixin link(obj, classes, short)
|
||||
l = link(obj, classes, short)
|
||||
!= l
|
||||
|
||||
mixin links(collection)
|
||||
ul.method-list
|
||||
for obj in collection
|
||||
li
|
||||
mixin link(obj)
|
||||
- var items = ["one", "two", "three"]
|
||||
each item in items
|
||||
li= item
|
||||
11
demo/kitchen-sink/docs/objectivec.m
Normal file
11
demo/kitchen-sink/docs/objectivec.m
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@protocol Printing: someParent
|
||||
-(void) print;
|
||||
@end
|
||||
|
||||
@interface Fraction: NSObject <Printing, NSCopying> {
|
||||
int numerator;
|
||||
int denominator;
|
||||
}
|
||||
@end
|
||||
|
||||
@"blah" @"asd\d" @"\fawn\\"
|
||||
Loading…
Add table
Add a link
Reference in a new issue