small cleanup
This commit is contained in:
parent
561a426516
commit
a091a627a0
3 changed files with 21 additions and 16 deletions
|
|
@ -109,8 +109,7 @@ var modesByName = {
|
||||||
less: ["LESS" , "less"],
|
less: ["LESS" , "less"],
|
||||||
liquid: ["Liquid" , "liquid"],
|
liquid: ["Liquid" , "liquid"],
|
||||||
lua: ["Lua" , "lua"],
|
lua: ["Lua" , "lua"],
|
||||||
luapage: ["LuaPage" , "lp"],
|
luapage: ["LuaPage" , "lp"], // http://keplerproject.github.com/cgilua/manual.html#templates
|
||||||
// LuaPage implements the LuaPage markup as described by the Kepler Project's CGILua documentation: http://keplerproject.github.com/cgilua/manual.html#templates
|
|
||||||
markdown: ["Markdown" , "md|markdown"],
|
markdown: ["Markdown" , "md|markdown"],
|
||||||
ocaml: ["OCaml" , "ml|mli"],
|
ocaml: ["OCaml" , "ml|mli"],
|
||||||
perl: ["Perl" , "pl|pm"],
|
perl: ["Perl" , "pl|pm"],
|
||||||
|
|
@ -188,7 +187,7 @@ var docs = {
|
||||||
"docs/ocaml.ml": "OCaml",
|
"docs/ocaml.ml": "OCaml",
|
||||||
"docs/OpenSCAD.scad": "OpenSCAD",
|
"docs/OpenSCAD.scad": "OpenSCAD",
|
||||||
"docs/lua.lua": "Lua",
|
"docs/lua.lua": "Lua",
|
||||||
"docs/luapage.lp": "LuaPage", // index.lp from the Kepler Project's LuaDoc HTML doclet. http://keplerproject.github.com/luadoc/
|
"docs/luapage.lp": "LuaPage",
|
||||||
"docs/liquid.liquid": "Liquid",
|
"docs/liquid.liquid": "Liquid",
|
||||||
"docs/java.java": "Java",
|
"docs/java.java": "Java",
|
||||||
"docs/clojure.clj": "Clojure",
|
"docs/clojure.clj": "Clojure",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html>
|
<html>
|
||||||
|
<% --[[--
|
||||||
|
index.lp from the Kepler Project's LuaDoc HTML doclet.
|
||||||
|
http://keplerproject.github.com/luadoc/
|
||||||
|
--]] %>
|
||||||
<head>
|
<head>
|
||||||
<title>Reference</title>
|
<title>Reference</title>
|
||||||
<link rel="stylesheet" href="<%=luadoc.doclet.html.link("luadoc.css")%>" type="text/css" />
|
<link rel="stylesheet" href="<%=luadoc.doclet.html.link("luadoc.css")%>" type="text/css" />
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
define(function(require, exports, module) {
|
// LuaPage implements the LuaPage markup as described by the Kepler Project's CGILua
|
||||||
|
// documentation: http://keplerproject.github.com/cgilua/manual.html#templates
|
||||||
|
define(function(require, exports, module) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var oop = require("../lib/oop");
|
var oop = require("../lib/oop");
|
||||||
|
|
@ -8,7 +10,7 @@ var LuaHighlightRules = require("./lua_highlight_rules").LuaHighlightRules;
|
||||||
var LuaPageHighlightRules = function() {
|
var LuaPageHighlightRules = function() {
|
||||||
this.$rules = new HtmlHighlightRules().getRules();
|
this.$rules = new HtmlHighlightRules().getRules();
|
||||||
|
|
||||||
for (var i in this.$rules){ // Thanks to Harutyun Amirjanyan for this fix.
|
for (var i in this.$rules) {
|
||||||
this.$rules[i].unshift({
|
this.$rules[i].unshift({
|
||||||
token: "keyword",
|
token: "keyword",
|
||||||
regex: "<\\%\\=?",
|
regex: "<\\%\\=?",
|
||||||
|
|
@ -20,17 +22,17 @@ var LuaPageHighlightRules = function() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.embedRules(LuaHighlightRules, "lua-", [
|
this.embedRules(LuaHighlightRules, "lua-", [
|
||||||
{
|
{
|
||||||
token: "keyword",
|
token: "keyword",
|
||||||
regex: "\\%>",
|
regex: "\\%>",
|
||||||
next: "start"
|
next: "start"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
token: "keyword",
|
token: "keyword",
|
||||||
regex: "\\?>",
|
regex: "\\?>",
|
||||||
next: "start"
|
next: "start"
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
oop.inherits(LuaPageHighlightRules, HtmlHighlightRules);
|
oop.inherits(LuaPageHighlightRules, HtmlHighlightRules);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue