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/bicep

View file

@ -0,0 +1,53 @@
[
{"type":"KeywordDeclaration","value":"output"},
{"type":"TextWhitespace","value":" "},
{"type":"NameVariable","value":"trueString"},
{"type":"TextWhitespace","value":" "},
{"type":"NameVariable","value":"bool"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"NameFunction","value":"bool"},
{"type":"Punctuation","value":"("},
{"type":"LiteralString","value":"'true'"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":"\n"},
{"type":"KeywordDeclaration","value":"output"},
{"type":"TextWhitespace","value":" "},
{"type":"NameVariable","value":"falseString"},
{"type":"TextWhitespace","value":" "},
{"type":"NameVariable","value":"bool"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"NameFunction","value":"bool"},
{"type":"Punctuation","value":"("},
{"type":"LiteralString","value":"'false'"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":"\n"},
{"type":"KeywordDeclaration","value":"output"},
{"type":"TextWhitespace","value":" "},
{"type":"NameVariable","value":"trueInt"},
{"type":"TextWhitespace","value":" "},
{"type":"NameVariable","value":"bool"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"NameFunction","value":"bool"},
{"type":"Punctuation","value":"("},
{"type":"NameVariable","value":"1"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":"\n"},
{"type":"KeywordDeclaration","value":"output"},
{"type":"TextWhitespace","value":" "},
{"type":"NameVariable","value":"falseInt"},
{"type":"TextWhitespace","value":" "},
{"type":"NameVariable","value":"bool"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"NameFunction","value":"bool"},
{"type":"Punctuation","value":"("},
{"type":"NameVariable","value":"0"},
{"type":"Punctuation","value":")"}
]