Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
66
lexers/testdata/elixir.expected
vendored
Normal file
66
lexers/testdata/elixir.expected
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
[
|
||||
{"type":"KeywordDeclaration","value":"defmodule"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameClass","value":"Test"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Keyword","value":"do"},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"KeywordDeclaration","value":"defmodule"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameClass","value":"Formatter"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Keyword","value":"do"},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"KeywordDeclaration","value":"defstruct"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"["},
|
||||
{"type":"LiteralStringSymbol","value":":name"},
|
||||
{"type":"Punctuation","value":"]"},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"Keyword","value":"end"},
|
||||
{"type":"Text","value":"\n\n "},
|
||||
{"type":"KeywordDeclaration","value":"def"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Name","value":"hello"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"Name","value":"name"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"\\\\"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralStringDouble","value":"\"chroma\""},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Keyword","value":"do"},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"Keyword","value":"case"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Name","value":"name"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Keyword","value":"do"},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"LiteralStringDouble","value":"\"chroma\""},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Operator","value":"-\u003e"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameClass","value":"IO"},
|
||||
{"type":"Operator","value":"."},
|
||||
{"type":"Name","value":"puts"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralStringDouble","value":"\"Hello, CHROMA!!\""},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"Name","value":"other"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Operator","value":"-\u003e"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Keyword","value":"raise"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralStringDouble","value":"\"no others please\""},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"Keyword","value":"end"},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"Keyword","value":"end"},
|
||||
{"type":"Text","value":"\n"},
|
||||
{"type":"Keyword","value":"end"},
|
||||
{"type":"Text","value":"\n"}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue