pixsy/node_modules/pug-parser/test/cases/interpolation.escape.tokens...

15 lines
722 B
JSON

{"type":"newline","line":2,"col":1}
{"type":"code","line":2,"col":1,"val":"var id = 42;","mustEscape":false,"buffer":false}
{"type":"newline","line":3,"col":1}
{"type":"tag","line":3,"col":1,"val":"foo"}
{"type":"indent","line":4,"col":1,"val":2}
{"type":"text","line":4,"col":5,"val":"some"}
{"type":"newline","line":5,"col":1}
{"type":"text","line":5,"col":5,"val":"#{text}"}
{"type":"newline","line":6,"col":1}
{"type":"text","line":6,"col":5,"val":"here"}
{"type":"newline","line":7,"col":1}
{"type":"text","line":7,"col":5,"val":"My ID "}
{"type":"interpolated-code","line":7,"col":11,"val":"\"is {\" + id + \"}\"","mustEscape":true,"buffer":true}
{"type":"outdent","line":7,"col":31}
{"type":"eos","line":7,"col":31}