lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scad.json in gollum-3.1.2 vs lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scad.json in gollum-3.1.3

- old
+ new

@@ -1,267 +1,194 @@ -[ - { - "state": "start", - "data": [ - [ "comment", "// ace can highlight scad!" ] - ] - }, - { - "state": "start", - "data": [ - [ "keyword", "module" ], - [ "text", " " ], - [ "identifier", "Element" ], - [ "paren.lparen", "(" ], - [ "identifier", "xpos" ], - [ "text", ", " ], - [ "identifier", "ypos" ], - [ "text", ", " ], - [ "identifier", "zpos" ], - [ "paren.rparen", ")" ], - [ "paren.lparen", "{" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t" ], - [ "identifier", "translate" ], - [ "paren.lparen", "(" ], - [ "paren.lparen", "[" ], - [ "identifier", "xpos" ], - [ "text", "," ], - [ "identifier", "ypos" ], - [ "text", "," ], - [ "identifier", "zpos" ], - [ "paren.rparen", "]" ], - [ "paren.rparen", ")" ], - [ "paren.lparen", "{" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t\t" ], - [ "identifier", "union" ], - [ "paren.lparen", "(" ], - [ "paren.rparen", ")" ], - [ "paren.lparen", "{" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t\t\t" ], - [ "identifier", "cube" ], - [ "paren.lparen", "(" ], - [ "paren.lparen", "[" ], - [ "constant.numeric", "10" ], - [ "text", "," ], - [ "constant.numeric", "10" ], - [ "text", "," ], - [ "constant.numeric", "4" ], - [ "paren.rparen", "]" ], - [ "text", "," ], - [ "identifier", "true" ], - [ "paren.rparen", ")" ], - [ "text", ";" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t\t\t" ], - [ "identifier", "cylinder" ], - [ "paren.lparen", "(" ], - [ "constant.numeric", "10" ], - [ "text", "," ], - [ "constant.numeric", "15" ], - [ "text", "," ], - [ "constant.numeric", "5" ], - [ "paren.rparen", ")" ], - [ "text", ";" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t\t\t" ], - [ "identifier", "translate" ], - [ "paren.lparen", "(" ], - [ "paren.lparen", "[" ], - [ "constant.numeric", "0" ], - [ "text", "," ], - [ "constant.numeric", "0" ], - [ "text", "," ], - [ "constant.numeric", "10" ], - [ "paren.rparen", "]" ], - [ "paren.rparen", ")" ], - [ "identifier", "sphere" ], - [ "paren.lparen", "(" ], - [ "constant.numeric", "5" ], - [ "paren.rparen", ")" ], - [ "text", ";" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t\t" ], - [ "paren.rparen", "}" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t" ], - [ "paren.rparen", "}" ] - ] - }, - { - "state": "start", - "data": [ - [ "paren.rparen", "}" ] - ] - }, - { - "state": "start", - "data": [] - }, - { - "state": "start", - "data": [ - [ "identifier", "union" ], - [ "paren.lparen", "(" ], - [ "paren.rparen", ")" ], - [ "paren.lparen", "{" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t" ], - [ "keyword", "for" ], - [ "paren.lparen", "(" ], - [ "identifier", "i" ], - [ "keyword.operator", "=" ], - [ "paren.lparen", "[" ], - [ "constant.numeric", "0" ], - [ "text", ":" ], - [ "constant.numeric", "30" ], - [ "paren.rparen", "]" ], - [ "paren.rparen", ")" ], - [ "paren.lparen", "{" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t\t# " ], - [ "identifier", "Element" ], - [ "paren.lparen", "(" ], - [ "constant.numeric", "0" ], - [ "text", "," ], - [ "constant.numeric", "0" ], - [ "text", "," ], - [ "constant.numeric", "0" ], - [ "paren.rparen", ")" ], - [ "text", ";" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t\t" ], - [ "identifier", "Element" ], - [ "paren.lparen", "(" ], - [ "constant.numeric", "15" ], - [ "keyword.operator", "*" ], - [ "identifier", "i" ], - [ "text", "," ], - [ "constant.numeric", "0" ], - [ "text", "," ], - [ "constant.numeric", "0" ], - [ "paren.rparen", ")" ], - [ "text", ";" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t" ], - [ "paren.rparen", "}" ] - ] - }, - { - "state": "start", - "data": [ - [ "paren.rparen", "}" ] - ] - }, - { - "state": "start", - "data": [] - }, - { - "state": "start", - "data": [ - [ "keyword", "for" ], - [ "text", " " ], - [ "paren.lparen", "(" ], - [ "identifier", "i" ], - [ "text", " " ], - [ "keyword.operator", "=" ], - [ "text", " " ], - [ "paren.lparen", "[" ], - [ "constant.numeric", "3" ], - [ "text", ", " ], - [ "constant.numeric", "5" ], - [ "text", ", " ], - [ "constant.numeric", "7" ], - [ "text", ", " ], - [ "constant.numeric", "11" ], - [ "paren.rparen", "]" ], - [ "paren.rparen", ")" ], - [ "paren.lparen", "{" ] - ] - }, - { - "state": "start", - "data": [ - [ "text", "\t" ], - [ "identifier", "rotate" ], - [ "paren.lparen", "(" ], - [ "paren.lparen", "[" ], - [ "identifier", "i" ], - [ "keyword.operator", "*" ], - [ "constant.numeric", "10" ], - [ "text", "," ], - [ "constant.numeric", "0" ], - [ "text", "," ], - [ "constant.numeric", "0" ], - [ "paren.rparen", "]" ], - [ "paren.rparen", ")" ], - [ "identifier", "scale" ], - [ "paren.lparen", "(" ], - [ "paren.lparen", "[" ], - [ "constant.numeric", "1" ], - [ "text", "," ], - [ "constant.numeric", "1" ], - [ "text", "," ], - [ "identifier", "i" ], - [ "paren.rparen", "]" ], - [ "paren.rparen", ")" ], - [ "identifier", "cube" ], - [ "paren.lparen", "(" ], - [ "constant.numeric", "10" ], - [ "paren.rparen", ")" ], - [ "text", ";" ] - ] - }, - { - "state": "start", - "data": [ - [ "paren.rparen", "}" ] - ] - } -] +[[ + "start", + ["comment","// ace can highlight scad!"] +],[ + "start", + ["keyword","module"], + ["text"," "], + ["identifier","Element"], + ["paren.lparen","("], + ["identifier","xpos"], + ["text",", "], + ["identifier","ypos"], + ["text",", "], + ["identifier","zpos"], + ["paren.rparen",")"], + ["paren.lparen","{"] +],[ + "start", + ["text","\t"], + ["identifier","translate"], + ["paren.lparen","(["], + ["identifier","xpos"], + ["text",","], + ["identifier","ypos"], + ["text",","], + ["identifier","zpos"], + ["paren.rparen","])"], + ["paren.lparen","{"] +],[ + "start", + ["text","\t\t"], + ["identifier","union"], + ["paren.lparen","("], + ["paren.rparen",")"], + ["paren.lparen","{"] +],[ + "start", + ["text","\t\t\t"], + ["identifier","cube"], + ["paren.lparen","(["], + ["constant.numeric","10"], + ["text",","], + ["constant.numeric","10"], + ["text",","], + ["constant.numeric","4"], + ["paren.rparen","]"], + ["text",","], + ["identifier","true"], + ["paren.rparen",")"], + ["text",";"] +],[ + "start", + ["text","\t\t\t"], + ["identifier","cylinder"], + ["paren.lparen","("], + ["constant.numeric","10"], + ["text",","], + ["constant.numeric","15"], + ["text",","], + ["constant.numeric","5"], + ["paren.rparen",")"], + ["text",";"] +],[ + "start", + ["text","\t\t\t"], + ["identifier","translate"], + ["paren.lparen","(["], + ["constant.numeric","0"], + ["text",","], + ["constant.numeric","0"], + ["text",","], + ["constant.numeric","10"], + ["paren.rparen","])"], + ["identifier","sphere"], + ["paren.lparen","("], + ["constant.numeric","5"], + ["paren.rparen",")"], + ["text",";"] +],[ + "start", + ["text","\t\t"], + ["paren.rparen","}"] +],[ + "start", + ["text","\t"], + ["paren.rparen","}"] +],[ + "start", + ["paren.rparen","}"] +],[ + "start" +],[ + "start", + ["identifier","union"], + ["paren.lparen","("], + ["paren.rparen",")"], + ["paren.lparen","{"] +],[ + "start", + ["text","\t"], + ["keyword","for"], + ["paren.lparen","("], + ["identifier","i"], + ["keyword.operator","="], + ["paren.lparen","["], + ["constant.numeric","0"], + ["text",":"], + ["constant.numeric","30"], + ["paren.rparen","])"], + ["paren.lparen","{"] +],[ + "start", + ["text","\t\t# "], + ["identifier","Element"], + ["paren.lparen","("], + ["constant.numeric","0"], + ["text",","], + ["constant.numeric","0"], + ["text",","], + ["constant.numeric","0"], + ["paren.rparen",")"], + ["text",";"] +],[ + "start", + ["text","\t\t"], + ["identifier","Element"], + ["paren.lparen","("], + ["constant.numeric","15"], + ["keyword.operator","*"], + ["identifier","i"], + ["text",","], + ["constant.numeric","0"], + ["text",","], + ["constant.numeric","0"], + ["paren.rparen",")"], + ["text",";"] +],[ + "start", + ["text","\t"], + ["paren.rparen","}"] +],[ + "start", + ["paren.rparen","}"] +],[ + "start" +],[ + "start", + ["keyword","for"], + ["text"," "], + ["paren.lparen","("], + ["identifier","i"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["paren.lparen","["], + ["constant.numeric","3"], + ["text",", "], + ["constant.numeric","5"], + ["text",", "], + ["constant.numeric","7"], + ["text",", "], + ["constant.numeric","11"], + ["paren.rparen","])"], + ["paren.lparen","{"] +],[ + "start", + ["text","\t"], + ["identifier","rotate"], + ["paren.lparen","(["], + ["identifier","i"], + ["keyword.operator","*"], + ["constant.numeric","10"], + ["text",","], + ["constant.numeric","0"], + ["text",","], + ["constant.numeric","0"], + ["paren.rparen","])"], + ["identifier","scale"], + ["paren.lparen","(["], + ["constant.numeric","1"], + ["text",","], + ["constant.numeric","1"], + ["text",","], + ["identifier","i"], + ["paren.rparen","])"], + ["identifier","cube"], + ["paren.lparen","("], + ["constant.numeric","10"], + ["paren.rparen",")"], + ["text",";"] +],[ + "start", + ["paren.rparen","}"] +]] \ No newline at end of file