| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- [[
- "start",
- ["text"," "],
- ["comment","#test: symbol tokenizer"]
- ],[
- "start",
- ["text"," "],
- ["paren.lparen","["],
- ["constant.other.symbol.ruby",":@thing"],
- ["text",", "],
- ["constant.other.symbol.ruby",":$thing"],
- ["text",", "],
- ["constant.other.symbol.ruby",":_thing"],
- ["text",", "],
- ["constant.other.symbol.ruby",":thing"],
- ["text",", "],
- ["constant.other.symbol.ruby",":Thing"],
- ["text",", "],
- ["constant.other.symbol.ruby",":thing1"],
- ["text",", "],
- ["constant.other.symbol.ruby",":thing_a"],
- ["text",","]
- ],[
- "start",
- ["text"," "],
- ["constant.other.symbol.ruby",":THING"],
- ["text",", "],
- ["constant.other.symbol.ruby",":thing!"],
- ["text",", "],
- ["constant.other.symbol.ruby",":thing="],
- ["text",", "],
- ["constant.other.symbol.ruby",":thing?"],
- ["text",", "],
- ["constant.other.symbol.ruby",":t?"],
- ["text",","]
- ],[
- "start",
- ["text"," :, :@, :"],
- ["keyword.operator","$"],
- ["text",", :"],
- ["constant.numeric","1"],
- ["text",", :1"],
- ["identifier","thing"],
- ["text",", "],
- ["constant.other.symbol.ruby",":th?"],
- ["identifier","ing"],
- ["text",", "],
- ["constant.other.symbol.ruby",":thi="],
- ["identifier","ng"],
- ["text",", :1"],
- ["identifier","thing"],
- ["text",","]
- ],[
- "start",
- ["text"," "],
- ["constant.other.symbol.ruby",":th!"],
- ["identifier","ing"],
- ["text",", "],
- ["constant.other.symbol.ruby",":thing"],
- ["comment","#"]
- ],[
- "start",
- ["text"," "],
- ["paren.rparen","]"]
- ],[
- "start"
- ],[
- "start",
- ["text"," "],
- ["comment","#test: namespaces aren't symbols\" : function() {"]
- ],[
- "start",
- ["text"," "],
- ["support.class","Namespaced"],
- ["text","::"],
- ["support.class","Class"]
- ],[
- "start",
- ["text"," "],
- ["comment","#test: hex tokenizer "]
- ],[
- "start",
- ["text"," "],
- ["constant.numeric","0x9a"],
- ["text",", "],
- ["constant.numeric","0XA1"],
- ["text",", "],
- ["constant.numeric","0x9_a"],
- ["text",", 0"],
- ["identifier","x"],
- ["text",", 0"],
- ["identifier","x_9a"],
- ["text",", 0"],
- ["identifier","x9a_"],
- ["text",","]
- ],[
- "start",
- ["text"," "],
- ["comment","#test: float tokenizer"]
- ],[
- "start",
- ["text"," "],
- ["paren.lparen","["],
- ["constant.numeric","1"],
- ["text",", "],
- ["constant.numeric","+1"],
- ["text",", "],
- ["constant.numeric","-1"],
- ["text",", "],
- ["constant.numeric","12_345"],
- ["text",", "],
- ["constant.numeric","0.000_1"],
- ["text",","]
- ],[
- "start",
- ["text"," "],
- ["identifier","_"],
- ["text",", "],
- ["constant.numeric","3_1"],
- ["text",", "],
- ["constant.numeric","1_2"],
- ["text",", 1"],
- ["identifier","_"],
- ["text","."],
- ["constant.numeric","0"],
- ["text",", "],
- ["constant.numeric","0"],
- ["text","."],
- ["identifier","_1"],
- ["paren.rparen","]"],
- ["text",";"]
- ],[
- "start",
- ["text"," "]
- ],[
- "start",
- ["paren.lparen","{"],
- ["constant.other.symbol.ruby",":id"],
- ["text"," "],
- ["punctuation.separator.key-value","=>"],
- ["text"," "],
- ["constant.numeric","34"],
- ["text",", "],
- ["constant.other.symbol.ruby",":key"],
- ["text"," "],
- ["punctuation.separator.key-value","=>"],
- ["text"," "],
- ["string","\"value\""],
- ["paren.rparen","}"]
- ],[
- "start"
- ],[
- "comment",
- ["comment","=begin"]
- ],[
- "start",
- ["comment","=end"]
- ],[
- "start"
- ],[
- "comment",
- ["comment","=begin x"]
- ],[
- "comment",
- ["comment","=end-"]
- ],[
- "start",
- ["comment","=end x"]
- ],[
- "start"
- ],[
- ["heredoc","FOO","heredoc","BAR","indentedHeredoc","BAZ","indentedHeredoc","EXEC"],
- ["text"," "],
- ["identifier","herDocs"],
- ["text"," "],
- ["keyword.operator","="],
- ["text"," "],
- ["paren.lparen","["],
- ["constant","<<"],
- ["string","'"],
- ["support.class","FOO"],
- ["string","'"],
- ["text",", "],
- ["constant","<<"],
- ["string",""],
- ["support.class","BAR"],
- ["string",""],
- ["text",", "],
- ["constant","<<-"],
- ["string",""],
- ["support.class","BAZ"],
- ["string",""],
- ["text",", "],
- ["constant","<<-"],
- ["string","`"],
- ["support.class","EXEC"],
- ["string","`"],
- ["paren.rparen","]"],
- ["text"," "],
- ["comment","#comment"]
- ],[
- ["heredoc","FOO","heredoc","BAR","indentedHeredoc","BAZ","indentedHeredoc","EXEC"],
- ["string"," FOO #{literal}"]
- ],[
- ["heredoc","BAR","indentedHeredoc","BAZ","indentedHeredoc","EXEC"],
- ["support.class","FOO"]
- ],[
- ["heredoc","BAR","indentedHeredoc","BAZ","indentedHeredoc","EXEC"],
- ["string"," BAR #{fact(10)}"]
- ],[
- ["indentedHeredoc","BAZ","indentedHeredoc","EXEC"],
- ["support.class","BAR"]
- ],[
- ["indentedHeredoc","BAZ","indentedHeredoc","EXEC"],
- ["string"," BAZ indented"]
- ],[
- ["indentedHeredoc","EXEC"],
- ["string"," "],
- ["support.class","BAZ"]
- ],[
- ["indentedHeredoc","EXEC"],
- ["string"," echo hi"]
- ],[
- "start",
- ["string"," "],
- ["support.class","EXEC"]
- ],[
- "start",
- ["support.function","puts"],
- ["text"," "],
- ["identifier","herDocs"]
- ]]
|