mixins.tokens.json 8.29 KB
{"type":"mixin","loc":{"start":{"line":1,"column":1},"filename":"/cases/mixins.pug","end":{"line":1,"column":26}},"val":"comment","args":"title, str"}
{"type":"indent","loc":{"start":{"line":2,"column":1},"filename":"/cases/mixins.pug","end":{"line":2,"column":3}},"val":2}
{"type":"class","loc":{"start":{"line":2,"column":3},"filename":"/cases/mixins.pug","end":{"line":2,"column":11}},"val":"comment"}
{"type":"indent","loc":{"start":{"line":3,"column":1},"filename":"/cases/mixins.pug","end":{"line":3,"column":5}},"val":4}
{"type":"tag","loc":{"start":{"line":3,"column":5},"filename":"/cases/mixins.pug","end":{"line":3,"column":7}},"val":"h2"}
{"type":"code","loc":{"start":{"line":3,"column":7},"filename":"/cases/mixins.pug","end":{"line":3,"column":14}},"val":"title","mustEscape":true,"buffer":true}
{"type":"newline","loc":{"start":{"line":4,"column":1},"filename":"/cases/mixins.pug","end":{"line":4,"column":5}}}
{"type":"tag","loc":{"start":{"line":4,"column":5},"filename":"/cases/mixins.pug","end":{"line":4,"column":6}},"val":"p"}
{"type":"class","loc":{"start":{"line":4,"column":6},"filename":"/cases/mixins.pug","end":{"line":4,"column":11}},"val":"body"}
{"type":"code","loc":{"start":{"line":4,"column":11},"filename":"/cases/mixins.pug","end":{"line":4,"column":16}},"val":"str","mustEscape":true,"buffer":true}
{"type":"outdent","loc":{"start":{"line":7,"column":1},"filename":"/cases/mixins.pug","end":{"line":7,"column":1}}}
{"type":"outdent","loc":{"start":{"line":7,"column":1},"filename":"/cases/mixins.pug","end":{"line":7,"column":1}}}
{"type":"mixin","loc":{"start":{"line":7,"column":1},"filename":"/cases/mixins.pug","end":{"line":7,"column":27}},"val":"comment","args":"title, str"}
{"type":"indent","loc":{"start":{"line":8,"column":1},"filename":"/cases/mixins.pug","end":{"line":8,"column":3}},"val":2}
{"type":"class","loc":{"start":{"line":8,"column":3},"filename":"/cases/mixins.pug","end":{"line":8,"column":11}},"val":"comment"}
{"type":"indent","loc":{"start":{"line":9,"column":1},"filename":"/cases/mixins.pug","end":{"line":9,"column":5}},"val":4}
{"type":"tag","loc":{"start":{"line":9,"column":5},"filename":"/cases/mixins.pug","end":{"line":9,"column":7}},"val":"h2"}
{"type":"code","loc":{"start":{"line":9,"column":7},"filename":"/cases/mixins.pug","end":{"line":9,"column":14}},"val":"title","mustEscape":true,"buffer":true}
{"type":"newline","loc":{"start":{"line":10,"column":1},"filename":"/cases/mixins.pug","end":{"line":10,"column":5}}}
{"type":"tag","loc":{"start":{"line":10,"column":5},"filename":"/cases/mixins.pug","end":{"line":10,"column":6}},"val":"p"}
{"type":"class","loc":{"start":{"line":10,"column":6},"filename":"/cases/mixins.pug","end":{"line":10,"column":11}},"val":"body"}
{"type":"code","loc":{"start":{"line":10,"column":11},"filename":"/cases/mixins.pug","end":{"line":10,"column":16}},"val":"str","mustEscape":true,"buffer":true}
{"type":"outdent","loc":{"start":{"line":12,"column":1},"filename":"/cases/mixins.pug","end":{"line":12,"column":1}}}
{"type":"outdent","loc":{"start":{"line":12,"column":1},"filename":"/cases/mixins.pug","end":{"line":12,"column":1}}}
{"type":"id","loc":{"start":{"line":12,"column":1},"filename":"/cases/mixins.pug","end":{"line":12,"column":6}},"val":"user"}
{"type":"indent","loc":{"start":{"line":13,"column":1},"filename":"/cases/mixins.pug","end":{"line":13,"column":3}},"val":2}
{"type":"tag","loc":{"start":{"line":13,"column":3},"filename":"/cases/mixins.pug","end":{"line":13,"column":5}},"val":"h1"}
{"type":"text","loc":{"start":{"line":13,"column":6},"filename":"/cases/mixins.pug","end":{"line":13,"column":10}},"val":"Tobi"}
{"type":"newline","loc":{"start":{"line":14,"column":1},"filename":"/cases/mixins.pug","end":{"line":14,"column":3}}}
{"type":"class","loc":{"start":{"line":14,"column":3},"filename":"/cases/mixins.pug","end":{"line":14,"column":12}},"val":"comments"}
{"type":"indent","loc":{"start":{"line":15,"column":1},"filename":"/cases/mixins.pug","end":{"line":15,"column":5}},"val":4}
{"type":"call","loc":{"start":{"line":15,"column":5},"filename":"/cases/mixins.pug","end":{"line":16,"column":42}},"val":"comment","args":"'This',\n            (('is regular, javascript'))"}
{"type":"outdent","loc":{"start":{"line":18,"column":1},"filename":"/cases/mixins.pug","end":{"line":18,"column":1}}}
{"type":"outdent","loc":{"start":{"line":18,"column":1},"filename":"/cases/mixins.pug","end":{"line":18,"column":1}}}
{"type":"mixin","loc":{"start":{"line":18,"column":1},"filename":"/cases/mixins.pug","end":{"line":18,"column":11}},"val":"list","args":null}
{"type":"indent","loc":{"start":{"line":19,"column":1},"filename":"/cases/mixins.pug","end":{"line":19,"column":3}},"val":2}
{"type":"tag","loc":{"start":{"line":19,"column":3},"filename":"/cases/mixins.pug","end":{"line":19,"column":5}},"val":"ul"}
{"type":"indent","loc":{"start":{"line":20,"column":1},"filename":"/cases/mixins.pug","end":{"line":20,"column":5}},"val":4}
{"type":"tag","loc":{"start":{"line":20,"column":5},"filename":"/cases/mixins.pug","end":{"line":20,"column":7}},"val":"li"}
{"type":"text","loc":{"start":{"line":20,"column":8},"filename":"/cases/mixins.pug","end":{"line":20,"column":11}},"val":"foo"}
{"type":"newline","loc":{"start":{"line":21,"column":1},"filename":"/cases/mixins.pug","end":{"line":21,"column":5}}}
{"type":"tag","loc":{"start":{"line":21,"column":5},"filename":"/cases/mixins.pug","end":{"line":21,"column":7}},"val":"li"}
{"type":"text","loc":{"start":{"line":21,"column":8},"filename":"/cases/mixins.pug","end":{"line":21,"column":11}},"val":"bar"}
{"type":"newline","loc":{"start":{"line":22,"column":1},"filename":"/cases/mixins.pug","end":{"line":22,"column":5}}}
{"type":"tag","loc":{"start":{"line":22,"column":5},"filename":"/cases/mixins.pug","end":{"line":22,"column":7}},"val":"li"}
{"type":"text","loc":{"start":{"line":22,"column":8},"filename":"/cases/mixins.pug","end":{"line":22,"column":11}},"val":"baz"}
{"type":"outdent","loc":{"start":{"line":24,"column":1},"filename":"/cases/mixins.pug","end":{"line":24,"column":1}}}
{"type":"outdent","loc":{"start":{"line":24,"column":1},"filename":"/cases/mixins.pug","end":{"line":24,"column":1}}}
{"type":"tag","loc":{"start":{"line":24,"column":1},"filename":"/cases/mixins.pug","end":{"line":24,"column":5}},"val":"body"}
{"type":"indent","loc":{"start":{"line":25,"column":1},"filename":"/cases/mixins.pug","end":{"line":25,"column":3}},"val":2}
{"type":"call","loc":{"start":{"line":25,"column":3},"filename":"/cases/mixins.pug","end":{"line":25,"column":10}},"val":"list","args":""}
{"type":"newline","loc":{"start":{"line":26,"column":1},"filename":"/cases/mixins.pug","end":{"line":26,"column":3}}}
{"type":"call","loc":{"start":{"line":26,"column":3},"filename":"/cases/mixins.pug","end":{"line":26,"column":11}},"val":"list","args":""}
{"type":"outdent","loc":{"start":{"line":28,"column":1},"filename":"/cases/mixins.pug","end":{"line":28,"column":1}}}
{"type":"mixin","loc":{"start":{"line":28,"column":1},"filename":"/cases/mixins.pug","end":{"line":28,"column":18}},"val":"foobar","args":"str"}
{"type":"indent","loc":{"start":{"line":29,"column":1},"filename":"/cases/mixins.pug","end":{"line":29,"column":3}},"val":2}
{"type":"tag","loc":{"start":{"line":29,"column":3},"filename":"/cases/mixins.pug","end":{"line":29,"column":6}},"val":"div"}
{"type":"id","loc":{"start":{"line":29,"column":6},"filename":"/cases/mixins.pug","end":{"line":29,"column":20}},"val":"interpolation"}
{"type":"code","loc":{"start":{"line":29,"column":20},"filename":"/cases/mixins.pug","end":{"line":29,"column":42}},"val":"str + 'interpolated'","mustEscape":true,"buffer":true}
{"type":"outdent","loc":{"start":{"line":31,"column":1},"filename":"/cases/mixins.pug","end":{"line":31,"column":1}}}
{"type":"code","loc":{"start":{"line":31,"column":1},"filename":"/cases/mixins.pug","end":{"line":31,"column":21}},"val":"var suffix = \"bar\"","mustEscape":false,"buffer":false}
{"type":"newline","loc":{"start":{"line":32,"column":1},"filename":"/cases/mixins.pug","end":{"line":32,"column":1}}}
{"type":"call","loc":{"start":{"line":32,"column":1},"filename":"/cases/mixins.pug","end":{"line":32,"column":31}},"val":"#{'foo' + suffix}","args":"'This is '"}
{"type":"newline","loc":{"start":{"line":33,"column":1},"filename":"/cases/mixins.pug","end":{"line":33,"column":1}}}
{"type":"eos","loc":{"start":{"line":33,"column":1},"filename":"/cases/mixins.pug","end":{"line":33,"column":1}}}