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

65 lines
3.1 KiB
JSON
Raw Normal View History

2017-12-22 17:22:08 +00:00
{"type":"mixin","line":1,"col":1,"val":"comment","args":"title, str"}
{"type":"indent","line":2,"col":1,"val":2}
{"type":"class","line":2,"col":3,"val":"comment"}
{"type":"indent","line":3,"col":1,"val":4}
{"type":"tag","line":3,"col":5,"val":"h2"}
{"type":"code","line":3,"col":7,"val":"title","mustEscape":true,"buffer":true}
{"type":"newline","line":4,"col":1}
{"type":"tag","line":4,"col":5,"val":"p"}
{"type":"class","line":4,"col":6,"val":"body"}
{"type":"code","line":4,"col":11,"val":"str","mustEscape":true,"buffer":true}
{"type":"outdent","line":7,"col":3}
{"type":"outdent","line":7,"col":1}
{"type":"mixin","line":7,"col":1,"val":"comment","args":"title, str"}
{"type":"indent","line":8,"col":1,"val":2}
{"type":"class","line":8,"col":3,"val":"comment"}
{"type":"indent","line":9,"col":1,"val":4}
{"type":"tag","line":9,"col":5,"val":"h2"}
{"type":"code","line":9,"col":7,"val":"title","mustEscape":true,"buffer":true}
{"type":"newline","line":10,"col":1}
{"type":"tag","line":10,"col":5,"val":"p"}
{"type":"class","line":10,"col":6,"val":"body"}
{"type":"code","line":10,"col":11,"val":"str","mustEscape":true,"buffer":true}
{"type":"outdent","line":12,"col":3}
{"type":"outdent","line":12,"col":1}
{"type":"id","line":12,"col":1,"val":"user"}
{"type":"indent","line":13,"col":1,"val":2}
{"type":"tag","line":13,"col":3,"val":"h1"}
{"type":"text","line":13,"col":6,"val":"Tobi"}
{"type":"newline","line":14,"col":1}
{"type":"class","line":14,"col":3,"val":"comments"}
{"type":"indent","line":15,"col":1,"val":4}
{"type":"call","line":15,"col":5,"val":"comment","args":"'This',\n (('is regular, javascript'))"}
{"type":"outdent","line":18,"col":3}
{"type":"outdent","line":18,"col":1}
{"type":"mixin","line":18,"col":1,"val":"list","args":null}
{"type":"indent","line":19,"col":1,"val":2}
{"type":"tag","line":19,"col":3,"val":"ul"}
{"type":"indent","line":20,"col":1,"val":4}
{"type":"tag","line":20,"col":5,"val":"li"}
{"type":"text","line":20,"col":8,"val":"foo"}
{"type":"newline","line":21,"col":1}
{"type":"tag","line":21,"col":5,"val":"li"}
{"type":"text","line":21,"col":8,"val":"bar"}
{"type":"newline","line":22,"col":1}
{"type":"tag","line":22,"col":5,"val":"li"}
{"type":"text","line":22,"col":8,"val":"baz"}
{"type":"outdent","line":24,"col":3}
{"type":"outdent","line":24,"col":1}
{"type":"tag","line":24,"col":1,"val":"body"}
{"type":"indent","line":25,"col":1,"val":2}
{"type":"call","line":25,"col":3,"val":"list","args":""}
{"type":"newline","line":26,"col":1}
{"type":"call","line":26,"col":3,"val":"list","args":""}
{"type":"outdent","line":28,"col":1}
{"type":"mixin","line":28,"col":1,"val":"foobar","args":"str"}
{"type":"indent","line":29,"col":1,"val":2}
{"type":"tag","line":29,"col":3,"val":"div"}
{"type":"id","line":29,"col":6,"val":"interpolation"}
{"type":"code","line":29,"col":20,"val":"str + 'interpolated'","mustEscape":true,"buffer":true}
{"type":"outdent","line":31,"col":1}
{"type":"code","line":31,"col":1,"val":"var suffix = \"bar\"","mustEscape":false,"buffer":false}
{"type":"newline","line":32,"col":1}
{"type":"call","line":32,"col":1,"val":"#{'foo' + suffix}","args":"'This is '"}
{"type":"newline","line":33,"col":1}
{"type":"eos","line":33,"col":1}