add tests
This commit is contained in:
parent
869e1f86aa
commit
61591eee5d
12 changed files with 3683 additions and 0 deletions
39
lib/ace/mode/_test/tokens_ada.json
Normal file
39
lib/ace/mode/_test/tokens_ada.json
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
[[
|
||||
"start",
|
||||
["keyword","with"],
|
||||
["text"," "],
|
||||
["identifier","Ada"],
|
||||
["text","."],
|
||||
["identifier","Text_IO"],
|
||||
["text","; "],
|
||||
["keyword","use"],
|
||||
["text"," "],
|
||||
["identifier","Ada"],
|
||||
["text","."],
|
||||
["identifier","Text_IO"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["keyword","procedure"],
|
||||
["text"," "],
|
||||
["identifier","Hello"],
|
||||
["text"," "],
|
||||
["keyword","is"]
|
||||
],[
|
||||
"start",
|
||||
["keyword","begin"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","Put_Line"],
|
||||
["paren.lparen","("],
|
||||
["string","\"Hello, world!\""],
|
||||
["paren.rparen",")"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["keyword","end"],
|
||||
["text"," "],
|
||||
["identifier","Hello"],
|
||||
["text",";"]
|
||||
]]
|
||||
4
lib/ace/mode/_test/tokens_cobol.json
Normal file
4
lib/ace/mode/_test/tokens_cobol.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[[
|
||||
"start",
|
||||
["identifier","TODO"]
|
||||
]]
|
||||
111
lib/ace/mode/_test/tokens_d.json
Normal file
111
lib/ace/mode/_test/tokens_d.json
Normal file
|
|
@ -0,0 +1,111 @@
|
|||
[[
|
||||
"start",
|
||||
["comment.shebang","#!/usr/bin/env rdmd"]
|
||||
],[
|
||||
"start",
|
||||
["comment","// Computes average line length for standard input."]
|
||||
],[
|
||||
"start",
|
||||
["keyword","import"],
|
||||
["text"," "],
|
||||
["variable.module","std.stdio"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["keyword.type","void"],
|
||||
["text"," "],
|
||||
["identifier","main"],
|
||||
["paren.lparen","("],
|
||||
["paren.rparen",")"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.type","ulong"],
|
||||
["text"," "],
|
||||
["identifier","lines"],
|
||||
["text"," "],
|
||||
["keyword.operator","="],
|
||||
["text"," "],
|
||||
["constant.numeric","0"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.type","double"],
|
||||
["text"," "],
|
||||
["identifier","sumLength"],
|
||||
["text"," "],
|
||||
["keyword.operator","="],
|
||||
["text"," "],
|
||||
["constant.numeric","0"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.control","foreach"],
|
||||
["text"," "],
|
||||
["paren.lparen","("],
|
||||
["identifier","line"],
|
||||
["punctuation.operator",";"],
|
||||
["text"," "],
|
||||
["identifier","stdin"],
|
||||
["punctuation.operator","."],
|
||||
["identifier","byLine"],
|
||||
["paren.lparen","("],
|
||||
["paren.rparen","))"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.operator","++"],
|
||||
["identifier","lines"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","sumLength"],
|
||||
["text"," "],
|
||||
["keyword.operator","+="],
|
||||
["text"," "],
|
||||
["identifier","line"],
|
||||
["punctuation.operator","."],
|
||||
["identifier","length"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["paren.rparen","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","writeln"],
|
||||
["paren.lparen","("],
|
||||
["string","\"Average line length: \""],
|
||||
["punctuation.operator",","]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","lines"],
|
||||
["text"," "],
|
||||
["keyword.operator","?"],
|
||||
["text"," "],
|
||||
["identifier","sumLength"],
|
||||
["text"," "],
|
||||
["keyword.operator","/"],
|
||||
["text"," "],
|
||||
["identifier","lines"],
|
||||
["text"," "],
|
||||
["punctuation.operator",":"],
|
||||
["text"," "],
|
||||
["constant.numeric","0"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["paren.rparen","}"]
|
||||
]]
|
||||
81
lib/ace/mode/_test/tokens_handlebars.json
Normal file
81
lib/ace/mode/_test/tokens_handlebars.json
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
[[
|
||||
"start",
|
||||
["comment.start","{{!--"],
|
||||
["comment"," Ace + :-}} "],
|
||||
["comment.end","--}}"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["meta.tag.punctuation.begin","<"],
|
||||
["meta.tag.name","div"],
|
||||
["text"," "],
|
||||
["entity.other.attribute-name","id"],
|
||||
["keyword.operator.separator","="],
|
||||
["string","\"comments\""],
|
||||
["meta.tag.punctuation.end",">"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type.start","{{#"],
|
||||
["variable.parameter","each"],
|
||||
["text"," "],
|
||||
["variable.parameter","comments"],
|
||||
["storage.type.end","}}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["meta.tag.punctuation.begin","<"],
|
||||
["meta.tag.name","h2"],
|
||||
["meta.tag.punctuation.end",">"],
|
||||
["meta.tag.punctuation.begin","<"],
|
||||
["meta.tag.name.anchor","a"],
|
||||
["text"," "],
|
||||
["entity.other.attribute-name","href"],
|
||||
["keyword.operator.separator","="],
|
||||
["string","\"/posts/"],
|
||||
["storage.type.start","{{"],
|
||||
["text","../"],
|
||||
["variable.parameter","permalink"],
|
||||
["storage.type.end","}}"],
|
||||
["string","#"],
|
||||
["storage.type.start","{{"],
|
||||
["variable.parameter","id"],
|
||||
["storage.type.end","}}"],
|
||||
["string","\""],
|
||||
["meta.tag.punctuation.end",">"],
|
||||
["storage.type.start","{{"],
|
||||
["variable.parameter","title"],
|
||||
["storage.type.end","}}"],
|
||||
["meta.tag.punctuation.begin","</"],
|
||||
["meta.tag.name.anchor","a"],
|
||||
["meta.tag.punctuation.end",">"],
|
||||
["meta.tag.punctuation.begin","</"],
|
||||
["meta.tag.name","h2"],
|
||||
["meta.tag.punctuation.end",">"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["meta.tag.punctuation.begin","<"],
|
||||
["meta.tag.name","div"],
|
||||
["meta.tag.punctuation.end",">"],
|
||||
["storage.type.start","{{"],
|
||||
["variable.parameter","body"],
|
||||
["storage.type.end","}}"],
|
||||
["meta.tag.punctuation.begin","</"],
|
||||
["meta.tag.name","div"],
|
||||
["meta.tag.punctuation.end",">"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type.start","{{/"],
|
||||
["variable.parameter","each"],
|
||||
["storage.type.end","}}"]
|
||||
],[
|
||||
"start",
|
||||
["meta.tag.punctuation.begin","</"],
|
||||
["meta.tag.name","div"],
|
||||
["meta.tag.punctuation.end",">"]
|
||||
],[
|
||||
"start"
|
||||
]]
|
||||
1786
lib/ace/mode/_test/tokens_jack.json
Normal file
1786
lib/ace/mode/_test/tokens_jack.json
Normal file
File diff suppressed because it is too large
Load diff
257
lib/ace/mode/_test/tokens_mel.json
Normal file
257
lib/ace/mode/_test/tokens_mel.json
Normal file
|
|
@ -0,0 +1,257 @@
|
|||
[[
|
||||
"start",
|
||||
["comment.line.double-slash.mel","//"],
|
||||
["punctuation.definition.comment.mel"," animated duplicates, instances script"]
|
||||
],[
|
||||
"start",
|
||||
["meta.function.mel","proc"],
|
||||
["keyword.other.mel"," "],
|
||||
["storage.type.mel","animatedDuplication"],
|
||||
["entity.name.function.mel"," ("],
|
||||
["punctuation.section.function.mel","("],
|
||||
["meta.function.mel","int $rangeStart, int $rangeEnd, int $numOfDuplicates, int $duplicateOrInstance"],
|
||||
["punctuation.section.function.mel",")"],
|
||||
"proc animatedDuplication (int $rangeStart, int $rangeEnd, int $numOfDuplicates, int $duplicateOrInstance)"
|
||||
],[
|
||||
"start",
|
||||
["text","{"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type.mel","int"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","range_start"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","="],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","rangeStart"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type.mel","int"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","range_end"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","="],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","rangeEnd"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type.mel","int"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","num_of_duplicates"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","="],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","numOfDuplicates"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type.mel","int"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","step_size"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","="],
|
||||
["text"," ("],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","range_end"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","-"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","range_start"],
|
||||
["text",") "],
|
||||
["keyword.operator.symbolic.mel","/"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","num_of_duplicates"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type.mel","int"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","i"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","="],
|
||||
["text"," "],
|
||||
["constant.numeric.mel","0"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type.mel","int"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","temp"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["support.function.mel","currentTime"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","range_start"],
|
||||
["text","; "],
|
||||
["comment.line.double-slash.mel","//"],
|
||||
["punctuation.definition.comment.mel"," set to range start"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type.mel","string"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","selectedObjects"],
|
||||
["text","[]; "],
|
||||
["comment.line.double-slash.mel","//"],
|
||||
["punctuation.definition.comment.mel"," to store selected objects"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","selectedObjects"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","="],
|
||||
["text"," `"],
|
||||
["support.function.mel","ls"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","-"],
|
||||
["text","sl`; "],
|
||||
["comment.line.double-slash.mel","//"],
|
||||
["punctuation.definition.comment.mel"," store selected objects"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["support.function.mel","select"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","selectedObjects"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.control.mel","while"],
|
||||
["text"," ("],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","i"],
|
||||
["text"," <"],
|
||||
["keyword.operator.symbolic.mel","="],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","num_of_duplicates"],
|
||||
["text",")"]
|
||||
],[
|
||||
"start",
|
||||
["text"," {"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","temp"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","="],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","range_start"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","+"],
|
||||
["text"," ("],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","step_size"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","*"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","i"],
|
||||
["text",");"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["support.function.mel","currentTime"],
|
||||
["text"," ("],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","temp"],
|
||||
["text",");"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["comment.line.double-slash.mel","//"],
|
||||
["punctuation.definition.comment.mel"," seleced the objects to duplicate or instance"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["support.function.mel","select"],
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","selectedObjects"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.control.mel","if"],
|
||||
["text","("],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","duplicateOrInstance"],
|
||||
["text"," "],
|
||||
["keyword.operator.symbolic.mel","=="],
|
||||
["text"," "],
|
||||
["constant.numeric.mel","0"],
|
||||
["text",")"]
|
||||
],[
|
||||
"start",
|
||||
["text"," {"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["support.function.mel","duplicate"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," }"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.control.mel","else"]
|
||||
],[
|
||||
"start",
|
||||
["text"," {"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["support.function.mel","instance"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," }"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["variable.other.mel","$"],
|
||||
["punctuation.definition.variable.mel","i"],
|
||||
["keyword.operator.symbolic.mel","++"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," }"]
|
||||
],[
|
||||
"start",
|
||||
["text","}"]
|
||||
]]
|
||||
136
lib/ace/mode/_test/tokens_protobuf.json
Normal file
136
lib/ace/mode/_test/tokens_protobuf.json
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
[[
|
||||
"start",
|
||||
["keyword.declaration.protobuf","message"],
|
||||
["text"," "],
|
||||
["identifier","Point"],
|
||||
["text"," {"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.declaration.protobuf","required"],
|
||||
["text"," "],
|
||||
["support.type","int32"],
|
||||
["text"," "],
|
||||
["identifier","x"],
|
||||
["text"," "],
|
||||
["keyword.operator.assignment.protobuf","="],
|
||||
["text"," "],
|
||||
["constant.numeric","1"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.declaration.protobuf","required"],
|
||||
["text"," "],
|
||||
["support.type","int32"],
|
||||
["text"," "],
|
||||
["identifier","y"],
|
||||
["text"," "],
|
||||
["keyword.operator.assignment.protobuf","="],
|
||||
["text"," "],
|
||||
["constant.numeric","2"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.declaration.protobuf","optional"],
|
||||
["text"," "],
|
||||
["support.type","string"],
|
||||
["text"," "],
|
||||
["identifier","label"],
|
||||
["text"," "],
|
||||
["keyword.operator.assignment.protobuf","="],
|
||||
["text"," "],
|
||||
["constant.numeric","3"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text","}"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["keyword.declaration.protobuf","message"],
|
||||
["text"," "],
|
||||
["identifier","Line"],
|
||||
["text"," {"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.declaration.protobuf","required"],
|
||||
["text"," "],
|
||||
["identifier","Point"],
|
||||
["text"," "],
|
||||
["identifier","start"],
|
||||
["text"," "],
|
||||
["keyword.operator.assignment.protobuf","="],
|
||||
["text"," "],
|
||||
["constant.numeric","1"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.declaration.protobuf","required"],
|
||||
["text"," "],
|
||||
["identifier","Point"],
|
||||
["text"," "],
|
||||
["identifier","end"],
|
||||
["text"," "],
|
||||
["keyword.operator.assignment.protobuf","="],
|
||||
["text"," "],
|
||||
["constant.numeric","2"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.declaration.protobuf","optional"],
|
||||
["text"," "],
|
||||
["support.type","string"],
|
||||
["text"," "],
|
||||
["identifier","label"],
|
||||
["text"," "],
|
||||
["keyword.operator.assignment.protobuf","="],
|
||||
["text"," "],
|
||||
["constant.numeric","3"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text","}"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["keyword.declaration.protobuf","message"],
|
||||
["text"," "],
|
||||
["identifier","Polyline"],
|
||||
["text"," {"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.declaration.protobuf","repeated"],
|
||||
["text"," "],
|
||||
["identifier","Point"],
|
||||
["text"," "],
|
||||
["identifier","point"],
|
||||
["text"," "],
|
||||
["keyword.operator.assignment.protobuf","="],
|
||||
["text"," "],
|
||||
["constant.numeric","1"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword.declaration.protobuf","optional"],
|
||||
["text"," "],
|
||||
["support.type","string"],
|
||||
["text"," "],
|
||||
["identifier","label"],
|
||||
["text"," "],
|
||||
["keyword.operator.assignment.protobuf","="],
|
||||
["text"," "],
|
||||
["constant.numeric","2"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text","}"]
|
||||
]]
|
||||
276
lib/ace/mode/_test/tokens_sjs.json
Normal file
276
lib/ace/mode/_test/tokens_sjs.json
Normal file
|
|
@ -0,0 +1,276 @@
|
|||
[[
|
||||
"start",
|
||||
["storage.type","var"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"],
|
||||
["text"," "],
|
||||
["identifier","each"],
|
||||
["punctuation.operator",","],
|
||||
["text"," "],
|
||||
["identifier","map"],
|
||||
["text"," "],
|
||||
["paren.rparen","}"],
|
||||
["text"," "],
|
||||
["keyword.operator","="],
|
||||
["text"," "],
|
||||
["identifier","require"],
|
||||
["paren.lparen","("],
|
||||
["string","'sjs:sequence'"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["storage.type","var"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"],
|
||||
["text"," "],
|
||||
["keyword","get"],
|
||||
["text"," "],
|
||||
["paren.rparen","}"],
|
||||
["text"," "],
|
||||
["keyword.operator","="],
|
||||
["text"," "],
|
||||
["identifier","require"],
|
||||
["paren.lparen","("],
|
||||
["string","'sjs:http'"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["storage.type","function"],
|
||||
["text"," "],
|
||||
["entity.name.function","foo"],
|
||||
["paren.lparen","("],
|
||||
["variable.parameter","items"],
|
||||
["punctuation.operator",", "],
|
||||
["variable.parameter","nada"],
|
||||
["paren.rparen",")"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["storage.type","var"],
|
||||
["text"," "],
|
||||
["identifier","component"],
|
||||
["text"," "],
|
||||
["keyword.operator","="],
|
||||
["text"," "],
|
||||
["paren.lparen","{"],
|
||||
["text"," "],
|
||||
["identifier","name"],
|
||||
["punctuation.operator",":"],
|
||||
["text"," "],
|
||||
["string","\"Ace\""],
|
||||
["punctuation.operator",","],
|
||||
["text"," "],
|
||||
["identifier","role"],
|
||||
["punctuation.operator",":"],
|
||||
["text"," "],
|
||||
["string","\"Editor\""],
|
||||
["text"," "],
|
||||
["paren.rparen","}"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
["qqstring","no_regex"],
|
||||
["text"," "],
|
||||
["storage.type","console"],
|
||||
["punctuation.operator","."],
|
||||
["support.function.firebug","log"],
|
||||
["paren.lparen","("],
|
||||
["string","\""]
|
||||
],[
|
||||
["qqstring","no_regex"],
|
||||
["string"," Welcome, "],
|
||||
["paren.lparen","#{"],
|
||||
["identifier","component"],
|
||||
["text","."],
|
||||
["identifier","name"],
|
||||
["paren.rparen","}"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["string"," \""],
|
||||
["punctuation.operator","."],
|
||||
["identifier","trim"],
|
||||
["paren.lparen","("],
|
||||
["paren.rparen","))"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
["no_regex"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["identifier","logging"],
|
||||
["punctuation.operator","."],
|
||||
["identifier","debug"],
|
||||
["paren.lparen","("],
|
||||
["string","`Component added: "],
|
||||
["paren.lparen","$"],
|
||||
["identifier","String"],
|
||||
["paren.lparen","("],
|
||||
["identifier","component"],
|
||||
["paren.rparen",")"],
|
||||
["string"," ("],
|
||||
["paren.lparen","${"],
|
||||
["identifier","component"],
|
||||
["paren.rparen","}"],
|
||||
["string",")`"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
["no_regex"]
|
||||
],[
|
||||
["bstring","no_regex"],
|
||||
["text"," "],
|
||||
["storage.type","console"],
|
||||
["punctuation.operator","."],
|
||||
["support.function.firebug","log"],
|
||||
["paren.lparen","("],
|
||||
["string","`"]
|
||||
],[
|
||||
["string_interp","string_interp","bstring","no_regex"],
|
||||
["string"," Welcome, {"],
|
||||
["paren.lparen","${"],
|
||||
["storage.type","function"],
|
||||
["text","() "],
|
||||
["paren.lparen","{"]
|
||||
],[
|
||||
["string_interp","string_interp","bstring","no_regex"],
|
||||
["text"," "],
|
||||
["keyword","return"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"],
|
||||
["text"," "],
|
||||
["identifier","x"],
|
||||
["text",": "],
|
||||
["constant.numeric","1"],
|
||||
["text",", "],
|
||||
["identifier","y"],
|
||||
["text",": "],
|
||||
["string","\"why?}\""],
|
||||
["paren.rparen","}"],
|
||||
["text",";"]
|
||||
],[
|
||||
["bstring","no_regex"],
|
||||
["text"," "],
|
||||
["paren.rparen","}"],
|
||||
["text","()"],
|
||||
["paren.rparen","}"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["string"," `"],
|
||||
["punctuation.operator","."],
|
||||
["identifier","trim"],
|
||||
["paren.lparen","("],
|
||||
["paren.rparen","))"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
["no_regex"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["keyword","waitfor"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["identifier","items"],
|
||||
["text"," "],
|
||||
["keyword.operator",".."],
|
||||
["text"," "],
|
||||
["identifier","each"],
|
||||
["punctuation.operator","."],
|
||||
["identifier","par"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"],
|
||||
["text"," "],
|
||||
["paren.rparen","|"],
|
||||
["variable.parameter","item"],
|
||||
["paren.rparen","|"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["keyword","get"],
|
||||
["paren.lparen","("],
|
||||
["identifier","item"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["paren.rparen","}"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["paren.rparen","}"],
|
||||
["text"," "],
|
||||
["keyword","and"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["storage.type","var"],
|
||||
["text"," "],
|
||||
["identifier","lengths"],
|
||||
["text"," "],
|
||||
["keyword.operator","="],
|
||||
["text"," "],
|
||||
["identifier","items"],
|
||||
["text"," "],
|
||||
["keyword.operator",".."],
|
||||
["text"," "],
|
||||
["identifier","map"],
|
||||
["paren.lparen","("],
|
||||
["identifier","i"],
|
||||
["text"," "],
|
||||
["keyword.operator","->"],
|
||||
["text"," "],
|
||||
["identifier","i"],
|
||||
["punctuation.operator","."],
|
||||
["support.constant","length"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["paren.rparen","}"],
|
||||
["text"," "],
|
||||
["keyword","or"],
|
||||
["text"," "],
|
||||
["paren.lparen","{"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["variable.language","hold"],
|
||||
["paren.lparen","("],
|
||||
["constant.numeric","1500"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["keyword","throw"],
|
||||
["text"," "],
|
||||
["keyword","new"],
|
||||
["text"," "],
|
||||
["variable.language","Error"],
|
||||
["paren.lparen","("],
|
||||
["string","\"timed out\""],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["text"," "],
|
||||
["paren.rparen","}"]
|
||||
],[
|
||||
["no_regex"],
|
||||
["paren.rparen","}"],
|
||||
["text","\t"],
|
||||
["comment","// Real Tab."]
|
||||
],[
|
||||
["no_regex"]
|
||||
]]
|
||||
287
lib/ace/mode/_test/tokens_soy_template.json
Normal file
287
lib/ace/mode/_test/tokens_soy_template.json
Normal file
|
|
@ -0,0 +1,287 @@
|
|||
[[
|
||||
"punctuation.definition.comment.begin.soy1",
|
||||
["punctuation.definition.comment.begin.soy","/**"]
|
||||
],[
|
||||
"punctuation.definition.comment.begin.soy1",
|
||||
["comment.block.documentation.soy"," * Greets a person using \"Hello\" by default."]
|
||||
],[
|
||||
"punctuation.definition.comment.begin.soy1",
|
||||
["comment.block.documentation.soy"," * "],
|
||||
["support.type.soy","@param"],
|
||||
["text"," "],
|
||||
["variable.parameter.soy","name"],
|
||||
["comment.block.documentation.soy"," The name of the person."]
|
||||
],[
|
||||
"punctuation.definition.comment.begin.soy1",
|
||||
["comment.block.documentation.soy"," * "],
|
||||
["support.type.soy","@param?"],
|
||||
["text"," "],
|
||||
["variable.parameter.soy","greetingWord"],
|
||||
["comment.block.documentation.soy"," Optional greeting word to use instead of \"Hello\"."]
|
||||
],[
|
||||
"start",
|
||||
["comment.block.documentation.soy"," "],
|
||||
["punctuation.definition.comment.end.soy","*/"]
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","template"],
|
||||
["text"," "],
|
||||
["entity.name.function.soy",".helloName"],
|
||||
["meta.tag.template.soy"," #eee"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","if"],
|
||||
["meta.tag.if.soy"," "],
|
||||
["keyword.operator.soy","not"],
|
||||
["meta.tag.if.soy"," "],
|
||||
["variable.other.soy","$greetingWord"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," Hello "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["variable.other.soy","$name"],
|
||||
["punctuation.definition.tag.end.soy","}"],
|
||||
["text","!"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["text","else"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["variable.other.soy","$greetingWord"],
|
||||
["punctuation.definition.tag.end.soy","}"],
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["variable.other.soy","$name"],
|
||||
["punctuation.definition.tag.end.soy","}"],
|
||||
["text","!"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{/"],
|
||||
["entity.name.tag.soy","if"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{/"],
|
||||
["meta.tag.template.soy","template"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"punctuation.definition.comment.begin.soy1",
|
||||
["punctuation.definition.comment.begin.soy","/**"]
|
||||
],[
|
||||
"punctuation.definition.comment.begin.soy1",
|
||||
["comment.block.documentation.soy"," * Greets a person and optionally a list of other people."]
|
||||
],[
|
||||
"punctuation.definition.comment.begin.soy1",
|
||||
["comment.block.documentation.soy"," * "],
|
||||
["support.type.soy","@param"],
|
||||
["text"," "],
|
||||
["variable.parameter.soy","name"],
|
||||
["comment.block.documentation.soy"," The name of the person."]
|
||||
],[
|
||||
"punctuation.definition.comment.begin.soy1",
|
||||
["comment.block.documentation.soy"," * "],
|
||||
["support.type.soy","@param"],
|
||||
["text"," "],
|
||||
["variable.parameter.soy","additionalNames"],
|
||||
["comment.block.documentation.soy"," The additional names to greet. May be an empty list."]
|
||||
],[
|
||||
"start",
|
||||
["comment.block.documentation.soy"," "],
|
||||
["punctuation.definition.comment.end.soy","*/"]
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","template"],
|
||||
["text"," "],
|
||||
["entity.name.function.soy",".helloNames"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["comment.line.double-slash.soy"," "],
|
||||
["punctuation.definition.comment.soy","//"],
|
||||
["comment.line.double-slash.soy"," Greet the person."]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","call"],
|
||||
["variable.parameter.soy"," .helloName"],
|
||||
["meta.tag.call.soy"," "],
|
||||
["entity.other.attribute-name.soy","data"],
|
||||
["keyword.operator.soy","="],
|
||||
["string.quoted.double","\"all\""],
|
||||
["meta.tag.call.soy"," /"],
|
||||
["punctuation.definition.tag.end.soy","}"],
|
||||
["meta.tag.punctuation.begin","<"],
|
||||
["meta.tag.name","br"],
|
||||
["meta.tag.punctuation.end",">"]
|
||||
],[
|
||||
"start",
|
||||
["comment.line.double-slash.soy"," "],
|
||||
["punctuation.definition.comment.soy","//"],
|
||||
["comment.line.double-slash.soy"," Greet the additional people."]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","foreach"],
|
||||
["meta.tag.foreach.soy"," "],
|
||||
["variable.other.soy","$additionalName"],
|
||||
["meta.tag.foreach.soy"," "],
|
||||
["keyword.operator.soy","in"],
|
||||
["meta.tag.foreach.soy"," "],
|
||||
["variable.other.soy","$additionalNames"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","call"],
|
||||
["variable.parameter.soy"," .helloName"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","param"],
|
||||
["text"," "],
|
||||
["entity.other.attribute-name.soy","name"],
|
||||
["keyword.operator.soy",":"],
|
||||
["meta.tag.param.soy"," "],
|
||||
["variable.other.soy","$additionalName"],
|
||||
["text"," "],
|
||||
["meta.tag.param.soy","/"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{/"],
|
||||
["meta.tag.call.soy","call"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","if"],
|
||||
["meta.tag.if.soy"," "],
|
||||
["keyword.operator.soy","not"],
|
||||
["meta.tag.if.soy"," "],
|
||||
["support.function.soy","isLast"],
|
||||
["meta.tag.if.soy","("],
|
||||
["variable.other.soy","$additionalName"],
|
||||
["meta.tag.if.soy",")"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["meta.tag.punctuation.begin","<"],
|
||||
["meta.tag.name","br"],
|
||||
["meta.tag.punctuation.end",">"],
|
||||
["comment.line.double-slash.soy"," "],
|
||||
["punctuation.definition.comment.soy","//"],
|
||||
["comment.line.double-slash.soy"," break after every line except the last"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{/"],
|
||||
["entity.name.tag.soy","if"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["text","ifempty"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," No additional people to greet."]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["punctuation.definition.tag.begin.soy","{/"],
|
||||
["entity.name.tag.soy","foreach"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{/"],
|
||||
["meta.tag.template.soy","template"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{/"],
|
||||
["entity.name.tag.soy","foreach"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","if"],
|
||||
["meta.tag.if.soy"," "],
|
||||
["support.function.soy","length"],
|
||||
["meta.tag.if.soy","("],
|
||||
["variable.other.soy","$items"],
|
||||
["meta.tag.if.soy",") > 5"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","msg"],
|
||||
["meta.tag.msg.soy"," "],
|
||||
["entity.other.attribute-name.soy","desc"],
|
||||
["keyword.operator.soy","="],
|
||||
["string.quoted.double","\"Says hello to the user.\""],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","namespace"],
|
||||
["text"," "],
|
||||
["variable.parameter.soy","ns"],
|
||||
["text"," autoescape=\"contextual\""],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.comment.begin.soy","/**"],
|
||||
["comment.block.documentation.soy"," Example. "],
|
||||
["punctuation.definition.comment.end.soy","*/"]
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["entity.name.tag.soy","template"],
|
||||
["text"," "],
|
||||
["entity.name.function.soy",".example"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["text"," foo is "],
|
||||
["punctuation.definition.tag.begin.soy","{"],
|
||||
["variable.other.soy","$ij.foo"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
],[
|
||||
"start",
|
||||
["punctuation.definition.tag.begin.soy","{/"],
|
||||
["meta.tag.template.soy","template"],
|
||||
["punctuation.definition.tag.end.soy","}"]
|
||||
]]
|
||||
322
lib/ace/mode/_test/tokens_space.json
Normal file
322
lib/ace/mode/_test/tokens_space.json
Normal file
|
|
@ -0,0 +1,322 @@
|
|||
[[
|
||||
"start",
|
||||
["variable","query"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","count"],
|
||||
["keyword.operator"," "],
|
||||
["string","10"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","created"],
|
||||
["keyword.operator"," "],
|
||||
["string","2011-06-21T08:10:46Z"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","lang"],
|
||||
["keyword.operator"," "],
|
||||
["string","en-US"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","results"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","photo"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","farm"],
|
||||
["keyword.operator"," "],
|
||||
["string","6"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","id"],
|
||||
["keyword.operator"," "],
|
||||
["string","5855620975"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfamily"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfriend"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","ispublic"],
|
||||
["keyword.operator"," "],
|
||||
["string","1"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","owner"],
|
||||
["keyword.operator"," "],
|
||||
["string","32021554@N04"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","secret"],
|
||||
["keyword.operator"," "],
|
||||
["string","f1f5e8515d"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","server"],
|
||||
["keyword.operator"," "],
|
||||
["string","5110"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","title"],
|
||||
["keyword.operator"," "],
|
||||
["string","7087 bandit cat"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","1"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","farm"],
|
||||
["keyword.operator"," "],
|
||||
["string","4"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","id"],
|
||||
["keyword.operator"," "],
|
||||
["string","5856170534"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfamily"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfriend"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","ispublic"],
|
||||
["keyword.operator"," "],
|
||||
["string","1"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","owner"],
|
||||
["keyword.operator"," "],
|
||||
["string","32021554@N04"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","secret"],
|
||||
["keyword.operator"," "],
|
||||
["string","ff1efb2a6f"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","server"],
|
||||
["keyword.operator"," "],
|
||||
["string","3217"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","title"],
|
||||
["keyword.operator"," "],
|
||||
["string","6975 rusty cat"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","2"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","farm"],
|
||||
["keyword.operator"," "],
|
||||
["string","6"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","id"],
|
||||
["keyword.operator"," "],
|
||||
["string","5856172972"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfamily"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfriend"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","ispublic"],
|
||||
["keyword.operator"," "],
|
||||
["string","1"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","owner"],
|
||||
["keyword.operator"," "],
|
||||
["string","51249875@N03"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","secret"],
|
||||
["keyword.operator"," "],
|
||||
["string","6c6887347c"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","server"],
|
||||
["keyword.operator"," "],
|
||||
["string","5192"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","title"],
|
||||
["keyword.operator"," "],
|
||||
["string","watermarked-cats"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","3"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","farm"],
|
||||
["keyword.operator"," "],
|
||||
["string","6"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","id"],
|
||||
["keyword.operator"," "],
|
||||
["string","5856168328"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfamily"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfriend"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","ispublic"],
|
||||
["keyword.operator"," "],
|
||||
["string","1"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","owner"],
|
||||
["keyword.operator"," "],
|
||||
["string","32021554@N04"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","secret"],
|
||||
["keyword.operator"," "],
|
||||
["string","0c1cfdf64c"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","server"],
|
||||
["keyword.operator"," "],
|
||||
["string","5078"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","title"],
|
||||
["keyword.operator"," "],
|
||||
["string","7020 mandy cat"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","4"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","farm"],
|
||||
["keyword.operator"," "],
|
||||
["string","3"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","id"],
|
||||
["keyword.operator"," "],
|
||||
["string","5856171774"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfamily"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","isfriend"],
|
||||
["keyword.operator"," "],
|
||||
["string","0"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","ispublic"],
|
||||
["keyword.operator"," "],
|
||||
["string","1"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","owner"],
|
||||
["keyword.operator"," "],
|
||||
["string","32021554@N04"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","secret"],
|
||||
["keyword.operator"," "],
|
||||
["string","7f5a3180ab"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","server"],
|
||||
["keyword.operator"," "],
|
||||
["string","2696"]
|
||||
],[
|
||||
"start",
|
||||
["empty_line"," "],
|
||||
["variable","title"],
|
||||
["keyword.operator"," "],
|
||||
["string","7448 bobby cat"]
|
||||
],[
|
||||
"key"
|
||||
]]
|
||||
113
lib/ace/mode/_test/tokens_verilog.json
Normal file
113
lib/ace/mode/_test/tokens_verilog.json
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
[[
|
||||
"start",
|
||||
["keyword","always"],
|
||||
["text"," @"],
|
||||
["paren.lparen","("],
|
||||
["keyword","negedge"],
|
||||
["text"," "],
|
||||
["identifier","reset"],
|
||||
["text"," "],
|
||||
["keyword","or"],
|
||||
["text"," "],
|
||||
["keyword","posedge"],
|
||||
["text"," "],
|
||||
["identifier","clk"],
|
||||
["paren.rparen",")"],
|
||||
["text"," "],
|
||||
["keyword","begin"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","if"],
|
||||
["text"," "],
|
||||
["paren.lparen","("],
|
||||
["identifier","reset"],
|
||||
["text"," "],
|
||||
["keyword.operator","=="],
|
||||
["text"," "],
|
||||
["constant.numeric","0"],
|
||||
["paren.rparen",")"],
|
||||
["text"," "],
|
||||
["keyword","begin"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","d_out"],
|
||||
["text"," "],
|
||||
["keyword.operator","<="],
|
||||
["text"," "],
|
||||
["constant.numeric","16"],
|
||||
["text","'"],
|
||||
["identifier","h0000"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","d_out_mem"],
|
||||
["text","["],
|
||||
["identifier","resetcount"],
|
||||
["text","] "],
|
||||
["keyword.operator","<="],
|
||||
["text"," "],
|
||||
["identifier","d_out"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","laststoredvalue"],
|
||||
["text"," "],
|
||||
["keyword.operator","<="],
|
||||
["text"," "],
|
||||
["identifier","d_out"],
|
||||
["text",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","end"],
|
||||
["text"," "],
|
||||
["keyword","else"],
|
||||
["text"," "],
|
||||
["keyword","begin"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","d_out"],
|
||||
["text"," "],
|
||||
["keyword.operator","<="],
|
||||
["text"," "],
|
||||
["identifier","d_out"],
|
||||
["text"," "],
|
||||
["keyword.operator","+"],
|
||||
["text"," "],
|
||||
["constant.numeric","1"],
|
||||
["text","'"],
|
||||
["identifier","b1"],
|
||||
["text","; "]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","end"]
|
||||
],[
|
||||
"start",
|
||||
["keyword","end"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["keyword","always"],
|
||||
["text"," @"],
|
||||
["paren.lparen","("],
|
||||
["identifier","bufreadaddr"],
|
||||
["paren.rparen",")"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","bufreadval"],
|
||||
["text"," "],
|
||||
["keyword.operator","="],
|
||||
["text"," "],
|
||||
["identifier","d_out_mem"],
|
||||
["text","["],
|
||||
["identifier","bufreadaddr"],
|
||||
["text","];"]
|
||||
]]
|
||||
271
lib/ace/mode/_test/tokens_vhdl.json
Normal file
271
lib/ace/mode/_test/tokens_vhdl.json
Normal file
|
|
@ -0,0 +1,271 @@
|
|||
[[
|
||||
"start",
|
||||
["keyword","library"],
|
||||
["text"," "],
|
||||
["identifier","IEEE"]
|
||||
],[
|
||||
"start",
|
||||
["identifier","user"],
|
||||
["text"," "],
|
||||
["identifier","IEEE"],
|
||||
["punctuation.operator","."],
|
||||
["identifier","std_logic_1164"],
|
||||
["punctuation.operator","."],
|
||||
["keyword","all"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["keyword","use"],
|
||||
["text"," "],
|
||||
["identifier","IEEE"],
|
||||
["punctuation.operator","."],
|
||||
["identifier","numeric_std"],
|
||||
["punctuation.operator","."],
|
||||
["keyword","all"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["keyword","entity"],
|
||||
["text"," "],
|
||||
["identifier","COUNT16"],
|
||||
["text"," "],
|
||||
["keyword","is"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","port"],
|
||||
["text"," "],
|
||||
["paren.lparen","("]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","cOut"],
|
||||
["text"," "],
|
||||
["punctuation.operator",":"],
|
||||
["keyword","out"],
|
||||
["text"," "],
|
||||
["storage.type","std_logic_vector"],
|
||||
["paren.lparen","("],
|
||||
["constant.numeric","15"],
|
||||
["text"," "],
|
||||
["keyword","downto"],
|
||||
["text"," "],
|
||||
["constant.numeric","0"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"],
|
||||
["text"," "],
|
||||
["comment","-- counter output"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","clkEn"],
|
||||
["text"," "],
|
||||
["punctuation.operator",":"],
|
||||
["keyword","in"],
|
||||
["text"," "],
|
||||
["storage.type","std_logic"],
|
||||
["punctuation.operator",";"],
|
||||
["text"," "],
|
||||
["comment","-- count enable"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","clk"],
|
||||
["text"," "],
|
||||
["punctuation.operator",":"],
|
||||
["keyword","in"],
|
||||
["text"," "],
|
||||
["storage.type","std_logic"],
|
||||
["punctuation.operator",";"],
|
||||
["text"," "],
|
||||
["comment","-- clock input"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","rst"],
|
||||
["text"," "],
|
||||
["punctuation.operator",":"],
|
||||
["keyword","in"],
|
||||
["text"," "],
|
||||
["storage.type","std_logic"],
|
||||
["text"," "],
|
||||
["comment","-- reset input"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "]
|
||||
],[
|
||||
"start",
|
||||
["keyword","end"],
|
||||
["text"," "],
|
||||
["keyword","entity"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["keyword","architecture"],
|
||||
["text"," "],
|
||||
["identifier","count_rtl"],
|
||||
["text"," "],
|
||||
["keyword","of"],
|
||||
["text"," "],
|
||||
["identifier","COUNT16"],
|
||||
["text"," "],
|
||||
["keyword","is"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["storage.type","signal"],
|
||||
["text"," "],
|
||||
["identifier","count"],
|
||||
["text"," "],
|
||||
["punctuation.operator",":"],
|
||||
["storage.type","std_logic_vector"],
|
||||
["text"," "],
|
||||
["paren.lparen","("],
|
||||
["constant.numeric","15"],
|
||||
["text"," "],
|
||||
["keyword","downto"],
|
||||
["text"," "],
|
||||
["constant.numeric","0"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "]
|
||||
],[
|
||||
"start",
|
||||
["keyword","begin"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","process"],
|
||||
["text"," "],
|
||||
["paren.lparen","("],
|
||||
["identifier","clk"],
|
||||
["punctuation.operator",","],
|
||||
["text"," "],
|
||||
["identifier","rst"],
|
||||
["paren.rparen",")"],
|
||||
["text"," "],
|
||||
["keyword","begin"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","if"],
|
||||
["paren.lparen","("],
|
||||
["identifier","rst"],
|
||||
["text"," "],
|
||||
["keyword.operator","="],
|
||||
["text"," "],
|
||||
["string","'1'"],
|
||||
["paren.rparen",")"],
|
||||
["text"," "],
|
||||
["keyword","then"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","count"],
|
||||
["text"," "],
|
||||
["keyword.operator","<="],
|
||||
["text"," "],
|
||||
["paren.lparen","("],
|
||||
["keyword","others"],
|
||||
["keyword.operator","=>"],
|
||||
["string","'0'"],
|
||||
["paren.rparen",")"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","elsif"],
|
||||
["paren.lparen","("],
|
||||
["identifier","rising_edge"],
|
||||
["paren.lparen","("],
|
||||
["identifier","clk"],
|
||||
["paren.rparen","))"],
|
||||
["text"," "],
|
||||
["keyword","then"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","if"],
|
||||
["paren.lparen","("],
|
||||
["identifier","clkEn"],
|
||||
["text"," "],
|
||||
["keyword.operator","="],
|
||||
["text"," "],
|
||||
["string","'1'"],
|
||||
["paren.rparen",")"],
|
||||
["text"," "],
|
||||
["keyword","then"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","count"],
|
||||
["text"," "],
|
||||
["keyword.operator","<="],
|
||||
["text"," "],
|
||||
["identifier","count"],
|
||||
["text"," "],
|
||||
["keyword.operator","+"],
|
||||
["text"," "],
|
||||
["constant.numeric","1"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","end"],
|
||||
["text"," "],
|
||||
["keyword","if"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","end"],
|
||||
["text"," "],
|
||||
["keyword","if"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["keyword","end"],
|
||||
["text"," "],
|
||||
["keyword","process"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["identifier","cOut"],
|
||||
["text"," "],
|
||||
["keyword.operator","<="],
|
||||
["text"," "],
|
||||
["identifier","count"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start"
|
||||
],[
|
||||
"start",
|
||||
["keyword","end"],
|
||||
["text"," "],
|
||||
["keyword","architecture"],
|
||||
["punctuation.operator",";"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "]
|
||||
]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue