Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
148
lexers/testdata/hlb.expected
vendored
Normal file
148
lexers/testdata/hlb.expected
vendored
Normal file
|
@ -0,0 +1,148 @@
|
|||
[
|
||||
{"type":"CommentSingle","value":"# Run `npm test` for the node project `left-pad`."},
|
||||
{"type":"Text","value":"\n"},
|
||||
{"type":"KeywordType","value":"fs"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameFunction","value":"default"},
|
||||
{"type":"Punctuation","value":"()"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":"\n\t"},
|
||||
{"type":"NameOther","value":"npmRun"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameOther","value":"leftPad"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"KeywordType","value":"fs"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameOther","value":"nodeModules"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameOther","value":"leftPad"},
|
||||
{"type":"Text","value":"; "},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralString","value":"\"test\""},
|
||||
{"type":"Text","value":"\n"},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":"\n\n"},
|
||||
{"type":"KeywordType","value":"fs"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameFunction","value":"leftPad"},
|
||||
{"type":"Punctuation","value":"()"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":"\n\tgit "},
|
||||
{"type":"LiteralString","value":"\"https://github.com/left-pad/left-pad.git\""},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralString","value":"\"master\""},
|
||||
{"type":"Text","value":"\n"},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":"\n\n"},
|
||||
{"type":"KeywordType","value":"fs"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameFunction","value":"npmInstall"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"KeywordType","value":"fs"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameOther","value":"src"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":"\n\timage "},
|
||||
{"type":"LiteralString","value":"\"node:alpine\""},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"KeywordReserved","value":"with"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"KeywordType","value":"option"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":"\n\t\tresolve\n\t"},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":"\n\trun "},
|
||||
{"type":"LiteralString","value":"\"npm install\""},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"KeywordReserved","value":"with"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"KeywordType","value":"option"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":"\n\t\tdir "},
|
||||
{"type":"LiteralString","value":"\"/src\""},
|
||||
{"type":"Text","value":"\n\t\tmount "},
|
||||
{"type":"NameOther","value":"src"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralString","value":"\"/src\""},
|
||||
{"type":"Text","value":"\n\t\t"},
|
||||
{"type":"CommentSingle","value":"# Name the mounted filesystem as nodeModules"},
|
||||
{"type":"Text","value":"\n\t\tmount "},
|
||||
{"type":"KeywordType","value":"fs"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":" scratch; "},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralString","value":"\"/src/node_modules\""},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"KeywordReserved","value":"as"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameFunction","value":"nodeModules"},
|
||||
{"type":"Text","value":"\n\t"},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":"\n"},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":"\n\n"},
|
||||
{"type":"KeywordType","value":"fs"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameFunction","value":"npmRun"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"KeywordType","value":"fs"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameOther","value":"src"},
|
||||
{"type":"Text","value":", "},
|
||||
{"type":"KeywordType","value":"fs"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameOther","value":"nodeModules"},
|
||||
{"type":"Text","value":", "},
|
||||
{"type":"KeywordType","value":"string"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameOther","value":"script"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":"\n\timage "},
|
||||
{"type":"LiteralString","value":"\"node:alpine\""},
|
||||
{"type":"Text","value":"\n\trun "},
|
||||
{"type":"KeywordType","value":"string"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameOther","value":"format"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralString","value":"\"npm run %s\""},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameOther","value":"script"},
|
||||
{"type":"Text","value":"; "},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"KeywordReserved","value":"with"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"KeywordType","value":"option"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":"\n\t\tdir "},
|
||||
{"type":"LiteralString","value":"\"/src\""},
|
||||
{"type":"Text","value":"\n\t\tmount "},
|
||||
{"type":"NameOther","value":"src"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralString","value":"\"/src\""},
|
||||
{"type":"Text","value":"\n\t\tmount "},
|
||||
{"type":"NameOther","value":"nodeModules"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralString","value":"\"/src/node_modules\""},
|
||||
{"type":"Text","value":"\n\t"},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":"\n"},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":"\n"}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue