pixsy/node_modules/pug-parser/test/cases/html.tokens.json

26 lines
1.3 KiB
JSON
Raw Normal View History

2017-12-22 17:22:08 +00:00
{"type":"code","line":1,"col":1,"val":"var version = 1449104952939","mustEscape":false,"buffer":false}
{"type":"newline","line":3,"col":1}
{"type":"text-html","line":3,"col":1,"val":"<ul>"}
{"type":"indent","line":4,"col":1,"val":2}
{"type":"text-html","line":4,"col":3,"val":"<li>foo</li>"}
{"type":"newline","line":5,"col":1}
{"type":"text-html","line":5,"col":3,"val":"<li>bar</li>"}
{"type":"newline","line":6,"col":1}
{"type":"text-html","line":6,"col":3,"val":"<li>baz</li>"}
{"type":"outdent","line":7,"col":1}
{"type":"text-html","line":7,"col":1,"val":"</ul>"}
{"type":"newline","line":9,"col":1}
{"type":"text-html","line":9,"col":1,"val":"<!--build:js /js/app.min.js?v="}
{"type":"interpolated-code","line":9,"col":31,"mustEscape":true,"buffer":true,"val":"version"}
{"type":"text-html","line":9,"col":41,"val":"-->"}
{"type":"newline","line":10,"col":1}
{"type":"text-html","line":10,"col":1,"val":"<!--endbuild-->"}
{"type":"newline","line":12,"col":1}
{"type":"tag","line":12,"col":1,"val":"p"}
{"type":"text","line":12,"col":3,"val":"You can <em>embed</em> html as well."}
{"type":"newline","line":13,"col":1}
{"type":"tag","line":13,"col":1,"val":"p"}
{"type":":","line":13,"col":2}
{"type":"text-html","line":13,"col":4,"val":"<strong>Even</strong> as the body of a block expansion."}
{"type":"newline","line":14,"col":1}
{"type":"eos","line":14,"col":1}