Added lexars

This commit is contained in:
Toastie 2025-03-22 20:46:00 +13:00
parent 382b2ce94b
commit f9f64b0558
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
820 changed files with 149371 additions and 0 deletions
lexers/testdata

43
lexers/testdata/chapel.expected vendored Normal file
View 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"}
]