Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
43
lexers/testdata/chapel.expected
vendored
Normal file
43
lexers/testdata/chapel.expected
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
[
|
||||
{"type":"KeywordDeclaration","value":"config"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"const"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameOther","value":"numMessages"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"Operator","value":"="},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"LiteralNumberInteger","value":"100"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n\n"},
|
||||
{"type":"Keyword","value":"forall"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameOther","value":"msg"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"in"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Operator","value":".."},
|
||||
{"type":"NameOther","value":"numMessages"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"Keyword","value":"do"},
|
||||
{"type":"TextWhitespace","value":"\n "},
|
||||
{"type":"NameOther","value":"writeln"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralString","value":"\"Hello, world! (from iteration \""},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameOther","value":"msg"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"LiteralString","value":"\" of \""},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameOther","value":"numMessages"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"LiteralString","value":"\")\""},
|
||||
{"type":"Punctuation","value":");"},
|
||||
{"type":"TextWhitespace","value":"\n\n"},
|
||||
{"type":"CommentSingle","value":"// Oh, and a comment for good measure.\n"}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue