You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2013/10/29 16:40:19 UTC

[34/51] [partial] working replacement

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_liquid.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_liquid.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_liquid.json
new file mode 100644
index 0000000..a87c051
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_liquid.json
@@ -0,0 +1,551 @@
+[[
+   "start",
+  ["text","The following examples can be found in full at http://liquidmarkup.org/"]
+],[
+   "start"
+],[
+   "start",
+  ["text","Liquid is an extraction from the e-commerce system Shopify."]
+],[
+   "start",
+  ["text","Shopify powers many thousands of e-commerce stores which all call for unique designs."]
+],[
+   "start",
+  ["text","For this we developed Liquid which allows our customers complete design freedom while"]
+],[
+   "start",
+  ["text","maintaining the integrity of our servers."]
+],[
+   "start"
+],[
+   "start",
+  ["text","Liquid has been in production use since June 2006 and is now used by many other"]
+],[
+   "start",
+  ["text","hosted web applications."]
+],[
+   "start"
+],[
+   "start",
+  ["text","It was developed for usage in Ruby on Rails web applications and integrates seamlessly"]
+],[
+   "start",
+  ["text","as a plugin but it also works excellently as a stand alone library."]
+],[
+   "start"
+],[
+   "start",
+  ["text","Here's what it looks like:"]
+],[
+   "start"
+],[
+   "start",
+  ["text","  "],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","ul"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"products\""],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","    "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","for"],
+  ["text"," "],
+  ["identifier","product"],
+  ["text"," "],
+  ["keyword","in"],
+  ["text"," "],
+  ["identifier","products"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","      "],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","li"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","        "],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"],
+  ["variable","{{"],
+  ["text"," "],
+  ["identifier","product"],
+  ["text","."],
+  ["identifier","title"],
+  ["text"," "],
+  ["variable","}}"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","        Only "],
+  ["variable","{{"],
+  ["text"," "],
+  ["identifier","product"],
+  ["text","."],
+  ["identifier","price"],
+  ["text"," | "],
+  ["identifier","format_as_money"],
+  ["text"," "],
+  ["variable","}}"]
+],[
+   "start"
+],[
+   "start",
+  ["text","        "],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"],
+  ["variable","{{"],
+  ["text"," "],
+  ["identifier","product"],
+  ["text","."],
+  ["identifier","description"],
+  ["text"," | "],
+  ["identifier","prettyprint"],
+  ["text"," | "],
+  ["support.function","truncate"],
+  ["text",": "],
+  ["constant.numeric","200"],
+  ["text","  "],
+  ["variable","}}"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start",
+  ["text","      "],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","li"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","    "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","endfor"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","  "],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","ul"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start"
+],[
+   "start",
+  ["text","Some more features include:"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","Filters"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"],
+  ["text"," The word \"tobi\" in uppercase: "],
+  ["variable","{{"],
+  ["text"," "],
+  ["string","'tobi'"],
+  ["text"," | "],
+  ["support.function","upcase"],
+  ["text"," "],
+  ["variable","}}"],
+  ["text"," "],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","The word \"tobi\" has "],
+  ["variable","{{"],
+  ["text"," "],
+  ["string","'tobi'"],
+  ["text"," | "],
+  ["support.function","size"],
+  ["text"," "],
+  ["variable","}}"],
+  ["text"," letters! "],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","Change \"Hello world\" to \"Hi world\": "],
+  ["variable","{{"],
+  ["text"," "],
+  ["string","'Hello world'"],
+  ["text"," | "],
+  ["support.function","replace"],
+  ["text",": "],
+  ["string","'Hello'"],
+  ["text",", "],
+  ["string","'Hi'"],
+  ["text"," "],
+  ["variable","}}"],
+  ["text"," "],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","The date today is "],
+  ["variable","{{"],
+  ["text"," "],
+  ["string","'now'"],
+  ["text"," | "],
+  ["support.function","date"],
+  ["text",": "],
+  ["string","\"%Y %b %d\""],
+  ["text"," "],
+  ["variable","}}"],
+  ["text"," "],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","If"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","  "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","if"],
+  ["text"," "],
+  ["identifier","user"],
+  ["text","."],
+  ["identifier","name"],
+  ["text"," "],
+  ["keyword.operator","=="],
+  ["text"," "],
+  ["string","'tobi'"],
+  ["text"," "],
+  ["identifier","or"],
+  ["text"," "],
+  ["identifier","user"],
+  ["text","."],
+  ["identifier","name"],
+  ["text"," "],
+  ["keyword.operator","=="],
+  ["text"," "],
+  ["string","'marc'"],
+  ["text"," "],
+  ["variable","%}"],
+  ["text"," "]
+],[
+   "start",
+  ["text","    hi marc or tobi"]
+],[
+   "start",
+  ["text","  "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","endif"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","Case"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","  "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","case"],
+  ["text"," "],
+  ["identifier","template"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","    "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","when"],
+  ["text"," "],
+  ["string","'index'"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","       Welcome"]
+],[
+   "start",
+  ["text","    "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","when"],
+  ["text"," "],
+  ["string","'product'"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","       "],
+  ["variable","{{"],
+  ["text"," "],
+  ["identifier","product"],
+  ["text","."],
+  ["identifier","vendor"],
+  ["text"," | "],
+  ["identifier","link_to_vendor"],
+  ["text"," "],
+  ["variable","}}"],
+  ["text"," / "],
+  ["variable","{{"],
+  ["text"," "],
+  ["identifier","product"],
+  ["text","."],
+  ["identifier","title"],
+  ["text"," "],
+  ["variable","}}"]
+],[
+   "start",
+  ["text","    "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","else"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","       "],
+  ["variable","{{"],
+  ["text"," "],
+  ["identifier","page_title"],
+  ["text"," "],
+  ["variable","}}"]
+],[
+   "start",
+  ["text","  "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","endcase"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","For Loops"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","  "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","for"],
+  ["text"," "],
+  ["identifier","item"],
+  ["text"," "],
+  ["keyword","in"],
+  ["text"," "],
+  ["identifier","array"],
+  ["text"," "],
+  ["variable","%}"],
+  ["text"," "]
+],[
+   "start",
+  ["text","    "],
+  ["variable","{{"],
+  ["text"," "],
+  ["identifier","item"],
+  ["text"," "],
+  ["variable","}}"]
+],[
+   "start",
+  ["text","  "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","endfor"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","Tables"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","  "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","tablerow"],
+  ["text"," "],
+  ["identifier","item"],
+  ["text"," "],
+  ["keyword","in"],
+  ["text"," "],
+  ["identifier","items"],
+  ["text"," "],
+  ["identifier","cols"],
+  ["text",": "],
+  ["constant.numeric","3"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","    "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","if"],
+  ["text"," "],
+  ["variable.language","tablerowloop"],
+  ["text","."],
+  ["identifier","col_first"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","      First column: "],
+  ["variable","{{"],
+  ["text"," "],
+  ["identifier","item"],
+  ["text","."],
+  ["identifier","variable"],
+  ["text"," "],
+  ["variable","}}"]
+],[
+   "start",
+  ["text","    "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","else"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","      Different column: "],
+  ["variable","{{"],
+  ["text"," "],
+  ["identifier","item"],
+  ["text","."],
+  ["identifier","variable"],
+  ["text"," "],
+  ["variable","}}"]
+],[
+   "start",
+  ["text","    "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","endif"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["text","  "],
+  ["variable","{%"],
+  ["text"," "],
+  ["keyword","endtablerow"],
+  ["text"," "],
+  ["variable","%}"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+]]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lisp.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lisp.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lisp.json
new file mode 100644
index 0000000..2e70a55
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lisp.json
@@ -0,0 +1,248 @@
+[[
+   "start",
+  ["text","("],
+  ["storage.type.function-type.lisp","defun"],
+  ["text"," "],
+  ["entity.name.function.lisp","prompt-for-cd"],
+  ["text"," ()"]
+],[
+   "start",
+  ["text","   "],
+  ["string","\"Prompts"]
+],[
+   "start",
+  ["text","    "],
+  ["identifier","for"],
+  ["text"," "],
+  ["identifier","CD"],
+  ["text","\""]
+],[
+   "start",
+  ["text","   ("],
+  ["identifier","prompt"],
+  ["text","-"],
+  ["identifier","read"],
+  ["text"," "],
+  ["string","\"Title\""],
+  ["text"," "],
+  ["constant.numeric","1.53"],
+  ["text"," "],
+  ["constant.numeric","1"],
+  ["text"," "],
+  ["constant.numeric","2"],
+  ["text","/"],
+  ["constant.numeric","4"],
+  ["text"," "],
+  ["constant.numeric","1.7"],
+  ["text"," "],
+  ["constant.numeric","1.7e0"],
+  ["text"," "],
+  ["constant.numeric","2.9E-4"],
+  ["text"," "],
+  ["constant.numeric","+42"],
+  ["text"," "],
+  ["constant.numeric","-7"],
+  ["text"," "],
+  ["punctuation.definition.constant.character.lisp","#"],
+  ["constant.character.lisp","b001"],
+  ["text"," "],
+  ["punctuation.definition.constant.character.lisp","#"],
+  ["constant.character.lisp","b001/100"],
+  ["text"," "],
+  ["punctuation.definition.constant.character.lisp","#"],
+  ["constant.character.lisp","o777"],
+  ["text"," "],
+  ["punctuation.definition.constant.character.lisp","#"],
+  ["constant.character.lisp","O777"],
+  ["text"," "],
+  ["punctuation.definition.constant.character.lisp","#"],
+  ["constant.character.lisp","xabc55"],
+  ["text"," "],
+  ["punctuation.definition.constant.character.lisp","#"],
+  ["constant.character.lisp","c"],
+  ["text","("],
+  ["constant.numeric","0"],
+  ["text"," "],
+  ["constant.numeric","-5.6"],
+  ["text","))"]
+],[
+   "start",
+  ["text","   ("],
+  ["identifier","prompt"],
+  ["text","-"],
+  ["identifier","read"],
+  ["text"," "],
+  ["string","\"Artist\""],
+  ["text"," &"],
+  ["identifier","rest"],
+  ["text",")"]
+],[
+   "start",
+  ["text","   ("],
+  ["keyword.operator","or"],
+  ["text"," ("],
+  ["identifier","parse"],
+  ["text","-"],
+  ["identifier","integer"],
+  ["text"," ("],
+  ["identifier","prompt"],
+  ["text","-"],
+  ["identifier","read"],
+  ["text"," "],
+  ["string","\"Rating\""],
+  ["text",") :"],
+  ["identifier","junk"],
+  ["text","-"],
+  ["identifier","allowed"],
+  ["text"," "],
+  ["support.function","t"],
+  ["text",") "],
+  ["constant.numeric","0"],
+  ["text",")"]
+],[
+   "start",
+  ["text","  ("],
+  ["keyword.control","if"],
+  ["text"," "],
+  ["identifier","x"],
+  ["text"," ("],
+  ["support.function","format"],
+  ["text"," "],
+  ["support.function","t"],
+  ["text"," "],
+  ["string","\"yes\""],
+  ["text",") ("],
+  ["support.function","format"],
+  ["text"," "],
+  ["support.function","t"],
+  ["text"," "],
+  ["string","\"no\""],
+  ["text"," "],
+  ["constant.language","nil"],
+  ["text",") "],
+  ["comment",";and here comment"]
+],[
+   "start",
+  ["text","  ) "],
+  ["constant.numeric","0xFFLL"],
+  ["text"," "],
+  ["constant.numeric","-23ull"]
+],[
+   "start",
+  ["text","  "],
+  ["comment",";; second line comment"]
+],[
+   "start",
+  ["text","  '(+ "],
+  ["constant.numeric","1"],
+  ["text"," "],
+  ["constant.numeric","2"],
+  ["text",")"]
+],[
+   "start",
+  ["text","  ("],
+  ["identifier","defvar"],
+  ["text"," "],
+  ["punctuation.definition.variable.lisp","*"],
+  ["variable.other.global.lisp","lines"],
+  ["punctuation.definition.variable.lisp","*"],
+  ["text",")                "],
+  ["comment","; list of all lines"]
+],[
+   "start",
+  ["text","  ("],
+  ["identifier","position"],
+  ["text","-"],
+  ["keyword.control","if"],
+  ["text","-"],
+  ["identifier","not"],
+  ["text"," "],
+  ["punctuation.definition.constant.character.lisp","#"],
+  ["constant.character.lisp","'sys::whitespacep"],
+  ["text"," "],
+  ["identifier","line"],
+  ["text"," :"],
+  ["identifier","start"],
+  ["text"," "],
+  ["identifier","beg"],
+  ["text","))"]
+],[
+   "start",
+  ["text","  ("],
+  ["support.function","quote"],
+  ["text"," ("],
+  ["identifier","privet"],
+  ["text"," "],
+  ["constant.numeric","1"],
+  ["text"," "],
+  ["constant.numeric","2"],
+  ["text"," "],
+  ["constant.numeric","3"],
+  ["text","))"]
+],[
+   "start",
+  ["text","  '("],
+  ["identifier","hello"],
+  ["text"," "],
+  ["identifier","world"],
+  ["text",")"]
+],[
+   "start",
+  ["text","  (* "],
+  ["constant.numeric","5"],
+  ["text"," "],
+  ["constant.numeric","7"],
+  ["text",")"]
+],[
+   "start",
+  ["text","  ("],
+  ["constant.numeric","1"],
+  ["text"," "],
+  ["constant.numeric","2"],
+  ["text"," "],
+  ["constant.numeric","34"],
+  ["text"," "],
+  ["constant.numeric","5"],
+  ["text",")"]
+],[
+   "start",
+  ["text","  (:"],
+  ["identifier","use"],
+  ["text"," "],
+  ["string","\"aaaa\""],
+  ["text",")"]
+],[
+   "start",
+  ["text","  ("],
+  ["keyword.control","let"],
+  ["text"," (("],
+  ["identifier","x"],
+  ["text"," "],
+  ["constant.numeric","10"],
+  ["text",") ("],
+  ["identifier","y"],
+  ["text"," "],
+  ["constant.numeric","20"],
+  ["text","))"]
+],[
+   "start",
+  ["text","    ("],
+  ["identifier","print"],
+  ["text"," (+ "],
+  ["identifier","x"],
+  ["text"," "],
+  ["identifier","y"],
+  ["text","))"]
+],[
+   "start",
+  ["text","  ) "],
+  ["support.function","LAmbDa"]
+],[
+   "start"
+],[
+   "start",
+  ["text","  "],
+  ["string","\"asdad"],
+  ["constant.character.escape.lisp","\\0"],
+  ["string","eqweqe\""]
+]]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_livescript.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_livescript.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_livescript.json
new file mode 100644
index 0000000..c2bd83d
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_livescript.json
@@ -0,0 +1,6 @@
+[[
+   "start",
+  ["comment","# comment"]
+],[
+   "start"
+]]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_logiql.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_logiql.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_logiql.json
new file mode 100644
index 0000000..5f7eda4
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_logiql.json
@@ -0,0 +1,190 @@
+[[
+   "start",
+  ["comment.single","// ancestors"]
+],[
+   "start",
+  ["entity.name","parentof"],
+  ["text","("],
+  ["string","\"douglas\""],
+  ["keyword.other",","],
+  ["text"," "],
+  ["string","\"john\""],
+  ["text",")"],
+  ["keyword.end","."]
+],[
+   "start",
+  ["entity.name","parentof"],
+  ["text","("],
+  ["string","\"john\""],
+  ["keyword.other",","],
+  ["text"," "],
+  ["string","\"bob\""],
+  ["text",")"],
+  ["keyword.end","."]
+],[
+   "start",
+  ["entity.name","parentof"],
+  ["text","("],
+  ["string","\"bob\""],
+  ["keyword.other",","],
+  ["text"," "],
+  ["string","\"ebbon\""],
+  ["text",")"],
+  ["keyword.end","."]
+],[
+   "start"
+],[
+   "start",
+  ["entity.name","parentof"],
+  ["text","("],
+  ["string","\"douglas\""],
+  ["keyword.other",","],
+  ["text"," "],
+  ["string","\"jane\""],
+  ["text",")"],
+  ["keyword.end","."]
+],[
+   "start",
+  ["entity.name","parentof"],
+  ["text","("],
+  ["string","\"jane\""],
+  ["keyword.other",","],
+  ["text"," "],
+  ["string","\"jan\""],
+  ["text",")"],
+  ["keyword.end","."]
+],[
+   "start"
+],[
+   "start",
+  ["entity.name","ancestorof"],
+  ["text","("],
+  ["variable.parameter","A"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["variable.parameter","B"],
+  ["text",") "],
+  ["keyword.start","<-"],
+  ["text"," "],
+  ["entity.name","parentof"],
+  ["text","("],
+  ["variable.parameter","A"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["variable.parameter","B"],
+  ["text",")"],
+  ["keyword.end","."]
+],[
+   "start",
+  ["entity.name","ancestorof"],
+  ["text","("],
+  ["variable.parameter","A"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["variable.parameter","C"],
+  ["text",") "],
+  ["keyword.start","<-"],
+  ["text"," "],
+  ["entity.name","ancestorof"],
+  ["text","("],
+  ["variable.parameter","A"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["variable.parameter","B"],
+  ["text",")"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["entity.name","parentof"],
+  ["text","("],
+  ["variable.parameter","B"],
+  ["keyword.other",","],
+  ["variable.parameter","C"],
+  ["text",")"],
+  ["keyword.end","."]
+],[
+   "start"
+],[
+   "start",
+  ["entity.name","grandparentof"],
+  ["text","("],
+  ["variable.parameter","A"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["variable.parameter","B"],
+  ["text",") "],
+  ["keyword.start","<-"],
+  ["text"," "],
+  ["entity.name","parentof"],
+  ["text","("],
+  ["variable.parameter","A"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["variable.parameter","C"],
+  ["text",")"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["entity.name","parentof"],
+  ["text","("],
+  ["variable.parameter","C"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["variable.parameter","B"],
+  ["text",")"],
+  ["keyword.end","."]
+],[
+   "start"
+],[
+   "start",
+  ["entity.name","cousins"],
+  ["text","("],
+  ["variable.parameter","A"],
+  ["keyword.other",","],
+  ["variable.parameter","B"],
+  ["text",") "],
+  ["keyword.start","<-"],
+  ["text"," "],
+  ["entity.name","grandparentof"],
+  ["text","("],
+  ["variable.parameter","C"],
+  ["keyword.other",","],
+  ["variable.parameter","A"],
+  ["text",")"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["entity.name","grandparentof"],
+  ["text","("],
+  ["variable.parameter","C"],
+  ["keyword.other",","],
+  ["variable.parameter","B"],
+  ["text",")"],
+  ["keyword.end","."]
+],[
+   "start"
+],[
+   "start",
+  ["entity.name","parentof"],
+  ["text","["],
+  ["entity.name.type.logicblox","`arg"],
+  ["text","]("],
+  ["variable.parameter","A"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["variable.parameter","B"],
+  ["text",") "],
+  ["keyword.start","->"],
+  ["text"," "],
+  ["entity.name","int"],
+  ["text","["],
+  ["constant.numeric","32"],
+  ["text","]("],
+  ["variable.parameter","A"],
+  ["text",")"],
+  ["keyword.other",","],
+  ["text"," "],
+  ["keyword.other","!"],
+  ["entity.name","string"],
+  ["text","("],
+  ["variable.parameter","B"],
+  ["text",")"],
+  ["keyword.end","."]
+]]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lsl.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lsl.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lsl.json
new file mode 100644
index 0000000..83b7352
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lsl.json
@@ -0,0 +1,495 @@
+[[
+   "comment",
+  ["comment.block.lsl","/*"]
+],[
+   "comment",
+  ["comment.block.lsl","    Testing syntax highlighting"]
+],[
+   "comment",
+  ["comment.block.lsl","    of Ace Editor"]
+],[
+   "comment",
+  ["comment.block.lsl","    for the Linden Scripting Language"]
+],[
+   "start",
+  ["comment.block.lsl","*/"]
+],[
+   "start"
+],[
+   "start",
+  ["storage.type.lsl","integer"],
+  ["text.lsl"," "],
+  ["identifier","someIntNormal"],
+  ["text.lsl","       "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.numeric.lsl","3672"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["storage.type.lsl","integer"],
+  ["text.lsl"," "],
+  ["identifier","someIntHex"],
+  ["text.lsl","          "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.numeric.lsl","0x00000000"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["storage.type.lsl","integer"],
+  ["text.lsl"," "],
+  ["identifier","someIntMath"],
+  ["text.lsl","         "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.language.float.lsl","PI_BY_TWO"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start"
+],[
+   "start",
+  ["storage.type.lsl","integer"],
+  ["text.lsl"," "],
+  ["invalid.unimplemented.lsl","event"],
+  ["text.lsl","               "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.numeric.lsl","5673"],
+  ["punctuation.operator.lsl",";"],
+  ["text.lsl","                                             "],
+  ["comment.line.double-slash.lsl","// unimplemented reserved keyword!"]
+],[
+   "start"
+],[
+   "start",
+  ["storage.type.lsl","key"],
+  ["text.lsl"," "],
+  ["identifier","someKeyTexture"],
+  ["text.lsl","          "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.language.string.lsl","TEXTURE_DEFAULT"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["storage.type.lsl","string"],
+  ["text.lsl"," "],
+  ["identifier","someStringSpecial"],
+  ["text.lsl","    "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.language.string.lsl","EOF"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start"
+],[
+   "start",
+  ["identifier","some_user_defined_function_without_return_type"],
+  ["paren.lparen.lsl","("],
+  ["storage.type.lsl","string"],
+  ["text.lsl"," "],
+  ["identifier","inputAsString"],
+  ["paren.rparen.lsl",")"]
+],[
+   "start",
+  ["paren.lparen.lsl","{"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["support.function.lsl","llSay"],
+  ["paren.lparen.lsl","("],
+  ["constant.language.integer.lsl","PUBLIC_CHANNEL"],
+  ["punctuation.operator.lsl",","],
+  ["text.lsl"," "],
+  ["identifier","inputAsString"],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["paren.rparen.lsl","}"]
+],[
+   "start"
+],[
+   "start",
+  ["storage.type.lsl","string"],
+  ["text.lsl"," "],
+  ["identifier","user_defined_function_returning_a_string"],
+  ["paren.lparen.lsl","("],
+  ["storage.type.lsl","key"],
+  ["text.lsl"," "],
+  ["identifier","inputAsKey"],
+  ["paren.rparen.lsl",")"]
+],[
+   "start",
+  ["paren.lparen.lsl","{"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["keyword.control.lsl","return"],
+  ["text.lsl"," "],
+  ["paren.lparen.lsl","("],
+  ["storage.type.lsl","string"],
+  ["paren.rparen.lsl",")"],
+  ["identifier","inputAsKey"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["paren.rparen.lsl","}"]
+],[
+   "start"
+],[
+   "start",
+  ["entity.name.state.lsl","default"]
+],[
+   "start",
+  ["paren.lparen.lsl","{"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["support.function.event.lsl","state_entry"],
+  ["paren.lparen.lsl","("],
+  ["paren.rparen.lsl",")"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["paren.lparen.lsl","{"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["storage.type.lsl","key"],
+  ["text.lsl"," "],
+  ["identifier","someKey"],
+  ["text.lsl"," "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.language.string.lsl","NULL_KEY"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["identifier","someKey"],
+  ["text.lsl"," "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["support.function.lsl","llGetOwner"],
+  ["paren.lparen.lsl","("],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start"
+],[
+   "start",
+  ["text.lsl","        "],
+  ["storage.type.lsl","string"],
+  ["text.lsl"," "],
+  ["identifier","someString"],
+  ["text.lsl"," "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["identifier","user_defined_function_returning_a_string"],
+  ["paren.lparen.lsl","("],
+  ["identifier","someKey"],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start"
+],[
+   "start",
+  ["text.lsl","        "],
+  ["identifier","some_user_defined_function_without_return_type"],
+  ["paren.lparen.lsl","("],
+  ["identifier","someString"],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["paren.rparen.lsl","}"]
+],[
+   "start"
+],[
+   "start",
+  ["text.lsl","    "],
+  ["support.function.event.lsl","touch_start"],
+  ["paren.lparen.lsl","("],
+  ["storage.type.lsl","integer"],
+  ["text.lsl"," "],
+  ["identifier","num_detected"],
+  ["paren.rparen.lsl",")"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["paren.lparen.lsl","{"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["storage.type.lsl","list"],
+  ["text.lsl"," "],
+  ["identifier","agentsInRegion"],
+  ["text.lsl"," "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["support.function.lsl","llGetAgentList"],
+  ["paren.lparen.lsl","("],
+  ["constant.language.integer.lsl","AGENT_LIST_REGION"],
+  ["punctuation.operator.lsl",","],
+  ["text.lsl"," "],
+  ["paren.lparen.lsl","["],
+  ["paren.rparen.lsl","])"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["storage.type.lsl","integer"],
+  ["text.lsl"," "],
+  ["identifier","numOfAgents"],
+  ["text.lsl"," "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["support.function.lsl","llGetListLength"],
+  ["paren.lparen.lsl","("],
+  ["identifier","agentsInRegion"],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start"
+],[
+   "start",
+  ["text.lsl","        "],
+  ["storage.type.lsl","integer"],
+  ["text.lsl"," "],
+  ["identifier","index"],
+  ["punctuation.operator.lsl",";"],
+  ["text.lsl","                                                          "],
+  ["comment.line.double-slash.lsl","// defaults to 0"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["keyword.control.lsl","for"],
+  ["text.lsl"," "],
+  ["paren.lparen.lsl","("],
+  ["punctuation.operator.lsl",";"],
+  ["text.lsl"," "],
+  ["identifier","index"],
+  ["text.lsl"," "],
+  ["keyword.operator.lsl","<="],
+  ["text.lsl"," "],
+  ["identifier","numOfAgents"],
+  ["text.lsl"," "],
+  ["keyword.operator.lsl","-"],
+  ["text.lsl"," "],
+  ["constant.numeric.lsl","1"],
+  ["punctuation.operator.lsl",";"],
+  ["text.lsl"," "],
+  ["identifier","index"],
+  ["keyword.operator.lsl","++"],
+  ["paren.rparen.lsl",")"],
+  ["text.lsl","                               "],
+  ["comment.line.double-slash.lsl","// for each agent in region"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["paren.lparen.lsl","{"]
+],[
+   "start",
+  ["text.lsl","            "],
+  ["support.function.lsl","llRegionSayTo"],
+  ["paren.lparen.lsl","("],
+  ["support.function.lsl","llList2Key"],
+  ["paren.lparen.lsl","("],
+  ["identifier","agentsInRegion"],
+  ["punctuation.operator.lsl",","],
+  ["text.lsl"," "],
+  ["identifier","index"],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",","],
+  ["text.lsl"," "],
+  ["constant.language.integer.lsl","PUBLIC_CHANNEL"],
+  ["punctuation.operator.lsl",","],
+  ["text.lsl"," "],
+  ["string.quoted.double.lsl.start","\""],
+  ["string.quoted.double.lsl","Hello, Avatar!"],
+  ["string.quoted.double.lsl.end","\""],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["paren.rparen.lsl","}"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["paren.rparen.lsl","}"]
+],[
+   "start"
+],[
+   "start",
+  ["text.lsl","    "],
+  ["support.function.event.lsl","touch_end"],
+  ["paren.lparen.lsl","("],
+  ["storage.type.lsl","integer"],
+  ["text.lsl"," "],
+  ["identifier","num_detected"],
+  ["paren.rparen.lsl",")"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["paren.lparen.lsl","{"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["identifier","someIntNormal"],
+  ["text.lsl","       "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.numeric.lsl","3672"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["identifier","someIntHex"],
+  ["text.lsl","          "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.numeric.lsl","0x00000000"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["identifier","someIntMath"],
+  ["text.lsl","         "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.language.float.lsl","PI_BY_TWO"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start"
+],[
+   "start",
+  ["text.lsl","        "],
+  ["invalid.unimplemented.lsl","event"],
+  ["text.lsl","               "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.numeric.lsl","5673"],
+  ["punctuation.operator.lsl",";"],
+  ["text.lsl","                                             "],
+  ["comment.line.double-slash.lsl","// unimplemented reserved keyword!"]
+],[
+   "start"
+],[
+   "start",
+  ["text.lsl","        "],
+  ["identifier","someKeyTexture"],
+  ["text.lsl","      "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.language.string.lsl","TEXTURE_DEFAULT"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["identifier","someStringSpecial"],
+  ["text.lsl","   "],
+  ["keyword.operator.lsl","="],
+  ["text.lsl"," "],
+  ["constant.language.string.lsl","EOF"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start"
+],[
+   "start",
+  ["text.lsl","        "],
+  ["invalid.deprecated.lsl","llCloud"],
+  ["paren.lparen.lsl","("],
+  ["constant.language.vector.lsl","ZERO_VECTOR"],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",";"],
+  ["text.lsl","                                                   "],
+  ["comment.line.double-slash.lsl","// invalid deprecated function!"]
+],[
+   "start"
+],[
+   "start",
+  ["text.lsl","        "],
+  ["support.function.lsl","llWhisper"],
+  ["paren.lparen.lsl","("],
+  ["constant.language.integer.lsl","PUBLIC_CHANNEL"],
+  ["punctuation.operator.lsl",","],
+  ["text.lsl"," "],
+  ["string.quoted.double.lsl.start","\""],
+  ["string.quoted.double.lsl","Leaving "],
+  ["constant.language.escape.lsl","\\\""],
+  ["string.quoted.double.lsl","default"],
+  ["constant.language.escape.lsl","\\\""],
+  ["string.quoted.double.lsl"," now..."],
+  ["string.quoted.double.lsl.end","\""],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["entity.name.state.lsl","state other"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["paren.rparen.lsl","}"]
+],[
+   "start",
+  ["paren.rparen.lsl","}"]
+],[
+   "start"
+],[
+   "start",
+  ["entity.name.state.lsl","state other"]
+],[
+   "start",
+  ["paren.lparen.lsl","{"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["support.function.event.lsl","state_entry"],
+  ["paren.lparen.lsl","("],
+  ["paren.rparen.lsl",")"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["paren.lparen.lsl","{"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["support.function.lsl","llWhisper"],
+  ["paren.lparen.lsl","("],
+  ["constant.language.integer.lsl","PUBLIC_CHANNEL"],
+  ["punctuation.operator.lsl",","],
+  ["text.lsl"," "],
+  ["string.quoted.double.lsl.start","\""],
+  ["string.quoted.double.lsl","Entered "],
+  ["constant.language.escape.lsl","\\\""],
+  ["string.quoted.double.lsl","state other"],
+  ["constant.language.escape.lsl","\\\""],
+  ["string.quoted.double.lsl",", returning to "],
+  ["constant.language.escape.lsl","\\\""],
+  ["string.quoted.double.lsl","default"],
+  ["constant.language.escape.lsl","\\\""],
+  ["string.quoted.double.lsl"," again..."],
+  ["string.quoted.double.lsl.end","\""],
+  ["paren.rparen.lsl",")"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","        "],
+  ["entity.name.state.lsl","state default"],
+  ["punctuation.operator.lsl",";"]
+],[
+   "start",
+  ["text.lsl","    "],
+  ["paren.rparen.lsl","}"]
+],[
+   "start",
+  ["paren.rparen.lsl","}"]
+],[
+   "start"
+]]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lua.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lua.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lua.json
new file mode 100644
index 0000000..276b3ff
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lua.json
@@ -0,0 +1,348 @@
+[[
+   ["bracketedComment",2,"start"],
+  ["comment","--[[--"]
+],[
+   ["bracketedComment",2,"start"],
+  ["comment","num_args takes in 5.1 byte code and extracts the number of arguments"]
+],[
+   ["bracketedComment",2,"start"],
+  ["comment","from its function header."]
+],[
+   "start",
+  ["comment","--]]--"]
+],[
+   "start"
+],[
+   "start",
+  ["keyword","function"],
+  ["text"," "],
+  ["identifier","int"],
+  ["paren.lparen","("],
+  ["identifier","t"],
+  ["paren.rparen",")"]
+],[
+   "start",
+  ["text","\t"],
+  ["keyword","return"],
+  ["text"," "],
+  ["identifier","t"],
+  ["keyword.operator",":"],
+  ["support.function","byte"],
+  ["paren.lparen","("],
+  ["constant.numeric","1"],
+  ["paren.rparen",")"],
+  ["keyword.operator","+"],
+  ["identifier","t"],
+  ["keyword.operator",":"],
+  ["support.function","byte"],
+  ["paren.lparen","("],
+  ["constant.numeric","2"],
+  ["paren.rparen",")"],
+  ["keyword.operator","*"],
+  ["constant.numeric","0x100"],
+  ["keyword.operator","+"],
+  ["identifier","t"],
+  ["keyword.operator",":"],
+  ["support.function","byte"],
+  ["paren.lparen","("],
+  ["constant.numeric","3"],
+  ["paren.rparen",")"],
+  ["keyword.operator","*"],
+  ["constant.numeric","0x10000"],
+  ["keyword.operator","+"],
+  ["identifier","t"],
+  ["keyword.operator",":"],
+  ["support.function","byte"],
+  ["paren.lparen","("],
+  ["constant.numeric","4"],
+  ["paren.rparen",")"],
+  ["keyword.operator","*"],
+  ["constant.numeric","0x1000000"]
+],[
+   "start",
+  ["keyword","end"]
+],[
+   "start"
+],[
+   "start",
+  ["keyword","function"],
+  ["text"," "],
+  ["identifier","num_args"],
+  ["paren.lparen","("],
+  ["identifier","func"],
+  ["paren.rparen",")"]
+],[
+   "start",
+  ["text","\t"],
+  ["keyword","local"],
+  ["text"," "],
+  ["support.function","dump"],
+  ["text"," "],
+  ["keyword.operator","="],
+  ["text"," "],
+  ["constant.library","string"],
+  ["text","."],
+  ["support.function","dump"],
+  ["paren.lparen","("],
+  ["identifier","func"],
+  ["paren.rparen",")"]
+],[
+   "start",
+  ["text","\t"],
+  ["keyword","local"],
+  ["text"," "],
+  ["identifier","offset"],
+  ["text",", "],
+  ["identifier","cursor"],
+  ["text"," "],
+  ["keyword.operator","="],
+  ["text"," "],
+  ["identifier","int"],
+  ["paren.lparen","("],
+  ["support.function","dump"],
+  ["keyword.operator",":"],
+  ["support.function","sub"],
+  ["paren.lparen","("],
+  ["constant.numeric","13"],
+  ["paren.rparen","))"],
+  ["text",", "],
+  ["identifier","offset"],
+  ["text"," "],
+  ["keyword.operator","+"],
+  ["text"," "],
+  ["constant.numeric","26"]
+],[
+   "start",
+  ["text","\t"],
+  ["comment","--Get the params and var flag (whether there's a ... in the param)"]
+],[
+   "start",
+  ["text","\t"],
+  ["keyword","return"],
+  ["text"," "],
+  ["support.function","dump"],
+  ["keyword.operator",":"],
+  ["support.function","sub"],
+  ["paren.lparen","("],
+  ["identifier","cursor"],
+  ["paren.rparen",")"],
+  ["keyword.operator",":"],
+  ["support.function","byte"],
+  ["paren.lparen","("],
+  ["paren.rparen",")"],
+  ["text",", "],
+  ["support.function","dump"],
+  ["keyword.operator",":"],
+  ["support.function","sub"],
+  ["paren.lparen","("],
+  ["identifier","cursor"],
+  ["keyword.operator","+"],
+  ["constant.numeric","1"],
+  ["paren.rparen",")"],
+  ["keyword.operator",":"],
+  ["support.function","byte"],
+  ["paren.lparen","("],
+  ["paren.rparen",")"]
+],[
+   "start",
+  ["keyword","end"]
+],[
+   "start"
+],[
+   "start",
+  ["comment","-- Usage:"]
+],[
+   "start",
+  ["identifier","num_args"],
+  ["paren.lparen","("],
+  ["keyword","function"],
+  ["paren.lparen","("],
+  ["identifier","a"],
+  ["text",","],
+  ["identifier","b"],
+  ["text",","],
+  ["identifier","c"],
+  ["text",","],
+  ["identifier","d"],
+  ["text",", "],
+  ["keyword.operator","..."],
+  ["paren.rparen",")"],
+  ["text"," "],
+  ["keyword","end"],
+  ["paren.rparen",")"],
+  ["text"," "],
+  ["comment","-- return 4, 7"]
+],[
+   "start"
+],[
+   "start",
+  ["comment","-- Python styled string format operator"]
+],[
+   "start",
+  ["keyword","local"],
+  ["text"," "],
+  ["identifier","gm"],
+  ["text"," "],
+  ["keyword.operator","="],
+  ["text"," "],
+  ["constant.library","debug"],
+  ["text","."],
+  ["support.function","getmetatable"],
+  ["paren.lparen","("],
+  ["string","\"\""],
+  ["paren.rparen",")"]
+],[
+   "start"
+],[
+   "start",
+  ["identifier","gm"],
+  ["text","."],
+  ["support.function","__mod"],
+  ["keyword.operator","="],
+  ["keyword","function"],
+  ["paren.lparen","("],
+  ["identifier","self"],
+  ["text",", "],
+  ["identifier","other"],
+  ["paren.rparen",")"]
+],[
+   "start",
+  ["text","    "],
+  ["keyword","if"],
+  ["text"," "],
+  ["support.function","type"],
+  ["paren.lparen","("],
+  ["identifier","other"],
+  ["paren.rparen",")"],
+  ["text"," "],
+  ["keyword.operator","~="],
+  ["text"," "],
+  ["string","\"table\""],
+  ["text"," "],
+  ["keyword","then"],
+  ["text"," "],
+  ["identifier","other"],
+  ["text"," "],
+  ["keyword.operator","="],
+  ["text"," "],
+  ["paren.lparen","{"],
+  ["identifier","other"],
+  ["paren.rparen","}"],
+  ["text"," "],
+  ["keyword","end"]
+],[
+   "start",
+  ["text","    "],
+  ["keyword","for"],
+  ["text"," "],
+  ["identifier","i"],
+  ["text",","],
+  ["identifier","v"],
+  ["text"," "],
+  ["keyword","in"],
+  ["text"," "],
+  ["support.function","ipairs"],
+  ["paren.lparen","("],
+  ["identifier","other"],
+  ["paren.rparen",")"],
+  ["text"," "],
+  ["keyword","do"],
+  ["text"," "],
+  ["identifier","other"],
+  ["paren.lparen","["],
+  ["identifier","i"],
+  ["paren.rparen","]"],
+  ["text"," "],
+  ["keyword.operator","="],
+  ["text"," "],
+  ["support.function","tostring"],
+  ["paren.lparen","("],
+  ["identifier","v"],
+  ["paren.rparen",")"],
+  ["text"," "],
+  ["keyword","end"]
+],[
+   "start",
+  ["text","    "],
+  ["keyword","return"],
+  ["text"," "],
+  ["identifier","self"],
+  ["keyword.operator",":"],
+  ["support.function","format"],
+  ["paren.lparen","("],
+  ["support.function","unpack"],
+  ["paren.lparen","("],
+  ["identifier","other"],
+  ["paren.rparen","))"]
+],[
+   "start",
+  ["keyword","end"]
+],[
+   "start"
+],[
+   ["bracketedString",5,"start"],
+  ["support.function","print"],
+  ["paren.lparen","("],
+  ["comment","[===["]
+],[
+   ["bracketedString",5,"start"],
+  ["comment","    blah blah %s, (%d %d)"]
+],[
+   "start",
+  ["comment","]===]"],
+  ["keyword.operator","%"],
+  ["paren.lparen","{"],
+  ["string","\"blah\""],
+  ["text",", "],
+  ["identifier","num_args"],
+  ["paren.lparen","("],
+  ["identifier","int"],
+  ["paren.rparen",")})"]
+],[
+   "start"
+],[
+   ["bracketedComment",3,"start"],
+  ["comment","--[=[--"]
+],[
+   ["bracketedComment",3,"start"],
+  ["comment","table.maxn is deprecated, use # instead."]
+],[
+   "start",
+  ["comment","--]=]--"]
+],[
+   "start",
+  ["support.function","print"],
+  ["paren.lparen","("],
+  ["constant.library","table"],
+  ["text","."],
+  ["invalid.deprecated","maxn"],
+  ["paren.lparen","{"],
+  ["constant.numeric","1"],
+  ["text",","],
+  ["constant.numeric","2"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["constant.numeric","4"],
+  ["paren.rparen","]"],
+  ["keyword.operator","="],
+  ["constant.numeric","4"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["constant.numeric","8"],
+  ["paren.rparen","]"],
+  ["keyword.operator","="],
+  ["constant.numeric","8"],
+  ["paren.rparen",")"],
+  ["text"," "],
+  ["comment","-- outputs 8 instead of 2"]
+],[
+   "start"
+],[
+   "start",
+  ["support.function","print"],
+  ["paren.lparen","("],
+  ["constant.numeric","5"],
+  ["text"," "],
+  ["comment","--[[ blah ]]"],
+  ["paren.rparen",")"]
+]]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_luapage.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_luapage.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_luapage.json
new file mode 100644
index 0000000..3cee081
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_luapage.json
@@ -0,0 +1,633 @@
+[[
+   "doctype",
+  ["text",""],
+  ["punctuation.doctype.begin","<!"],
+  ["meta.tag.doctype","DOCTYPE"],
+  ["text"," "],
+  ["xml-pe","html"],
+  ["text"," "],
+  ["xml-pe","PUBLIC"],
+  ["text"," "],
+  ["string","\"-//W3C//DTD XHTML 1.0 Strict//EN\""]
+],[
+   "start",
+  ["text","   "],
+  ["string","\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\""],
+  ["punctuation.doctype.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","html"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   ["lua-bracketedComment",2,"lua-start"],
+  ["keyword","<%"],
+  ["text"," "],
+  ["comment","--[[--"]
+],[
+   ["lua-bracketedComment",2,"lua-start"],
+  ["comment","    index.lp from the Kepler Project's LuaDoc HTML doclet."]
+],[
+   ["lua-bracketedComment",2,"lua-start"],
+  ["comment","    http://keplerproject.github.com/luadoc/"]
+],[
+   "start",
+  ["comment","--]]"],
+  ["text"," "],
+  ["keyword","%>"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","head"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","    "],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","title"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","Reference"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","title"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","    "],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","link"],
+  ["text"," "],
+  ["entity.other.attribute-name","rel"],
+  ["keyword.operator.separator","="],
+  ["string","\"stylesheet\""],
+  ["text"," "],
+  ["entity.other.attribute-name","href"],
+  ["keyword.operator.separator","="],
+  ["string","\""],
+  ["keyword","<%="],
+  ["identifier","luadoc"],
+  ["text","."],
+  ["identifier","doclet"],
+  ["text","."],
+  ["identifier","html"],
+  ["text","."],
+  ["identifier","link"],
+  ["paren.lparen","("],
+  ["string","\"luadoc.css\""],
+  ["paren.rparen",")"],
+  ["keyword","%>"],
+  ["string","\""],
+  ["text"," "],
+  ["entity.other.attribute-name","type"],
+  ["keyword.operator.separator","="],
+  ["string","\"text/css\""],
+  ["text"," "],
+  ["meta.tag.punctuation.end","/>"]
+],[
+   "start",
+  ["text","\t"],
+  ["comment","<!--meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/-->"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","head"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","body"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","div"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"container\""],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","div"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"product\""],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","div"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"product_logo\""],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","div"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","div"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"product_name\""],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","big"],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","b"],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","b"],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","big"],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","div"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","div"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"product_description\""],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","div"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","div"],
+  ["meta.tag.punctuation.end",">"],
+  ["text"," "],
+  ["comment","<!-- id=\"product\" -->"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","div"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"main\""],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","div"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"navigation\""],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["keyword","<%="],
+  ["identifier","luadoc"],
+  ["text","."],
+  ["identifier","doclet"],
+  ["text","."],
+  ["identifier","html"],
+  ["text","."],
+  ["identifier","include"],
+  ["paren.lparen","("],
+  ["string","\"menu.lp\""],
+  ["text",", "],
+  ["paren.lparen","{"],
+  ["text"," "],
+  ["identifier","doc"],
+  ["keyword.operator","="],
+  ["identifier","doc"],
+  ["text"," "],
+  ["paren.rparen","})"],
+  ["keyword","%>"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","div"],
+  ["meta.tag.punctuation.end",">"],
+  ["text"," "],
+  ["comment","<!-- id=\"navigation\" -->"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","div"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"content\""],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+],[
+   "start"
+],[
+   "start",
+  ["keyword","<%if"],
+  ["text"," "],
+  ["keyword","not"],
+  ["text"," "],
+  ["identifier","options"],
+  ["text","."],
+  ["identifier","nomodules"],
+  ["text"," "],
+  ["keyword","and"],
+  ["text"," "],
+  ["keyword.operator","#"],
+  ["identifier","doc"],
+  ["text","."],
+  ["identifier","modules"],
+  ["text"," "],
+  ["keyword.operator",">"],
+  ["text"," "],
+  ["constant.numeric","0"],
+  ["text"," "],
+  ["keyword","then%>"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","Modules"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.table","table"],
+  ["text"," "],
+  ["entity.other.attribute-name","class"],
+  ["keyword.operator.separator","="],
+  ["string","\"module_list\""],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["comment","<!--<tr><td colspan=\"2\">Modules</td></tr>-->"]
+],[
+   "start",
+  ["keyword","<%for"],
+  ["text"," "],
+  ["identifier","_"],
+  ["text",", "],
+  ["identifier","modulename"],
+  ["text"," "],
+  ["keyword","in"],
+  ["text"," "],
+  ["support.function","ipairs"],
+  ["paren.lparen","("],
+  ["identifier","doc"],
+  ["text","."],
+  ["identifier","modules"],
+  ["paren.rparen",")"],
+  ["text"," "],
+  ["keyword","do%>"]
+],[
+   "start",
+  ["text","\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.table","tr"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.table","td"],
+  ["text"," "],
+  ["entity.other.attribute-name","class"],
+  ["keyword.operator.separator","="],
+  ["string","\"name\""],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.anchor","a"],
+  ["text"," "],
+  ["entity.other.attribute-name","href"],
+  ["keyword.operator.separator","="],
+  ["string","\""],
+  ["keyword","<%="],
+  ["identifier","luadoc"],
+  ["text","."],
+  ["identifier","doclet"],
+  ["text","."],
+  ["identifier","html"],
+  ["text","."],
+  ["identifier","module_link"],
+  ["paren.lparen","("],
+  ["identifier","modulename"],
+  ["text",", "],
+  ["identifier","doc"],
+  ["paren.rparen",")"],
+  ["keyword","%>"],
+  ["string","\""],
+  ["meta.tag.punctuation.end",">"],
+  ["keyword","<%="],
+  ["identifier","modulename"],
+  ["keyword","%>"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.anchor","a"],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.table","td"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.table","td"],
+  ["text"," "],
+  ["entity.other.attribute-name","class"],
+  ["keyword.operator.separator","="],
+  ["string","\"summary\""],
+  ["meta.tag.punctuation.end",">"],
+  ["keyword","<%="],
+  ["identifier","doc"],
+  ["text","."],
+  ["identifier","modules"],
+  ["paren.lparen","["],
+  ["identifier","modulename"],
+  ["paren.rparen","]"],
+  ["text","."],
+  ["identifier","summary"],
+  ["keyword","%>"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.table","td"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.table","tr"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["keyword","<%end%>"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.table","table"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["keyword","<%end%>"]
+],[
+   "start"
+],[
+   "start"
+],[
+   "start"
+],[
+   "start",
+  ["keyword","<%if"],
+  ["text"," "],
+  ["keyword","not"],
+  ["text"," "],
+  ["identifier","options"],
+  ["text","."],
+  ["identifier","nofiles"],
+  ["text"," "],
+  ["keyword","and"],
+  ["text"," "],
+  ["keyword.operator","#"],
+  ["identifier","doc"],
+  ["text","."],
+  ["identifier","files"],
+  ["text"," "],
+  ["keyword.operator",">"],
+  ["text"," "],
+  ["constant.numeric","0"],
+  ["text"," "],
+  ["keyword","then%>"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","Files"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","h2"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.table","table"],
+  ["text"," "],
+  ["entity.other.attribute-name","class"],
+  ["keyword.operator.separator","="],
+  ["string","\"file_list\""],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["comment","<!--<tr><td colspan=\"2\">Files</td></tr>-->"]
+],[
+   "start",
+  ["keyword","<%for"],
+  ["text"," "],
+  ["identifier","_"],
+  ["text",", "],
+  ["identifier","filepath"],
+  ["text"," "],
+  ["keyword","in"],
+  ["text"," "],
+  ["support.function","ipairs"],
+  ["paren.lparen","("],
+  ["identifier","doc"],
+  ["text","."],
+  ["identifier","files"],
+  ["paren.rparen",")"],
+  ["text"," "],
+  ["keyword","do%>"]
+],[
+   "start",
+  ["text","\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.table","tr"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.table","td"],
+  ["text"," "],
+  ["entity.other.attribute-name","class"],
+  ["keyword.operator.separator","="],
+  ["string","\"name\""],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.anchor","a"],
+  ["text"," "],
+  ["entity.other.attribute-name","href"],
+  ["keyword.operator.separator","="],
+  ["string","\""],
+  ["keyword","<%="],
+  ["identifier","luadoc"],
+  ["text","."],
+  ["identifier","doclet"],
+  ["text","."],
+  ["identifier","html"],
+  ["text","."],
+  ["identifier","file_link"],
+  ["paren.lparen","("],
+  ["identifier","filepath"],
+  ["paren.rparen",")"],
+  ["keyword","%>"],
+  ["string","\""],
+  ["meta.tag.punctuation.end",">"],
+  ["keyword","<%="],
+  ["identifier","filepath"],
+  ["keyword","%>"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.anchor","a"],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.table","td"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.table","td"],
+  ["text"," "],
+  ["entity.other.attribute-name","class"],
+  ["keyword.operator.separator","="],
+  ["string","\"summary\""],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.table","td"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.table","tr"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["keyword","<%end%>"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.table","table"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["keyword","<%end%>"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","div"],
+  ["meta.tag.punctuation.end",">"],
+  ["text"," "],
+  ["comment","<!-- id=\"content\" -->"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","div"],
+  ["meta.tag.punctuation.end",">"],
+  ["text"," "],
+  ["comment","<!-- id=\"main\" -->"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","div"],
+  ["text"," "],
+  ["entity.other.attribute-name","id"],
+  ["keyword.operator.separator","="],
+  ["string","\"about\""],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["text","\t"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.anchor","a"],
+  ["text"," "],
+  ["entity.other.attribute-name","href"],
+  ["keyword.operator.separator","="],
+  ["string","\"http://validator.w3.org/check?uri=referer\""],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name.image","img"],
+  ["text"," "],
+  ["entity.other.attribute-name","src"],
+  ["keyword.operator.separator","="],
+  ["string","\"http://www.w3.org/Icons/valid-xhtml10\""],
+  ["text"," "],
+  ["entity.other.attribute-name","alt"],
+  ["keyword.operator.separator","="],
+  ["string","\"Valid XHTML 1.0!\""],
+  ["text"," "],
+  ["entity.other.attribute-name","height"],
+  ["keyword.operator.separator","="],
+  ["string","\"31\""],
+  ["text"," "],
+  ["entity.other.attribute-name","width"],
+  ["keyword.operator.separator","="],
+  ["string","\"88\""],
+  ["text"," "],
+  ["meta.tag.punctuation.end","/>"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name.anchor","a"],
+  ["meta.tag.punctuation.end",">"],
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","p"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","div"],
+  ["meta.tag.punctuation.end",">"],
+  ["text"," "],
+  ["comment","<!-- id=\"about\" -->"]
+],[
+   "start"
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","div"],
+  ["meta.tag.punctuation.end",">"],
+  ["text"," "],
+  ["comment","<!-- id=\"container\" -->"],
+  ["text","\t"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","body"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start",
+  ["meta.tag.punctuation.begin","</"],
+  ["meta.tag.name","html"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "start"
+]]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lucene.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lucene.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lucene.json
new file mode 100644
index 0000000..1f6d298
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_lucene.json
@@ -0,0 +1,92 @@
+[[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["keyword.operator","AND"],
+  ["text"," as keyword"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["keyword.operator","OR"],
+  ["text"," as keyword"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["keyword.operator","NOT"],
+  ["text"," as keyword"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["string","\"hello this is dog\""],
+  ["text"," as string"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["constant.character.negation","-"],
+  ["string","\"hello this is dog\""],
+  ["text"," as negation with string"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["constant.character.proximity","~100"],
+  ["text"," as text with proximity"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["string","\"hello this is dog\""],
+  ["constant.character.proximity","~100"],
+  ["text"," as string with proximity"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["keyword","raw:"],
+  ["string","\"hello this is dog\""],
+  ["text"," as keyword"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["keyword","raw:"],
+  ["text","foo as\"keyword'"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["string","\"(\""],
+  ["text"," as opening parenthesis"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises "],
+  ["string","\")\""],
+  ["text"," as closing parenthesis"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises foo"],
+  ["constant.character.asterisk","*"],
+  ["text"," as text with asterisk"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises foo"],
+  ["constant.character.interro","?"],
+  ["text"," as text with interro"]
+],[
+   "start",
+  ["keyword","test:"],
+  ["text"," recognises single word as text"]
+],[
+   "start",
+  ["text"," foo"]
+],[
+   "start",
+  ["text"," "]
+]]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_markdown.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_markdown.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_markdown.json
new file mode 100644
index 0000000..3c0db62
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_markdown.json
@@ -0,0 +1,114 @@
+[[
+   "start",
+  ["text","test: header 1 "]
+],[
+   "start",
+  ["markup.heading.1","#"],
+  ["heading","f"]
+],[
+   "start",
+  ["text","test: header 2"]
+],[
+   "start",
+  ["markup.heading.2","##"],
+  ["heading"," foo"]
+],[
+   "start",
+  ["text","test: header ends with ' #'"]
+],[
+   "start",
+  ["markup.heading.1","#"],
+  ["heading"," # # "]
+],[
+   "start",
+  ["text","test: header ends with '#'"]
+],[
+   "start",
+  ["markup.heading.1","#"],
+  ["heading","foo# "]
+],[
+   "start",
+  ["text","test: 6+ #s is not a valid header"]
+],[
+   "start",
+  ["text","####### foo"]
+],[
+   "start",
+  ["text","test: # followed be only space is not a valid header"]
+],[
+   "start",
+  ["text","# "]
+],[
+   "start",
+  ["text","test: only space between #s is not a valid header"]
+],[
+   "start",
+  ["text","#  #"]
+],[
+   "allowBlock"
+],[
+   "start",
+  ["markup.heading.1","#"],
+  ["heading"," test links  "],
+  ["text","["],
+  ["string","Cloud9 IDE"],
+  ["text","]("],
+  ["markup.underline","http://www.c9.io/"],
+  ["text",")"],
+  ["heading"," #"]
+],[
+   "listblock",
+  ["markup.list","* "],
+  ["text","["],
+  ["string","demo"],
+  ["text","]("],
+  ["markup.underline","http://ajaxorg.github.com/ace/"],
+  ["text",")"],
+  ["list"," "],
+  ["text","["],
+  ["string","+"],
+  ["text","]("],
+  ["markup.underline","escape(\\) "],
+  ["text",")"],
+  ["list"," "],
+  ["text","["],
+  ["string","+"],
+  ["text","]("],
+  ["markup.underline","a"],
+  ["string"," \"title\""],
+  ["text",")"],
+  ["list"," "],
+  ["text","["],
+  ["string","+"],
+  ["text","]("],
+  ["markup.underline","a"],
+  ["string"," \"space\" "],
+  ["text",")"]
+],[
+   "listblock",
+  ["markup.list","* "],
+  ["list","usually "],
+  ["string","*work*"],
+  ["list"," fine ("],
+  ["string","_em_"],
+  ["list",")"]
+],[
+   "listblock",
+  ["list","in lists"]
+],[
+   "start"
+],[
+   "start",
+  ["text","in plain text "],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","b"],
+  ["meta.tag.punctuation.end",">"],
+  ["text","http://ace.ajaxorg.com"],
+  ["meta.tag.punctuation.begin","<"],
+  ["meta.tag.name","b"],
+  ["meta.tag.punctuation.end",">"]
+],[
+   "allowBlock"
+],[
+   "start"
+]]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9abd128c/src/fauxton/assets/js/libs/ace/mode/_test/tokens_mushcode.json
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/ace/mode/_test/tokens_mushcode.json b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_mushcode.json
new file mode 100644
index 0000000..9f8e7cc
--- /dev/null
+++ b/src/fauxton/assets/js/libs/ace/mode/_test/tokens_mushcode.json
@@ -0,0 +1,790 @@
+[[
+   "start",
+  ["text","@"],
+  ["support.function","create"],
+  ["text"," "],
+  ["identifier","phone"]
+],[
+   "start",
+  ["text","&"],
+  ["identifier","pickup"],
+  ["text"," "],
+  ["identifier","phone"],
+  ["keyword.operator","="],
+  ["identifier","$pick"],
+  ["text"," "],
+  ["identifier","up"],
+  ["text",":@"],
+  ["support.function","ifelse"],
+  ["text"," "],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","is"],
+  ["text",","],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","mode"],
+  ["paren.rparen",")"],
+  ["text",","],
+  ["identifier","ICC"],
+  ["paren.rparen",")]"],
+  ["keyword.operator","="],
+  ["paren.lparen","{"],
+  ["text","@"],
+  ["support.function","pemit"],
+  ["text"," "],
+  ["keyword.operator","%#="],
+  ["identifier","You"],
+  ["text"," "],
+  ["support.function","pick"],
+  ["text"," "],
+  ["identifier","up"],
+  ["text"," "],
+  ["identifier","the"],
+  ["text"," "],
+  ["paren.lparen","["],
+  ["support.function","fullname"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["paren.rparen",")]"],
+  ["text","."],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["text",","],
+  ["identifier","PHONER"],
+  ["text",":"],
+  ["keyword.operator","%#"],
+  ["paren.rparen",")]"],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["text",","],
+  ["identifier","MODE"],
+  ["text",":"],
+  ["identifier","CIP"],
+  ["paren.rparen",")]"],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","(["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","INCOMING"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["identifier","CONNECTED"],
+  ["text",":"],
+  ["paren.lparen","["],
+  ["support.function","num"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["paren.rparen",")])]"],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["text",","],
+  ["identifier","CONNECTED"],
+  ["text",":"],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","INCOMING"],
+  ["paren.rparen",")])]"],
+  ["variable","%r"],
+  ["paren.lparen","["],
+  ["support.function","showpicture"],
+  ["paren.lparen","("],
+  ["identifier","PICPICKUP"],
+  ["paren.rparen",")]"],
+  ["variable","%r"],
+  ["identifier","Use"],
+  ["text"," '"],
+  ["paren.lparen","["],
+  ["identifier","color"],
+  ["paren.lparen","("],
+  ["identifier","green"],
+  ["text",","],
+  ["identifier","black"],
+  ["text",","],
+  ["identifier","psay"],
+  ["text"," "],
+  ["keyword.operator","<"],
+  ["identifier","message"],
+  ["keyword.operator",">"],
+  ["paren.rparen",")]"],
+  ["text","' "],
+  ["paren.lparen","("],
+  ["support.function","or"],
+  ["text"," '"],
+  ["paren.lparen","["],
+  ["identifier","color"],
+  ["paren.lparen","("],
+  ["identifier","green"],
+  ["text",","],
+  ["identifier","black"],
+  ["text",","],
+  ["identifier","p"],
+  ["text"," "],
+  ["keyword.operator","<"],
+  ["identifier","message"],
+  ["keyword.operator",">"],
+  ["paren.rparen",")]"],
+  ["text","'"],
+  ["paren.rparen",")"],
+  ["text"," "],
+  ["identifier","to"],
+  ["text"," "],
+  ["identifier","talk"],
+  ["text"," "],
+  ["identifier","into"],
+  ["text"," "],
+  ["identifier","the"],
+  ["text"," "],
+  ["identifier","phone"],
+  ["text",".;@"],
+  ["support.function","oemit"],
+  ["text"," "],
+  ["keyword.operator","%#="],
+  ["variable","%N"],
+  ["text"," "],
+  ["identifier","picks"],
+  ["text"," "],
+  ["identifier","up"],
+  ["text"," "],
+  ["identifier","the"],
+  ["text"," "],
+  ["paren.lparen","["],
+  ["support.function","fullname"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["paren.rparen",")]"],
+  ["text","."],
+  ["paren.rparen","}"],
+  ["text",","],
+  ["paren.lparen","{"],
+  ["text","@"],
+  ["support.function","pemit"],
+  ["text"," "],
+  ["keyword.operator","%#="],
+  ["identifier","You"],
+  ["text"," "],
+  ["support.function","pick"],
+  ["text"," "],
+  ["identifier","up"],
+  ["text"," "],
+  ["identifier","the"],
+  ["text"," "],
+  ["identifier","phone"],
+  ["text"," "],
+  ["identifier","but"],
+  ["text"," "],
+  ["identifier","no"],
+  ["text"," "],
+  ["identifier","one"],
+  ["text"," "],
+  ["identifier","is"],
+  ["text"," "],
+  ["identifier","there"],
+  ["text",". "],
+  ["identifier","You"],
+  ["text"," "],
+  ["identifier","hear"],
+  ["text"," "],
+  ["identifier","a"],
+  ["text"," "],
+  ["identifier","dialtone"],
+  ["text"," "],
+  ["support.function","and"],
+  ["text"," "],
+  ["identifier","then"],
+  ["text"," "],
+  ["identifier","hang"],
+  ["text"," "],
+  ["identifier","up"],
+  ["text",". "],
+  ["paren.lparen","["],
+  ["support.function","play"],
+  ["paren.lparen","("],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","DIALTONE"],
+  ["paren.rparen","))]"],
+  ["text",";@"],
+  ["support.function","oemit"],
+  ["text"," "],
+  ["keyword.operator","%#="],
+  ["variable","%N"],
+  ["text"," "],
+  ["identifier","picks"],
+  ["text"," "],
+  ["identifier","up"],
+  ["text"," "],
+  ["identifier","the"],
+  ["text"," "],
+  ["identifier","phone"],
+  ["text",", "],
+  ["identifier","but"],
+  ["text"," "],
+  ["identifier","no"],
+  ["text"," "],
+  ["identifier","one"],
+  ["text"," "],
+  ["identifier","is"],
+  ["text"," "],
+  ["identifier","on"],
+  ["text"," "],
+  ["identifier","the"],
+  ["text"," "],
+  ["identifier","other"],
+  ["text"," "],
+  ["identifier","end"],
+  ["text","."],
+  ["paren.rparen","}"]
+],[
+   "start",
+  ["text","&"],
+  ["identifier","ringfun"],
+  ["text"," "],
+  ["identifier","phone"],
+  ["keyword.operator","="],
+  ["paren.lparen","["],
+  ["support.function","ifelse"],
+  ["paren.lparen","("],
+  ["support.function","eq"],
+  ["paren.lparen","("],
+  ["support.function","comp"],
+  ["paren.lparen","(["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["identifier","off"],
+  ["paren.rparen",")"],
+  ["text",","],
+  ["constant.numeric","0"],
+  ["paren.rparen",")"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["identifier","color"],
+  ["paren.lparen","("],
+  ["identifier","black"],
+  ["text",","],
+  ["identifier","cyan"],
+  ["text",","],
+  ["identifier","INCOMING"],
+  ["text"," "],
+  ["identifier","CALL"],
+  ["text"," "],
+  ["identifier","FROM"],
+  ["text"," "],
+  ["variable","%1"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","play"],
+  ["paren.lparen","(["],
+  ["support.function","switch"],
+  ["paren.lparen","(["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["constant.numeric","1"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone1"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["constant.numeric","2"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone2"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["constant.numeric","3"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone3"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["constant.numeric","4"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone4"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["constant.numeric","5"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone5"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["constant.numeric","6"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone6"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["constant.numeric","7"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone7"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["constant.numeric","8"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone8"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["constant.numeric","9"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","ringtone9"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["identifier","custom"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","customtone"],
+  ["paren.rparen",")]"],
+  ["text",","],
+  ["identifier","vibrate"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%0"],
+  ["keyword.operator","/"],
+  ["identifier","vibrate"],
+  ["paren.rparen",")])])]"]
+],[
+   "start",
+  ["text","&"],
+  ["identifier","ringloop"],
+  ["text"," "],
+  ["identifier","phone"],
+  ["keyword.operator","="],
+  ["text","@"],
+  ["support.function","switch"],
+  ["text"," "],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","ringstate"],
+  ["paren.rparen",")]"],
+  ["keyword.operator","="],
+  ["constant.numeric","1"],
+  ["text",","],
+  ["paren.lparen","{"],
+  ["text","@"],
+  ["support.function","emit"],
+  ["text"," "],
+  ["paren.lparen","["],
+  ["support.function","setq"],
+  ["paren.lparen","("],
+  ["identifier","q"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","connecting"],
+  ["paren.rparen",")])]"],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["text",","],
+  ["identifier","rangs"],
+  ["text",":"],
+  ["constant.numeric","0"],
+  ["paren.rparen",")]"],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["text",","],
+  ["identifier","mode"],
+  ["text",":"],
+  ["identifier","WFC"],
+  ["paren.rparen",")]"],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["text",","],
+  ["identifier","INCOMING"],
+  ["text",":"],
+  ["paren.rparen",")]"],
+  ["text",";@"],
+  ["support.function","ifelse"],
+  ["text"," "],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["keyword.operator","/"],
+  ["identifier","HASVMB"],
+  ["paren.rparen",")]"],
+  ["keyword.operator","="],
+  ["paren.lparen","{"],
+  ["text","@"],
+  ["support.function","tr"],
+  ["text"," "],
+  ["identifier","me"],
+  ["keyword.operator","/"],
+  ["identifier","ROUTEVMB"],
+  ["keyword.operator","="],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","connecting"],
+  ["paren.rparen",")]"],
+  ["text",";"],
+  ["paren.rparen","}"],
+  ["text",","],
+  ["paren.lparen","{"],
+  ["text","@"],
+  ["support.function","pemit"],
+  ["text"," "],
+  ["keyword.operator","%#="],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","MSGCNC"],
+  ["paren.rparen",")]"],
+  ["text",";"],
+  ["paren.rparen","}}"],
+  ["text",","],
+  ["constant.numeric","2"],
+  ["text",","],
+  ["paren.lparen","{"],
+  ["text","@"],
+  ["support.function","pemit"],
+  ["text"," "],
+  ["keyword.operator","%#="],
+  ["identifier","The"],
+  ["text"," "],
+  ["identifier","call"],
+  ["text"," "],
+  ["identifier","is"],
+  ["text"," "],
+  ["identifier","connected"],
+  ["text","."],
+  ["paren.lparen","["],
+  ["support.function","setq"],
+  ["paren.lparen","("],
+  ["identifier","q"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","CONNECTING"],
+  ["paren.rparen",")])]"],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["text",","],
+  ["identifier","CONNECTED"],
+  ["text",":"],
+  ["variable","%qq"],
+  ["paren.rparen",")]"],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["text",","],
+  ["identifier","CONNECTED"],
+  ["text",":"],
+  ["paren.lparen","["],
+  ["support.function","num"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["paren.rparen",")])]"],
+  ["paren.lparen","["],
+  ["support.function","set"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["text",","],
+  ["identifier","MODE"],
+  ["text",":"],
+  ["identifier","CIP"],
+  ["paren.rparen",")]"],
+  ["text",";@"],
+  ["support.function","tr"],
+  ["text"," "],
+  ["identifier","me"],
+  ["keyword.operator","/"],
+  ["identifier","ciploop"],
+  ["text",";@"],
+  ["support.function","tr"],
+  ["text"," "],
+  ["variable","%qq"],
+  ["keyword.operator","/"],
+  ["identifier","ciploop"],
+  ["text",";"],
+  ["paren.rparen","}"],
+  ["text",","],
+  ["constant.numeric","3"],
+  ["text",","],
+  ["paren.lparen","{"],
+  ["text","@"],
+  ["support.function","emit"],
+  ["text"," "],
+  ["identifier","On"],
+  ["text"," "],
+  ["paren.lparen","["],
+  ["support.function","fullname"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["paren.rparen",")]"],
+  ["text","'"],
+  ["support.function","s"],
+  ["text"," "],
+  ["identifier","earpiece"],
+  ["text"," "],
+  ["identifier","you"],
+  ["text"," "],
+  ["identifier","hear"],
+  ["text"," "],
+  ["identifier","a"],
+  ["text"," "],
+  ["identifier","ringing"],
+  ["text"," "],
+  ["identifier","sound"],
+  ["text","."],
+  ["paren.lparen","["],
+  ["support.function","play"],
+  ["paren.lparen","("],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","LINETONE"],
+  ["paren.rparen","))]"],
+  ["text",";@"],
+  ["support.function","tr"],
+  ["text"," "],
+  ["identifier","me"],
+  ["keyword.operator","/"],
+  ["identifier","ringhere"],
+  ["text",";@"],
+  ["identifier","increment"],
+  ["text"," "],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","connecting"],
+  ["paren.rparen",")]"],
+  ["keyword.operator","/"],
+  ["identifier","RANGS"],
+  ["text",";@"],
+  ["identifier","wait"],
+  ["text"," "],
+  ["constant.numeric","5"],
+  ["keyword.operator","="],
+  ["paren.lparen","{"],
+  ["text","@"],
+  ["support.function","tr"],
+  ["text"," "],
+  ["identifier","me"],
+  ["keyword.operator","/"],
+  ["identifier","ringloop"],
+  ["paren.rparen","}"],
+  ["text",";"],
+  ["paren.rparen","}"],
+  ["text",","],
+  ["constant.numeric","4"],
+  ["text",","],
+  ["paren.lparen","{"],
+  ["paren.rparen","}"]
+],[
+   "start",
+  ["text","&"],
+  ["identifier","ringstate"],
+  ["text"," "],
+  ["identifier","phone"],
+  ["keyword.operator","="],
+  ["paren.lparen","["],
+  ["support.function","setq"],
+  ["paren.lparen","("],
+  ["identifier","q"],
+  ["text",","],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","connecting"],
+  ["paren.rparen","))]"],
+  ["paren.lparen","["],
+  ["support.function","setq"],
+  ["paren.lparen","("],
+  ["constant.numeric","1"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","gt"],
+  ["paren.lparen","("],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["keyword.operator","/"],
+  ["identifier","rangs"],
+  ["paren.rparen",")"],
+  ["text",","],
+  ["support.function","sub"],
+  ["paren.lparen","("],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["keyword.operator","/"],
+  ["identifier","rings"],
+  ["paren.rparen",")"],
+  ["text",","],
+  ["constant.numeric","1"],
+  ["paren.rparen","))])]"],
+  ["paren.lparen","["],
+  ["support.function","setq"],
+  ["paren.lparen","("],
+  ["constant.numeric","2"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","and"],
+  ["paren.lparen","("],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","is"],
+  ["text",","],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["keyword.operator","/"],
+  ["identifier","MODE"],
+  ["paren.rparen",")"],
+  ["text",","],
+  ["identifier","CIP"],
+  ["paren.rparen",")"],
+  ["text",","],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","is"],
+  ["text",","],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["keyword.operator","/"],
+  ["identifier","INCOMING"],
+  ["paren.rparen",")"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","num"],
+  ["paren.lparen","("],
+  ["identifier","me"],
+  ["paren.rparen",")]))]"],
+  ["paren.lparen","["],
+  ["support.function","setq"],
+  ["paren.lparen","("],
+  ["constant.numeric","3"],
+  ["text",","],
+  ["paren.lparen","["],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["identifier","is"],
+  ["text",","],
+  ["support.function","u"],
+  ["paren.lparen","("],
+  ["variable","%qq"],
+  ["keyword.operator","/"],
+  ["identifier","MODE"],
+  ["paren.rparen",")"],
+  ["text",","],
+  ["identifier","ICC"],
+  ["paren.rparen",")])]"],
+  ["paren.lparen","["],
+  ["support.function","ifelse"],
+  ["paren.lparen","("],
+  ["variable","%q1"],
+  ["text",","],
+  ["constant.numeric","1"],
+  ["text",","],
+  ["support.function","ifelse"],
+  ["paren.lparen","("],
+  ["variable","%q2"],
+  ["text",","],
+  ["constant.numeric","2"],
+  ["text",","],
+  ["support.function","ifelse"],
+  ["paren.lparen","("],
+  ["variable","%q3"],
+  ["text",","],
+  ["constant.numeric","3"],
+  ["text",","],
+  ["constant.numeric","4"],
+  ["paren.rparen",")))]"]
+],[
+   "start",
+  ["text",";"],
+  ["identifier","comment"]
+],[
+   "start",
+  ["text","@@"],
+  ["paren.lparen","("],
+  ["identifier","comment"],
+  ["paren.rparen",")"]
+],[
+   "start",
+  ["keyword","say"],
+  ["text"," "],
+  ["paren.lparen","["],
+  ["support.function","time"],
+  ["paren.lparen","("],
+  ["paren.rparen",")]"]
+],[
+   "start"
+]]
\ No newline at end of file