add highlighting for LogicBlox
This commit is contained in:
parent
bc7d8a2ab2
commit
2fc8ffcc38
5 changed files with 204 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ var docs = {
|
|||
"docs/lsl.lsl": "LSL",
|
||||
"docs/scheme.scm": "Scheme",
|
||||
"docs/liquid.liquid": "Liquid",
|
||||
"docs/logicblox.logic": "LogicBlox",
|
||||
"docs/lua.lua": "Lua",
|
||||
"docs/lucene.lucene": "Lucene",
|
||||
"docs/luapage.lp": "LuaPage",
|
||||
|
|
|
|||
16
demo/kitchen-sink/docs/logicblox.logic
Normal file
16
demo/kitchen-sink/docs/logicblox.logic
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// ancestors
|
||||
parentof("douglas", "john").
|
||||
parentof("john", "bob").
|
||||
parentof("bob", "ebbon").
|
||||
|
||||
parentof("douglas", "jane").
|
||||
parentof("jane", "jan").
|
||||
|
||||
ancestorof(A, B) <- parentof(A, B).
|
||||
ancestorof(A, C) <- ancestorof(A, B), parentof(B,C).
|
||||
|
||||
grandparentof(A, B) <- parentof(A, C), parentof(C, B).
|
||||
|
||||
cousins(A,B) <- grandparentof(C,A), grandparentof(C,B).
|
||||
|
||||
parentof[`arg](A, B) -> int[32](A), !string(B).
|
||||
|
|
@ -65,6 +65,7 @@ var modesByName = {
|
|||
lisp: ["Lisp" , "lisp"],
|
||||
scheme: ["Scheme" , "scm|rkt"],
|
||||
liquid: ["Liquid" , "liquid"],
|
||||
logicblox: ["LogicBlox" , "logic"],
|
||||
lua: ["Lua" , "lua"],
|
||||
luapage: ["LuaPage" , "lp"], // http://keplerproject.github.com/cgilua/manual.html#templates
|
||||
lucene: ["Lucene" , "lucene"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue