initial
This commit is contained in:
9
node_modules/pug-parser/test/cases/attr-es2015.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/attr-es2015.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"code","line":1,"col":1,"val":"var avatar = '219b77f9d21de75e81851b6b886057c7'","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"div"}
|
||||
{"type":"class","line":3,"col":4,"val":"avatar-div"}
|
||||
{"type":"start-attributes","line":3,"col":15}
|
||||
{"type":"attribute","line":3,"col":16,"name":"style","val":"`background-image: url(https://www.gravatar.com/avatar/${avatar})`","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":88}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"eos","line":4,"col":1}
|
||||
33
node_modules/pug-parser/test/cases/attrs-data.tokens.json
generated
vendored
Normal file
33
node_modules/pug-parser/test/cases/attrs-data.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
{"type":"code","line":1,"col":1,"val":"var user = { name: 'tobi' }","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":2,"col":4}
|
||||
{"type":"attribute","line":2,"col":5,"name":"data-user","val":"user","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":19}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":3,"col":4}
|
||||
{"type":"attribute","line":3,"col":5,"name":"data-items","val":"[1,2,3]","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":23}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":4,"col":4}
|
||||
{"type":"attribute","line":4,"col":5,"name":"data-username","val":"'tobi'","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":25}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":5,"col":4}
|
||||
{"type":"attribute","line":5,"col":5,"name":"data-escaped","val":"{message: \"Let's rock!\"}","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":42}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":6,"col":4}
|
||||
{"type":"attribute","line":6,"col":5,"name":"data-ampersand","val":"{message: \"a quote: " this & that\"}","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":60}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"tag","line":7,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":7,"col":4}
|
||||
{"type":"attribute","line":7,"col":5,"name":"data-epoc","val":"new Date(0)","mustEscape":true}
|
||||
{"type":"end-attributes","line":7,"col":26}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"eos","line":8,"col":1}
|
||||
78
node_modules/pug-parser/test/cases/attrs.js.tokens.json
generated
vendored
Normal file
78
node_modules/pug-parser/test/cases/attrs.js.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
{"type":"code","line":1,"col":1,"val":"var id = 5","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"code","line":2,"col":1,"val":"function answer() { return 42; }","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":3,"col":2}
|
||||
{"type":"attribute","line":3,"col":3,"name":"href","val":"'/user/' + id","mustEscape":true}
|
||||
{"type":"attribute","line":3,"col":23,"name":"class","val":"'button'","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":37}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":4,"col":2}
|
||||
{"type":"attribute","line":4,"col":3,"name":"href","val":"'/user/' + id","mustEscape":true}
|
||||
{"type":"attribute","line":4,"col":27,"name":"class","val":"'button'","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":45}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":1,"val":"meta"}
|
||||
{"type":"start-attributes","line":5,"col":5}
|
||||
{"type":"attribute","line":5,"col":6,"name":"key","val":"'answer'","mustEscape":true}
|
||||
{"type":"attribute","line":5,"col":20,"name":"value","val":"answer()","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":34}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":6,"col":2}
|
||||
{"type":"attribute","line":6,"col":3,"name":"class","val":"['class1', 'class2']","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":31}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"tag","line":7,"col":1,"val":"a"}
|
||||
{"type":"class","line":7,"col":2,"val":"tag-class"}
|
||||
{"type":"start-attributes","line":7,"col":12}
|
||||
{"type":"attribute","line":7,"col":13,"name":"class","val":"['class1', 'class2']","mustEscape":true}
|
||||
{"type":"end-attributes","line":7,"col":41}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"tag","line":9,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":9,"col":2}
|
||||
{"type":"attribute","line":9,"col":3,"name":"href","val":"'/user/' + id","mustEscape":true}
|
||||
{"type":"attribute","line":9,"col":22,"name":"class","val":"'button'","mustEscape":true}
|
||||
{"type":"end-attributes","line":9,"col":36}
|
||||
{"type":"newline","line":10,"col":1}
|
||||
{"type":"tag","line":10,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":10,"col":2}
|
||||
{"type":"attribute","line":10,"col":3,"name":"href","val":"'/user/' + id","mustEscape":true}
|
||||
{"type":"attribute","line":10,"col":26,"name":"class","val":"'button'","mustEscape":true}
|
||||
{"type":"end-attributes","line":10,"col":44}
|
||||
{"type":"newline","line":11,"col":1}
|
||||
{"type":"tag","line":11,"col":1,"val":"meta"}
|
||||
{"type":"start-attributes","line":11,"col":5}
|
||||
{"type":"attribute","line":11,"col":6,"name":"key","val":"'answer'","mustEscape":true}
|
||||
{"type":"attribute","line":11,"col":19,"name":"value","val":"answer()","mustEscape":true}
|
||||
{"type":"end-attributes","line":11,"col":33}
|
||||
{"type":"newline","line":12,"col":1}
|
||||
{"type":"tag","line":12,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":12,"col":2}
|
||||
{"type":"attribute","line":12,"col":3,"name":"class","val":"['class1', 'class2']","mustEscape":true}
|
||||
{"type":"end-attributes","line":12,"col":31}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"tag","line":13,"col":1,"val":"a"}
|
||||
{"type":"class","line":13,"col":2,"val":"tag-class"}
|
||||
{"type":"start-attributes","line":13,"col":12}
|
||||
{"type":"attribute","line":13,"col":13,"name":"class","val":"['class1', 'class2']","mustEscape":true}
|
||||
{"type":"end-attributes","line":13,"col":41}
|
||||
{"type":"newline","line":15,"col":1}
|
||||
{"type":"tag","line":15,"col":1,"val":"div"}
|
||||
{"type":"start-attributes","line":15,"col":4}
|
||||
{"type":"attribute","line":15,"col":5,"name":"id","val":"id","mustEscape":true}
|
||||
{"type":"end-attributes","line":15,"col":10}
|
||||
{"type":"&attributes","line":15,"col":11,"val":"{foo: 'bar'}"}
|
||||
{"type":"newline","line":16,"col":1}
|
||||
{"type":"code","line":16,"col":1,"val":"var bar = null","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":17,"col":1}
|
||||
{"type":"tag","line":17,"col":1,"val":"div"}
|
||||
{"type":"start-attributes","line":17,"col":4}
|
||||
{"type":"attribute","line":17,"col":5,"name":"foo","val":"null","mustEscape":true}
|
||||
{"type":"attribute","line":17,"col":14,"name":"bar","val":"bar","mustEscape":true}
|
||||
{"type":"end-attributes","line":17,"col":21}
|
||||
{"type":"&attributes","line":17,"col":22,"val":"{baz: 'baz'}"}
|
||||
{"type":"newline","line":18,"col":1}
|
||||
{"type":"eos","line":18,"col":1}
|
||||
180
node_modules/pug-parser/test/cases/attrs.tokens.json
generated
vendored
Normal file
180
node_modules/pug-parser/test/cases/attrs.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,180 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":1,"col":2}
|
||||
{"type":"attribute","line":1,"col":3,"name":"href","val":"'/contact'","mustEscape":true}
|
||||
{"type":"end-attributes","line":1,"col":18}
|
||||
{"type":"text","line":1,"col":20,"val":"contact"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":2,"col":2}
|
||||
{"type":"attribute","line":2,"col":3,"name":"href","val":"'/save'","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":15}
|
||||
{"type":"class","line":2,"col":16,"val":"button"}
|
||||
{"type":"text","line":2,"col":24,"val":"save"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":3,"col":2}
|
||||
{"type":"attribute","line":3,"col":3,"name":"foo","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":3,"col":8,"name":"bar","val":true,"mustEscape":false}
|
||||
{"type":"attribute","line":3,"col":13,"name":"baz","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":3,"col":16}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":4,"col":2}
|
||||
{"type":"attribute","line":4,"col":3,"name":"foo","val":"'foo, bar, baz'","mustEscape":true}
|
||||
{"type":"attribute","line":4,"col":24,"name":"bar","val":"1","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":29}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":5,"col":2}
|
||||
{"type":"attribute","line":5,"col":3,"name":"foo","val":"'((foo))'","mustEscape":true}
|
||||
{"type":"attribute","line":5,"col":18,"name":"bar","val":"(1) ? 1 : 0","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":35}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"select"}
|
||||
{"type":"indent","line":7,"col":1,"val":2}
|
||||
{"type":"tag","line":7,"col":3,"val":"option"}
|
||||
{"type":"start-attributes","line":7,"col":9}
|
||||
{"type":"attribute","line":7,"col":10,"name":"value","val":"'foo'","mustEscape":true}
|
||||
{"type":"attribute","line":7,"col":23,"name":"selected","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":7,"col":31}
|
||||
{"type":"text","line":7,"col":33,"val":"Foo"}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"tag","line":8,"col":3,"val":"option"}
|
||||
{"type":"start-attributes","line":8,"col":9}
|
||||
{"type":"attribute","line":8,"col":10,"name":"selected","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":8,"col":20,"name":"value","val":"'bar'","mustEscape":true}
|
||||
{"type":"end-attributes","line":8,"col":31}
|
||||
{"type":"text","line":8,"col":33,"val":"Bar"}
|
||||
{"type":"outdent","line":9,"col":1}
|
||||
{"type":"tag","line":9,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":9,"col":2}
|
||||
{"type":"attribute","line":9,"col":3,"name":"foo","val":"\"class:\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":9,"col":15}
|
||||
{"type":"newline","line":10,"col":1}
|
||||
{"type":"tag","line":10,"col":1,"val":"input"}
|
||||
{"type":"start-attributes","line":10,"col":6}
|
||||
{"type":"attribute","line":10,"col":7,"name":"pattern","val":"'\\\\S+'","mustEscape":true}
|
||||
{"type":"end-attributes","line":10,"col":21}
|
||||
{"type":"newline","line":12,"col":1}
|
||||
{"type":"tag","line":12,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":12,"col":2}
|
||||
{"type":"attribute","line":12,"col":3,"name":"href","val":"'/contact'","mustEscape":true}
|
||||
{"type":"end-attributes","line":12,"col":18}
|
||||
{"type":"text","line":12,"col":20,"val":"contact"}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"tag","line":13,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":13,"col":2}
|
||||
{"type":"attribute","line":13,"col":3,"name":"href","val":"'/save'","mustEscape":true}
|
||||
{"type":"end-attributes","line":13,"col":15}
|
||||
{"type":"class","line":13,"col":16,"val":"button"}
|
||||
{"type":"text","line":13,"col":24,"val":"save"}
|
||||
{"type":"newline","line":14,"col":1}
|
||||
{"type":"tag","line":14,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":14,"col":2}
|
||||
{"type":"attribute","line":14,"col":3,"name":"foo","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":14,"col":7,"name":"bar","val":true,"mustEscape":false}
|
||||
{"type":"attribute","line":14,"col":11,"name":"baz","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":14,"col":14}
|
||||
{"type":"newline","line":15,"col":1}
|
||||
{"type":"tag","line":15,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":15,"col":2}
|
||||
{"type":"attribute","line":15,"col":3,"name":"foo","val":"'foo, bar, baz'","mustEscape":true}
|
||||
{"type":"attribute","line":15,"col":23,"name":"bar","val":"1","mustEscape":true}
|
||||
{"type":"end-attributes","line":15,"col":28}
|
||||
{"type":"newline","line":16,"col":1}
|
||||
{"type":"tag","line":16,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":16,"col":2}
|
||||
{"type":"attribute","line":16,"col":3,"name":"foo","val":"'((foo))'","mustEscape":true}
|
||||
{"type":"attribute","line":16,"col":17,"name":"bar","val":"(1) ? 1 : 0","mustEscape":true}
|
||||
{"type":"end-attributes","line":16,"col":34}
|
||||
{"type":"newline","line":17,"col":1}
|
||||
{"type":"tag","line":17,"col":1,"val":"select"}
|
||||
{"type":"indent","line":18,"col":1,"val":2}
|
||||
{"type":"tag","line":18,"col":3,"val":"option"}
|
||||
{"type":"start-attributes","line":18,"col":9}
|
||||
{"type":"attribute","line":18,"col":10,"name":"value","val":"'foo'","mustEscape":true}
|
||||
{"type":"attribute","line":18,"col":22,"name":"selected","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":18,"col":30}
|
||||
{"type":"text","line":18,"col":32,"val":"Foo"}
|
||||
{"type":"newline","line":19,"col":1}
|
||||
{"type":"tag","line":19,"col":3,"val":"option"}
|
||||
{"type":"start-attributes","line":19,"col":9}
|
||||
{"type":"attribute","line":19,"col":10,"name":"selected","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":19,"col":19,"name":"value","val":"'bar'","mustEscape":true}
|
||||
{"type":"end-attributes","line":19,"col":30}
|
||||
{"type":"text","line":19,"col":32,"val":"Bar"}
|
||||
{"type":"outdent","line":20,"col":1}
|
||||
{"type":"tag","line":20,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":20,"col":2}
|
||||
{"type":"attribute","line":20,"col":3,"name":"foo","val":"\"class:\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":20,"col":15}
|
||||
{"type":"newline","line":21,"col":1}
|
||||
{"type":"tag","line":21,"col":1,"val":"input"}
|
||||
{"type":"start-attributes","line":21,"col":6}
|
||||
{"type":"attribute","line":21,"col":7,"name":"pattern","val":"'\\\\S+'","mustEscape":true}
|
||||
{"type":"end-attributes","line":21,"col":21}
|
||||
{"type":"newline","line":22,"col":1}
|
||||
{"type":"tag","line":22,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":22,"col":4}
|
||||
{"type":"attribute","line":22,"col":5,"name":"terse","val":"\"true\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":22,"col":17}
|
||||
{"type":"newline","line":23,"col":1}
|
||||
{"type":"tag","line":23,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":23,"col":4}
|
||||
{"type":"attribute","line":23,"col":5,"name":"date","val":"new Date(0)","mustEscape":true}
|
||||
{"type":"end-attributes","line":23,"col":21}
|
||||
{"type":"newline","line":25,"col":1}
|
||||
{"type":"tag","line":25,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":25,"col":4}
|
||||
{"type":"attribute","line":25,"col":5,"name":"abc","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":26,"col":5,"name":"def","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":26,"col":8}
|
||||
{"type":"newline","line":27,"col":1}
|
||||
{"type":"tag","line":27,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":27,"col":4}
|
||||
{"type":"attribute","line":27,"col":5,"name":"abc","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":28,"col":5,"name":"def","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":28,"col":8}
|
||||
{"type":"newline","line":29,"col":1}
|
||||
{"type":"tag","line":29,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":29,"col":4}
|
||||
{"type":"attribute","line":29,"col":5,"name":"abc","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":30,"col":3,"name":"def","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":30,"col":6}
|
||||
{"type":"newline","line":31,"col":1}
|
||||
{"type":"tag","line":31,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":31,"col":4}
|
||||
{"type":"attribute","line":31,"col":5,"name":"abc","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":32,"col":4,"name":"def","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":32,"col":7}
|
||||
{"type":"newline","line":33,"col":1}
|
||||
{"type":"tag","line":33,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":33,"col":4}
|
||||
{"type":"attribute","line":33,"col":5,"name":"abc","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":34,"col":3,"name":"def","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":34,"col":6}
|
||||
{"type":"newline","line":35,"col":1}
|
||||
{"type":"tag","line":35,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":35,"col":4}
|
||||
{"type":"attribute","line":35,"col":5,"name":"abc","val":true,"mustEscape":true}
|
||||
{"type":"attribute","line":36,"col":5,"name":"def","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":36,"col":8}
|
||||
{"type":"newline","line":38,"col":1}
|
||||
{"type":"code","line":38,"col":1,"val":"var attrs = {foo: 'bar', bar: '<baz>'}","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":40,"col":1}
|
||||
{"type":"tag","line":40,"col":1,"val":"div"}
|
||||
{"type":"&attributes","line":40,"col":4,"val":"attrs"}
|
||||
{"type":"newline","line":42,"col":1}
|
||||
{"type":"tag","line":42,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":42,"col":2}
|
||||
{"type":"attribute","line":42,"col":3,"name":"foo","val":"'foo'","mustEscape":true}
|
||||
{"type":"attribute","line":42,"col":14,"name":"bar","val":"\"bar\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":42,"col":24}
|
||||
{"type":"newline","line":43,"col":1}
|
||||
{"type":"tag","line":43,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":43,"col":2}
|
||||
{"type":"attribute","line":43,"col":3,"name":"foo","val":"'foo'","mustEscape":true}
|
||||
{"type":"attribute","line":43,"col":14,"name":"bar","val":"'bar'","mustEscape":true}
|
||||
{"type":"end-attributes","line":43,"col":24}
|
||||
{"type":"newline","line":44,"col":1}
|
||||
{"type":"eos","line":44,"col":1}
|
||||
15
node_modules/pug-parser/test/cases/attrs.unescaped.tokens.json
generated
vendored
Normal file
15
node_modules/pug-parser/test/cases/attrs.unescaped.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"script"}
|
||||
{"type":"start-attributes","line":1,"col":7}
|
||||
{"type":"attribute","line":1,"col":8,"name":"type","val":"'text/x-template'","mustEscape":true}
|
||||
{"type":"end-attributes","line":1,"col":30}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"div"}
|
||||
{"type":"start-attributes","line":2,"col":6}
|
||||
{"type":"attribute","line":2,"col":7,"name":"id","val":"'user-<%= user.id %>'","mustEscape":false}
|
||||
{"type":"end-attributes","line":2,"col":32}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"h1"}
|
||||
{"type":"text","line":3,"col":8,"val":"<%= user.title %>"}
|
||||
{"type":"outdent","line":3,"col":25}
|
||||
{"type":"outdent","line":3,"col":25}
|
||||
{"type":"eos","line":3,"col":25}
|
||||
9
node_modules/pug-parser/test/cases/basic.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/basic.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"body"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"h1"}
|
||||
{"type":"text","line":3,"col":8,"val":"Title"}
|
||||
{"type":"outdent","line":3,"col":13}
|
||||
{"type":"outdent","line":3,"col":13}
|
||||
{"type":"eos","line":3,"col":13}
|
||||
13
node_modules/pug-parser/test/cases/blanks.tokens.json
generated
vendored
Normal file
13
node_modules/pug-parser/test/cases/blanks.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":4,"col":1,"val":2}
|
||||
{"type":"tag","line":4,"col":3,"val":"li"}
|
||||
{"type":"text","line":4,"col":6,"val":"foo"}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":3,"val":"li"}
|
||||
{"type":"text","line":6,"col":6,"val":"bar"}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"tag","line":8,"col":3,"val":"li"}
|
||||
{"type":"text","line":8,"col":6,"val":"baz"}
|
||||
{"type":"outdent","line":9,"col":1}
|
||||
{"type":"eos","line":9,"col":1}
|
||||
28
node_modules/pug-parser/test/cases/block-code.tokens.json
generated
vendored
Normal file
28
node_modules/pug-parser/test/cases/block-code.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{"type":"blockcode","line":1,"col":1}
|
||||
{"type":"start-pipeless-text","line":1,"col":2}
|
||||
{"type":"text","line":2,"col":3,"val":"list = [\"uno\", \"dos\", \"tres\","}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"text","line":3,"col":3,"val":" \"cuatro\", \"cinco\", \"seis\"];"}
|
||||
{"type":"end-pipeless-text","line":3,"col":38}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"comment","line":4,"col":1,"val":" Without a block, the element is accepted and no code is generated","buffer":false}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"blockcode","line":5,"col":1}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"each","line":6,"col":1,"val":"item","key":null,"code":"list"}
|
||||
{"type":"indent","line":7,"col":1,"val":2}
|
||||
{"type":"blockcode","line":7,"col":3}
|
||||
{"type":"start-pipeless-text","line":7,"col":4}
|
||||
{"type":"text","line":8,"col":5,"val":"string = item.charAt(0)"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"text","line":9,"col":5,"val":""}
|
||||
{"type":"newline","line":10,"col":1}
|
||||
{"type":"text","line":10,"col":5,"val":" .toUpperCase() +"}
|
||||
{"type":"newline","line":11,"col":1}
|
||||
{"type":"text","line":11,"col":5,"val":"item.slice(1);"}
|
||||
{"type":"end-pipeless-text","line":11,"col":19}
|
||||
{"type":"newline","line":12,"col":1}
|
||||
{"type":"tag","line":12,"col":3,"val":"li"}
|
||||
{"type":"code","line":12,"col":5,"val":"string","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":13,"col":1}
|
||||
{"type":"eos","line":13,"col":1}
|
||||
11
node_modules/pug-parser/test/cases/block-expansion.shorthands.tokens.json
generated
vendored
Normal file
11
node_modules/pug-parser/test/cases/block-expansion.shorthands.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"li"}
|
||||
{"type":"class","line":2,"col":5,"val":"list-item"}
|
||||
{"type":":","line":2,"col":15}
|
||||
{"type":"class","line":2,"col":17,"val":"foo"}
|
||||
{"type":":","line":2,"col":21}
|
||||
{"type":"id","line":2,"col":23,"val":"bar"}
|
||||
{"type":"text","line":2,"col":28,"val":"baz"}
|
||||
{"type":"outdent","line":2,"col":31}
|
||||
{"type":"eos","line":2,"col":31}
|
||||
21
node_modules/pug-parser/test/cases/block-expansion.tokens.json
generated
vendored
Normal file
21
node_modules/pug-parser/test/cases/block-expansion.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"li"}
|
||||
{"type":":","line":2,"col":5}
|
||||
{"type":"tag","line":2,"col":7,"val":"a"}
|
||||
{"type":"start-attributes","line":2,"col":8}
|
||||
{"type":"attribute","line":2,"col":9,"name":"href","val":"'#'","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":17}
|
||||
{"type":"text","line":2,"col":19,"val":"foo"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":3,"val":"li"}
|
||||
{"type":":","line":3,"col":5}
|
||||
{"type":"tag","line":3,"col":7,"val":"a"}
|
||||
{"type":"start-attributes","line":3,"col":8}
|
||||
{"type":"attribute","line":3,"col":9,"name":"href","val":"'#'","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":17}
|
||||
{"type":"text","line":3,"col":19,"val":"bar"}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":1,"val":"p"}
|
||||
{"type":"text","line":5,"col":3,"val":"baz"}
|
||||
{"type":"eos","line":5,"col":6}
|
||||
10
node_modules/pug-parser/test/cases/blockquote.tokens.json
generated
vendored
Normal file
10
node_modules/pug-parser/test/cases/blockquote.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"figure"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"blockquote"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"text","line":3,"col":7,"val":"Try to define yourself by what you do, and you’ll burnout every time. You are. That is enough. I rest in that."}
|
||||
{"type":"outdent","line":4,"col":3}
|
||||
{"type":"tag","line":4,"col":3,"val":"figcaption"}
|
||||
{"type":"text","line":4,"col":14,"val":"from @thefray at 1:43pm on May 10"}
|
||||
{"type":"outdent","line":4,"col":47}
|
||||
{"type":"eos","line":4,"col":47}
|
||||
9
node_modules/pug-parser/test/cases/blocks-in-blocks.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/blocks-in-blocks.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"extends","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":9,"val":"./auxiliary/blocks-in-blocks-layout.pug"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"block","line":3,"col":1,"val":"body","mode":"replace"}
|
||||
{"type":"indent","line":4,"col":1,"val":2}
|
||||
{"type":"tag","line":4,"col":3,"val":"h1"}
|
||||
{"type":"text","line":4,"col":6,"val":"Page 2"}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"eos","line":5,"col":1}
|
||||
44
node_modules/pug-parser/test/cases/blocks-in-if.tokens.json
generated
vendored
Normal file
44
node_modules/pug-parser/test/cases/blocks-in-if.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{"type":"comment","line":1,"col":1,"val":" see https://github.com/pugjs/pug/issues/1589","buffer":false}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"code","line":3,"col":1,"val":"var ajax = true","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"code","line":5,"col":1,"val":"if( ajax )","mustEscape":false,"buffer":false}
|
||||
{"type":"indent","line":6,"col":1,"val":4}
|
||||
{"type":"comment","line":6,"col":5,"val":" return only contents if ajax requests","buffer":false}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"block","line":7,"col":5,"val":"contents","mode":"replace"}
|
||||
{"type":"indent","line":8,"col":1,"val":8}
|
||||
{"type":"tag","line":8,"col":9,"val":"p"}
|
||||
{"type":"text","line":8,"col":11,"val":"ajax contents"}
|
||||
{"type":"outdent","line":10,"col":5}
|
||||
{"type":"outdent","line":10,"col":1}
|
||||
{"type":"code","line":10,"col":1,"val":"else","mustEscape":false,"buffer":false}
|
||||
{"type":"indent","line":11,"col":1,"val":4}
|
||||
{"type":"comment","line":11,"col":5,"val":" return all html","buffer":false}
|
||||
{"type":"newline","line":12,"col":1}
|
||||
{"type":"doctype","line":12,"col":5,"val":"html"}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"tag","line":13,"col":5,"val":"html"}
|
||||
{"type":"indent","line":14,"col":1,"val":8}
|
||||
{"type":"tag","line":14,"col":9,"val":"head"}
|
||||
{"type":"indent","line":15,"col":1,"val":12}
|
||||
{"type":"tag","line":15,"col":13,"val":"meta"}
|
||||
{"type":"start-attributes","line":15,"col":17}
|
||||
{"type":"attribute","line":15,"col":19,"name":"charset","val":"'utf8'","mustEscape":true}
|
||||
{"type":"end-attributes","line":15,"col":34}
|
||||
{"type":"newline","line":16,"col":1}
|
||||
{"type":"tag","line":16,"col":13,"val":"title"}
|
||||
{"type":"text","line":16,"col":19,"val":"sample"}
|
||||
{"type":"newline","line":17,"col":1}
|
||||
{"type":"tag","line":17,"col":13,"val":"body"}
|
||||
{"type":"indent","line":18,"col":1,"val":16}
|
||||
{"type":"block","line":18,"col":17,"val":"contents","mode":"replace"}
|
||||
{"type":"indent","line":19,"col":1,"val":20}
|
||||
{"type":"tag","line":19,"col":21,"val":"p"}
|
||||
{"type":"text","line":19,"col":23,"val":"all contetns"}
|
||||
{"type":"outdent","line":20,"col":17}
|
||||
{"type":"outdent","line":20,"col":13}
|
||||
{"type":"outdent","line":20,"col":9}
|
||||
{"type":"outdent","line":20,"col":5}
|
||||
{"type":"outdent","line":20,"col":1}
|
||||
{"type":"eos","line":20,"col":1}
|
||||
29
node_modules/pug-parser/test/cases/case-blocks.tokens.json
generated
vendored
Normal file
29
node_modules/pug-parser/test/cases/case-blocks.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"body"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"code","line":3,"col":5,"val":"var friends = 1","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"case","line":4,"col":5,"val":"friends"}
|
||||
{"type":"indent","line":5,"col":1,"val":6}
|
||||
{"type":"when","line":5,"col":7,"val":"0"}
|
||||
{"type":"indent","line":6,"col":1,"val":8}
|
||||
{"type":"tag","line":6,"col":9,"val":"p"}
|
||||
{"type":"text","line":6,"col":11,"val":"you have no friends"}
|
||||
{"type":"outdent","line":7,"col":7}
|
||||
{"type":"when","line":7,"col":7,"val":"1"}
|
||||
{"type":"indent","line":8,"col":1,"val":8}
|
||||
{"type":"tag","line":8,"col":9,"val":"p"}
|
||||
{"type":"text","line":8,"col":11,"val":"you have a friend"}
|
||||
{"type":"outdent","line":9,"col":7}
|
||||
{"type":"default","line":9,"col":7}
|
||||
{"type":"indent","line":10,"col":1,"val":8}
|
||||
{"type":"tag","line":10,"col":9,"val":"p"}
|
||||
{"type":"text","line":10,"col":11,"val":"you have "}
|
||||
{"type":"interpolated-code","line":10,"col":20,"val":"friends","mustEscape":true,"buffer":true}
|
||||
{"type":"text","line":10,"col":30,"val":" friends"}
|
||||
{"type":"outdent","line":10,"col":38}
|
||||
{"type":"outdent","line":10,"col":38}
|
||||
{"type":"outdent","line":10,"col":38}
|
||||
{"type":"outdent","line":10,"col":38}
|
||||
{"type":"eos","line":10,"col":38}
|
||||
47
node_modules/pug-parser/test/cases/case.tokens.json
generated
vendored
Normal file
47
node_modules/pug-parser/test/cases/case.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"body"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"code","line":3,"col":5,"val":"var friends = 1","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"case","line":4,"col":5,"val":"friends"}
|
||||
{"type":"indent","line":5,"col":1,"val":6}
|
||||
{"type":"when","line":5,"col":7,"val":"0"}
|
||||
{"type":":","line":5,"col":13}
|
||||
{"type":"tag","line":5,"col":15,"val":"p"}
|
||||
{"type":"text","line":5,"col":17,"val":"you have no friends"}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"when","line":6,"col":7,"val":"1"}
|
||||
{"type":":","line":6,"col":13}
|
||||
{"type":"tag","line":6,"col":15,"val":"p"}
|
||||
{"type":"text","line":6,"col":17,"val":"you have a friend"}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"default","line":7,"col":7}
|
||||
{"type":":","line":7,"col":14}
|
||||
{"type":"tag","line":7,"col":16,"val":"p"}
|
||||
{"type":"text","line":7,"col":18,"val":"you have "}
|
||||
{"type":"interpolated-code","line":7,"col":27,"val":"friends","mustEscape":true,"buffer":true}
|
||||
{"type":"text","line":7,"col":37,"val":" friends"}
|
||||
{"type":"outdent","line":8,"col":5}
|
||||
{"type":"code","line":8,"col":5,"val":"var friends = 0","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"case","line":9,"col":5,"val":"friends"}
|
||||
{"type":"indent","line":10,"col":1,"val":6}
|
||||
{"type":"when","line":10,"col":7,"val":"0"}
|
||||
{"type":"newline","line":11,"col":1}
|
||||
{"type":"when","line":11,"col":7,"val":"1"}
|
||||
{"type":"indent","line":12,"col":1,"val":8}
|
||||
{"type":"tag","line":12,"col":9,"val":"p"}
|
||||
{"type":"text","line":12,"col":11,"val":"you have very few friends"}
|
||||
{"type":"outdent","line":13,"col":7}
|
||||
{"type":"default","line":13,"col":7}
|
||||
{"type":"indent","line":14,"col":1,"val":8}
|
||||
{"type":"tag","line":14,"col":9,"val":"p"}
|
||||
{"type":"text","line":14,"col":11,"val":"you have "}
|
||||
{"type":"interpolated-code","line":14,"col":20,"val":"friends","mustEscape":true,"buffer":true}
|
||||
{"type":"text","line":14,"col":30,"val":" friends"}
|
||||
{"type":"outdent","line":14,"col":38}
|
||||
{"type":"outdent","line":14,"col":38}
|
||||
{"type":"outdent","line":14,"col":38}
|
||||
{"type":"outdent","line":14,"col":38}
|
||||
{"type":"eos","line":14,"col":38}
|
||||
15
node_modules/pug-parser/test/cases/classes-empty.tokens.json
generated
vendored
Normal file
15
node_modules/pug-parser/test/cases/classes-empty.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":1,"col":2}
|
||||
{"type":"attribute","line":1,"col":3,"name":"class","val":"''","mustEscape":true}
|
||||
{"type":"end-attributes","line":1,"col":11}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":2,"col":2}
|
||||
{"type":"attribute","line":2,"col":3,"name":"class","val":"null","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":13}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":3,"col":2}
|
||||
{"type":"attribute","line":3,"col":3,"name":"class","val":"undefined","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":18}
|
||||
{"type":"eos","line":3,"col":19}
|
||||
21
node_modules/pug-parser/test/cases/classes.tokens.json
generated
vendored
Normal file
21
node_modules/pug-parser/test/cases/classes.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":1,"col":2}
|
||||
{"type":"attribute","line":1,"col":3,"name":"class","val":"['foo', 'bar', 'baz']","mustEscape":true}
|
||||
{"type":"end-attributes","line":1,"col":30}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":1,"val":"a"}
|
||||
{"type":"class","line":5,"col":2,"val":"foo"}
|
||||
{"type":"start-attributes","line":5,"col":6}
|
||||
{"type":"attribute","line":5,"col":7,"name":"class","val":"'bar'","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":18}
|
||||
{"type":"class","line":5,"col":19,"val":"baz"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"tag","line":9,"col":1,"val":"a"}
|
||||
{"type":"class","line":9,"col":2,"val":"foo-bar_baz"}
|
||||
{"type":"newline","line":11,"col":1}
|
||||
{"type":"tag","line":11,"col":1,"val":"a"}
|
||||
{"type":"start-attributes","line":11,"col":2}
|
||||
{"type":"attribute","line":11,"col":3,"name":"class","val":"{foo: true, bar: false, baz: true}","mustEscape":true}
|
||||
{"type":"end-attributes","line":11,"col":43}
|
||||
{"type":"newline","line":12,"col":1}
|
||||
{"type":"eos","line":12,"col":1}
|
||||
86
node_modules/pug-parser/test/cases/code.conditionals.tokens.json
generated
vendored
Normal file
86
node_modules/pug-parser/test/cases/code.conditionals.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"code","line":2,"col":1,"val":"if (true)","mustEscape":false,"buffer":false}
|
||||
{"type":"indent","line":3,"col":1,"val":2}
|
||||
{"type":"tag","line":3,"col":3,"val":"p"}
|
||||
{"type":"text","line":3,"col":5,"val":"foo"}
|
||||
{"type":"outdent","line":4,"col":1}
|
||||
{"type":"code","line":4,"col":1,"val":"else","mustEscape":false,"buffer":false}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"tag","line":5,"col":3,"val":"p"}
|
||||
{"type":"text","line":5,"col":5,"val":"bar"}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"code","line":7,"col":1,"val":"if (true) {","mustEscape":false,"buffer":false}
|
||||
{"type":"indent","line":8,"col":1,"val":2}
|
||||
{"type":"tag","line":8,"col":3,"val":"p"}
|
||||
{"type":"text","line":8,"col":5,"val":"foo"}
|
||||
{"type":"outdent","line":9,"col":1}
|
||||
{"type":"code","line":9,"col":1,"val":"} else {","mustEscape":false,"buffer":false}
|
||||
{"type":"indent","line":10,"col":1,"val":2}
|
||||
{"type":"tag","line":10,"col":3,"val":"p"}
|
||||
{"type":"text","line":10,"col":5,"val":"bar"}
|
||||
{"type":"outdent","line":11,"col":1}
|
||||
{"type":"code","line":11,"col":1,"val":"}","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"if","line":13,"col":1,"val":"true"}
|
||||
{"type":"indent","line":14,"col":1,"val":2}
|
||||
{"type":"tag","line":14,"col":3,"val":"p"}
|
||||
{"type":"text","line":14,"col":5,"val":"foo"}
|
||||
{"type":"newline","line":15,"col":1}
|
||||
{"type":"tag","line":15,"col":3,"val":"p"}
|
||||
{"type":"text","line":15,"col":5,"val":"bar"}
|
||||
{"type":"newline","line":16,"col":1}
|
||||
{"type":"tag","line":16,"col":3,"val":"p"}
|
||||
{"type":"text","line":16,"col":5,"val":"baz"}
|
||||
{"type":"outdent","line":17,"col":1}
|
||||
{"type":"else","line":17,"col":1,"val":""}
|
||||
{"type":"indent","line":18,"col":1,"val":2}
|
||||
{"type":"tag","line":18,"col":3,"val":"p"}
|
||||
{"type":"text","line":18,"col":5,"val":"bar"}
|
||||
{"type":"outdent","line":20,"col":1}
|
||||
{"type":"if","line":20,"col":1,"val":"!(true)"}
|
||||
{"type":"indent","line":21,"col":1,"val":2}
|
||||
{"type":"tag","line":21,"col":3,"val":"p"}
|
||||
{"type":"text","line":21,"col":5,"val":"foo"}
|
||||
{"type":"outdent","line":22,"col":1}
|
||||
{"type":"else","line":22,"col":1,"val":""}
|
||||
{"type":"indent","line":23,"col":1,"val":2}
|
||||
{"type":"tag","line":23,"col":3,"val":"p"}
|
||||
{"type":"text","line":23,"col":5,"val":"bar"}
|
||||
{"type":"outdent","line":25,"col":1}
|
||||
{"type":"if","line":25,"col":1,"val":"'nested'"}
|
||||
{"type":"indent","line":26,"col":1,"val":2}
|
||||
{"type":"if","line":26,"col":3,"val":"'works'"}
|
||||
{"type":"indent","line":27,"col":1,"val":4}
|
||||
{"type":"tag","line":27,"col":5,"val":"p"}
|
||||
{"type":"text","line":27,"col":7,"val":"yay"}
|
||||
{"type":"outdent","line":29,"col":3}
|
||||
{"type":"outdent","line":29,"col":1}
|
||||
{"type":"comment","line":29,"col":1,"val":" allow empty blocks","buffer":false}
|
||||
{"type":"newline","line":30,"col":1}
|
||||
{"type":"if","line":30,"col":1,"val":"false"}
|
||||
{"type":"newline","line":31,"col":1}
|
||||
{"type":"else","line":31,"col":1,"val":""}
|
||||
{"type":"indent","line":32,"col":1,"val":2}
|
||||
{"type":"class","line":32,"col":3,"val":"bar"}
|
||||
{"type":"outdent","line":33,"col":1}
|
||||
{"type":"if","line":33,"col":1,"val":"true"}
|
||||
{"type":"indent","line":34,"col":1,"val":2}
|
||||
{"type":"class","line":34,"col":3,"val":"bar"}
|
||||
{"type":"outdent","line":35,"col":1}
|
||||
{"type":"else","line":35,"col":1,"val":""}
|
||||
{"type":"newline","line":36,"col":1}
|
||||
{"type":"class","line":36,"col":1,"val":"bing"}
|
||||
{"type":"newline","line":38,"col":1}
|
||||
{"type":"if","line":38,"col":1,"val":"false"}
|
||||
{"type":"indent","line":39,"col":1,"val":2}
|
||||
{"type":"class","line":39,"col":3,"val":"bing"}
|
||||
{"type":"outdent","line":40,"col":1}
|
||||
{"type":"else-if","line":40,"col":1,"val":"false"}
|
||||
{"type":"indent","line":41,"col":1,"val":2}
|
||||
{"type":"class","line":41,"col":3,"val":"bar"}
|
||||
{"type":"outdent","line":42,"col":1}
|
||||
{"type":"else","line":42,"col":1,"val":""}
|
||||
{"type":"indent","line":43,"col":1,"val":2}
|
||||
{"type":"class","line":43,"col":3,"val":"foo"}
|
||||
{"type":"outdent","line":43,"col":7}
|
||||
{"type":"eos","line":43,"col":7}
|
||||
6
node_modules/pug-parser/test/cases/code.escape.tokens.json
generated
vendored
Normal file
6
node_modules/pug-parser/test/cases/code.escape.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"p"}
|
||||
{"type":"code","line":1,"col":2,"val":"'<script>'","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"p"}
|
||||
{"type":"code","line":2,"col":2,"val":"'<script>'","mustEscape":false,"buffer":true}
|
||||
{"type":"eos","line":2,"col":15}
|
||||
71
node_modules/pug-parser/test/cases/code.iteration.tokens.json
generated
vendored
Normal file
71
node_modules/pug-parser/test/cases/code.iteration.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"code","line":2,"col":1,"val":"var items = [1,2,3]","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"code","line":5,"col":3,"val":"items.forEach(function(item){","mustEscape":false,"buffer":false}
|
||||
{"type":"indent","line":6,"col":1,"val":4}
|
||||
{"type":"tag","line":6,"col":5,"val":"li"}
|
||||
{"type":"code","line":6,"col":7,"val":"item","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":7,"col":3}
|
||||
{"type":"code","line":7,"col":3,"val":"})","mustEscape":false,"buffer":false}
|
||||
{"type":"outdent","line":9,"col":1}
|
||||
{"type":"code","line":9,"col":1,"val":"var items = [1,2,3]","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":11,"col":1}
|
||||
{"type":"tag","line":11,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":12,"col":1,"val":2}
|
||||
{"type":"each","line":12,"col":3,"val":"item","key":"i","code":"items"}
|
||||
{"type":"indent","line":13,"col":1,"val":4}
|
||||
{"type":"tag","line":13,"col":5,"val":"li"}
|
||||
{"type":"start-attributes","line":13,"col":7}
|
||||
{"type":"attribute","line":13,"col":8,"name":"class","val":"'item-' + i","mustEscape":true}
|
||||
{"type":"end-attributes","line":13,"col":25}
|
||||
{"type":"code","line":13,"col":26,"val":"item","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":15,"col":3}
|
||||
{"type":"outdent","line":15,"col":1}
|
||||
{"type":"tag","line":15,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":16,"col":1,"val":2}
|
||||
{"type":"each","line":16,"col":3,"val":"item","key":"i","code":"items"}
|
||||
{"type":"indent","line":17,"col":1,"val":4}
|
||||
{"type":"tag","line":17,"col":5,"val":"li"}
|
||||
{"type":"code","line":17,"col":7,"val":"item","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":19,"col":3}
|
||||
{"type":"outdent","line":19,"col":1}
|
||||
{"type":"tag","line":19,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":20,"col":1,"val":2}
|
||||
{"type":"each","line":20,"col":3,"val":"$item","key":null,"code":"items"}
|
||||
{"type":"indent","line":21,"col":1,"val":4}
|
||||
{"type":"tag","line":21,"col":5,"val":"li"}
|
||||
{"type":"code","line":21,"col":7,"val":"$item","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":23,"col":3}
|
||||
{"type":"outdent","line":23,"col":1}
|
||||
{"type":"code","line":23,"col":1,"val":"var nums = [1, 2, 3]","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":24,"col":1}
|
||||
{"type":"code","line":24,"col":1,"val":"var letters = ['a', 'b', 'c']","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":26,"col":1}
|
||||
{"type":"tag","line":26,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":27,"col":1,"val":2}
|
||||
{"type":"each","line":27,"col":3,"val":"l","key":null,"code":"letters"}
|
||||
{"type":"indent","line":28,"col":1,"val":4}
|
||||
{"type":"each","line":28,"col":5,"val":"n","key":null,"code":"nums"}
|
||||
{"type":"indent","line":29,"col":1,"val":6}
|
||||
{"type":"tag","line":29,"col":7,"val":"li"}
|
||||
{"type":"interpolated-code","line":29,"col":10,"val":"n","mustEscape":true,"buffer":true}
|
||||
{"type":"text","line":29,"col":14,"val":": "}
|
||||
{"type":"interpolated-code","line":29,"col":16,"val":"l","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":31,"col":5}
|
||||
{"type":"outdent","line":31,"col":3}
|
||||
{"type":"outdent","line":31,"col":1}
|
||||
{"type":"code","line":31,"col":1,"val":"var count = 1","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":32,"col":1}
|
||||
{"type":"code","line":32,"col":1,"val":"var counter = function() { return [count++, count++, count++] }","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":33,"col":1}
|
||||
{"type":"tag","line":33,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":34,"col":1,"val":2}
|
||||
{"type":"each","line":34,"col":3,"val":"n","key":null,"code":"counter()"}
|
||||
{"type":"indent","line":35,"col":1,"val":4}
|
||||
{"type":"tag","line":35,"col":5,"val":"li"}
|
||||
{"type":"interpolated-code","line":35,"col":8,"val":"n","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":36,"col":3}
|
||||
{"type":"outdent","line":36,"col":1}
|
||||
{"type":"eos","line":36,"col":1}
|
||||
40
node_modules/pug-parser/test/cases/code.tokens.json
generated
vendored
Normal file
40
node_modules/pug-parser/test/cases/code.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"p"}
|
||||
{"type":"code","line":1,"col":2,"val":"null","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"p"}
|
||||
{"type":"code","line":2,"col":2,"val":"undefined","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"p"}
|
||||
{"type":"code","line":3,"col":2,"val":"''","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":1,"val":"p"}
|
||||
{"type":"code","line":4,"col":2,"val":"0","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":1,"val":"p"}
|
||||
{"type":"code","line":5,"col":2,"val":"false","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"p"}
|
||||
{"type":"start-attributes","line":6,"col":2}
|
||||
{"type":"attribute","line":6,"col":3,"name":"foo","val":"null","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":11}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"tag","line":7,"col":1,"val":"p"}
|
||||
{"type":"start-attributes","line":7,"col":2}
|
||||
{"type":"attribute","line":7,"col":3,"name":"foo","val":"undefined","mustEscape":true}
|
||||
{"type":"end-attributes","line":7,"col":16}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"tag","line":8,"col":1,"val":"p"}
|
||||
{"type":"start-attributes","line":8,"col":2}
|
||||
{"type":"attribute","line":8,"col":3,"name":"foo","val":"''","mustEscape":true}
|
||||
{"type":"end-attributes","line":8,"col":9}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"tag","line":9,"col":1,"val":"p"}
|
||||
{"type":"start-attributes","line":9,"col":2}
|
||||
{"type":"attribute","line":9,"col":3,"name":"foo","val":"0","mustEscape":true}
|
||||
{"type":"end-attributes","line":9,"col":8}
|
||||
{"type":"newline","line":10,"col":1}
|
||||
{"type":"tag","line":10,"col":1,"val":"p"}
|
||||
{"type":"start-attributes","line":10,"col":2}
|
||||
{"type":"attribute","line":10,"col":3,"name":"foo","val":"false","mustEscape":true}
|
||||
{"type":"end-attributes","line":10,"col":12}
|
||||
{"type":"eos","line":10,"col":13}
|
||||
26
node_modules/pug-parser/test/cases/comments-in-case.tokens.json
generated
vendored
Normal file
26
node_modules/pug-parser/test/cases/comments-in-case.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{"type":"doctype","line":1,"col":1,"val":"html"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"html"}
|
||||
{"type":"indent","line":3,"col":1,"val":2}
|
||||
{"type":"tag","line":3,"col":3,"val":"body"}
|
||||
{"type":"indent","line":4,"col":1,"val":3}
|
||||
{"type":"code","line":4,"col":4,"val":"var s = 'this'","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"case","line":5,"col":4,"val":"s"}
|
||||
{"type":"indent","line":6,"col":1,"val":5}
|
||||
{"type":"comment","line":6,"col":6,"val":" Comment","buffer":false}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"when","line":7,"col":6,"val":"'this'"}
|
||||
{"type":"indent","line":8,"col":1,"val":7}
|
||||
{"type":"tag","line":8,"col":8,"val":"p"}
|
||||
{"type":"text","line":8,"col":10,"val":"It's this!"}
|
||||
{"type":"outdent","line":9,"col":6}
|
||||
{"type":"when","line":9,"col":6,"val":"'that'"}
|
||||
{"type":"indent","line":10,"col":1,"val":7}
|
||||
{"type":"tag","line":10,"col":8,"val":"p"}
|
||||
{"type":"text","line":10,"col":10,"val":"It's that!"}
|
||||
{"type":"outdent","line":10,"col":20}
|
||||
{"type":"outdent","line":10,"col":20}
|
||||
{"type":"outdent","line":10,"col":20}
|
||||
{"type":"outdent","line":10,"col":20}
|
||||
{"type":"eos","line":10,"col":20}
|
||||
18
node_modules/pug-parser/test/cases/comments.source.tokens.json
generated
vendored
Normal file
18
node_modules/pug-parser/test/cases/comments.source.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
{"type":"comment","line":1,"col":1,"val":"","buffer":false}
|
||||
{"type":"start-pipeless-text","line":1,"col":4}
|
||||
{"type":"text","line":2,"col":3,"val":"s/s."}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"text","line":3,"col":3,"val":""}
|
||||
{"type":"end-pipeless-text","line":3,"col":3}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"comment","line":4,"col":1,"val":" test/cases/comments.source.pug","buffer":false}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"comment","line":6,"col":1,"val":"","buffer":false}
|
||||
{"type":"start-pipeless-text","line":6,"col":4}
|
||||
{"type":"text","line":7,"col":3,"val":"test/cases/comments.source.pug"}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"text","line":8,"col":3,"val":"when"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"text","line":9,"col":3,"val":"()"}
|
||||
{"type":"end-pipeless-text","line":9,"col":5}
|
||||
{"type":"eos","line":9,"col":5}
|
||||
61
node_modules/pug-parser/test/cases/comments.tokens.json
generated
vendored
Normal file
61
node_modules/pug-parser/test/cases/comments.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"comment","line":2,"col":1,"val":" foo","buffer":true}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":4,"col":1,"val":2}
|
||||
{"type":"comment","line":4,"col":3,"val":" bar","buffer":true}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":3,"val":"li"}
|
||||
{"type":"text","line":5,"col":6,"val":"one"}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"comment","line":6,"col":3,"val":" baz","buffer":true}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"tag","line":7,"col":3,"val":"li"}
|
||||
{"type":"text","line":7,"col":6,"val":"two"}
|
||||
{"type":"outdent","line":9,"col":1}
|
||||
{"type":"comment","line":9,"col":1,"val":"","buffer":true}
|
||||
{"type":"start-pipeless-text","line":9,"col":3}
|
||||
{"type":"text","line":10,"col":3,"val":"ul"}
|
||||
{"type":"newline","line":11,"col":1}
|
||||
{"type":"text","line":11,"col":3,"val":" li foo"}
|
||||
{"type":"newline","line":12,"col":1}
|
||||
{"type":"text","line":12,"col":3,"val":""}
|
||||
{"type":"end-pipeless-text","line":12,"col":3}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"comment","line":13,"col":1,"val":" block","buffer":true}
|
||||
{"type":"start-pipeless-text","line":13,"col":9}
|
||||
{"type":"text","line":14,"col":3,"val":"// inline follow"}
|
||||
{"type":"newline","line":15,"col":1}
|
||||
{"type":"text","line":15,"col":3,"val":"li three"}
|
||||
{"type":"newline","line":16,"col":1}
|
||||
{"type":"text","line":16,"col":3,"val":""}
|
||||
{"type":"end-pipeless-text","line":16,"col":3}
|
||||
{"type":"newline","line":17,"col":1}
|
||||
{"type":"comment","line":17,"col":1,"val":" block","buffer":true}
|
||||
{"type":"start-pipeless-text","line":17,"col":9}
|
||||
{"type":"text","line":18,"col":3,"val":"// inline followed by tags"}
|
||||
{"type":"newline","line":19,"col":1}
|
||||
{"type":"text","line":19,"col":3,"val":"ul"}
|
||||
{"type":"newline","line":20,"col":1}
|
||||
{"type":"text","line":20,"col":3,"val":" li four"}
|
||||
{"type":"newline","line":21,"col":1}
|
||||
{"type":"text","line":21,"col":3,"val":""}
|
||||
{"type":"end-pipeless-text","line":21,"col":3}
|
||||
{"type":"newline","line":22,"col":1}
|
||||
{"type":"comment","line":22,"col":1,"val":"if IE lt 9","buffer":true}
|
||||
{"type":"start-pipeless-text","line":22,"col":13}
|
||||
{"type":"text","line":23,"col":3,"val":"// inline"}
|
||||
{"type":"newline","line":24,"col":1}
|
||||
{"type":"text","line":24,"col":3,"val":"script(src='/lame.js')"}
|
||||
{"type":"newline","line":25,"col":1}
|
||||
{"type":"text","line":25,"col":3,"val":"// end-inline"}
|
||||
{"type":"newline","line":26,"col":1}
|
||||
{"type":"text","line":26,"col":3,"val":""}
|
||||
{"type":"end-pipeless-text","line":26,"col":3}
|
||||
{"type":"newline","line":27,"col":1}
|
||||
{"type":"tag","line":27,"col":1,"val":"p"}
|
||||
{"type":"text","line":27,"col":3,"val":"five"}
|
||||
{"type":"newline","line":29,"col":1}
|
||||
{"type":"class","line":29,"col":1,"val":"foo"}
|
||||
{"type":"text","line":29,"col":6,"val":"// not a comment"}
|
||||
{"type":"eos","line":29,"col":22}
|
||||
2
node_modules/pug-parser/test/cases/doctype.custom.tokens.json
generated
vendored
Normal file
2
node_modules/pug-parser/test/cases/doctype.custom.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
{"type":"doctype","line":1,"col":1,"val":"custom stuff"}
|
||||
{"type":"eos","line":1,"col":21}
|
||||
11
node_modules/pug-parser/test/cases/doctype.default.tokens.json
generated
vendored
Normal file
11
node_modules/pug-parser/test/cases/doctype.default.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{"type":"doctype","line":1,"col":1,"val":""}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"html"}
|
||||
{"type":"indent","line":3,"col":1,"val":2}
|
||||
{"type":"tag","line":3,"col":3,"val":"body"}
|
||||
{"type":"indent","line":4,"col":1,"val":4}
|
||||
{"type":"tag","line":4,"col":5,"val":"h1"}
|
||||
{"type":"text","line":4,"col":8,"val":"Title"}
|
||||
{"type":"outdent","line":4,"col":13}
|
||||
{"type":"outdent","line":4,"col":13}
|
||||
{"type":"eos","line":4,"col":13}
|
||||
2
node_modules/pug-parser/test/cases/doctype.keyword.tokens.json
generated
vendored
Normal file
2
node_modules/pug-parser/test/cases/doctype.keyword.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
{"type":"doctype","line":1,"col":1,"val":"html"}
|
||||
{"type":"eos","line":1,"col":13}
|
||||
88
node_modules/pug-parser/test/cases/each.else.tokens.json
generated
vendored
Normal file
88
node_modules/pug-parser/test/cases/each.else.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"code","line":2,"col":1,"val":"var users = []","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"each","line":5,"col":3,"val":"user","key":null,"code":"users"}
|
||||
{"type":"indent","line":6,"col":1,"val":4}
|
||||
{"type":"tag","line":6,"col":5,"val":"li"}
|
||||
{"type":"code","line":6,"col":7,"val":"user.name","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":7,"col":3}
|
||||
{"type":"else","line":7,"col":3,"val":""}
|
||||
{"type":"indent","line":8,"col":1,"val":4}
|
||||
{"type":"tag","line":8,"col":5,"val":"li"}
|
||||
{"type":"text","line":8,"col":8,"val":"no users!"}
|
||||
{"type":"outdent","line":11,"col":3}
|
||||
{"type":"outdent","line":11,"col":1}
|
||||
{"type":"code","line":11,"col":1,"val":"var users = [{ name: 'tobi', friends: ['loki'] }, { name: 'loki' }]","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"if","line":13,"col":1,"val":"users"}
|
||||
{"type":"indent","line":14,"col":1,"val":2}
|
||||
{"type":"tag","line":14,"col":3,"val":"ul"}
|
||||
{"type":"indent","line":15,"col":1,"val":4}
|
||||
{"type":"each","line":15,"col":5,"val":"user","key":null,"code":"users"}
|
||||
{"type":"indent","line":16,"col":1,"val":6}
|
||||
{"type":"tag","line":16,"col":7,"val":"li"}
|
||||
{"type":"code","line":16,"col":9,"val":"user.name","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":17,"col":5}
|
||||
{"type":"else","line":17,"col":5,"val":""}
|
||||
{"type":"indent","line":18,"col":1,"val":6}
|
||||
{"type":"tag","line":18,"col":7,"val":"li"}
|
||||
{"type":"text","line":18,"col":10,"val":"no users!"}
|
||||
{"type":"outdent","line":20,"col":5}
|
||||
{"type":"outdent","line":20,"col":3}
|
||||
{"type":"outdent","line":20,"col":1}
|
||||
{"type":"code","line":20,"col":1,"val":"var user = { name: 'tobi', age: 10 }","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":22,"col":1}
|
||||
{"type":"tag","line":22,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":23,"col":1,"val":2}
|
||||
{"type":"each","line":23,"col":3,"val":"val","key":"key","code":"user"}
|
||||
{"type":"indent","line":24,"col":1,"val":4}
|
||||
{"type":"tag","line":24,"col":5,"val":"li"}
|
||||
{"type":"interpolated-code","line":24,"col":8,"val":"key","mustEscape":true,"buffer":true}
|
||||
{"type":"text","line":24,"col":14,"val":": "}
|
||||
{"type":"interpolated-code","line":24,"col":16,"val":"val","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":25,"col":3}
|
||||
{"type":"else","line":25,"col":3,"val":""}
|
||||
{"type":"indent","line":26,"col":1,"val":4}
|
||||
{"type":"tag","line":26,"col":5,"val":"li"}
|
||||
{"type":"text","line":26,"col":8,"val":"user has no details!"}
|
||||
{"type":"outdent","line":28,"col":3}
|
||||
{"type":"outdent","line":28,"col":1}
|
||||
{"type":"code","line":28,"col":1,"val":"var user = {}","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":30,"col":1}
|
||||
{"type":"tag","line":30,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":31,"col":1,"val":2}
|
||||
{"type":"each","line":31,"col":3,"val":"prop","key":"key","code":"user"}
|
||||
{"type":"indent","line":32,"col":1,"val":4}
|
||||
{"type":"tag","line":32,"col":5,"val":"li"}
|
||||
{"type":"interpolated-code","line":32,"col":8,"val":"key","mustEscape":true,"buffer":true}
|
||||
{"type":"text","line":32,"col":14,"val":": "}
|
||||
{"type":"interpolated-code","line":32,"col":16,"val":"val","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":33,"col":3}
|
||||
{"type":"else","line":33,"col":3,"val":""}
|
||||
{"type":"indent","line":34,"col":1,"val":4}
|
||||
{"type":"tag","line":34,"col":5,"val":"li"}
|
||||
{"type":"text","line":34,"col":8,"val":"user has no details!"}
|
||||
{"type":"outdent","line":36,"col":3}
|
||||
{"type":"outdent","line":36,"col":1}
|
||||
{"type":"code","line":36,"col":1,"val":"var user = Object.create(null)","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":37,"col":1}
|
||||
{"type":"code","line":37,"col":1,"val":"user.name = 'tobi'","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":39,"col":1}
|
||||
{"type":"tag","line":39,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":40,"col":1,"val":2}
|
||||
{"type":"each","line":40,"col":3,"val":"val","key":"key","code":"user"}
|
||||
{"type":"indent","line":41,"col":1,"val":4}
|
||||
{"type":"tag","line":41,"col":5,"val":"li"}
|
||||
{"type":"interpolated-code","line":41,"col":8,"val":"key","mustEscape":true,"buffer":true}
|
||||
{"type":"text","line":41,"col":14,"val":": "}
|
||||
{"type":"interpolated-code","line":41,"col":16,"val":"val","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":42,"col":3}
|
||||
{"type":"else","line":42,"col":3,"val":""}
|
||||
{"type":"indent","line":43,"col":1,"val":4}
|
||||
{"type":"tag","line":43,"col":5,"val":"li"}
|
||||
{"type":"text","line":43,"col":8,"val":"user has no details!"}
|
||||
{"type":"outdent","line":44,"col":3}
|
||||
{"type":"outdent","line":44,"col":1}
|
||||
{"type":"eos","line":44,"col":1}
|
||||
6
node_modules/pug-parser/test/cases/escape-chars.tokens.json
generated
vendored
Normal file
6
node_modules/pug-parser/test/cases/escape-chars.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"script"}
|
||||
{"type":"dot","line":1,"col":7}
|
||||
{"type":"start-pipeless-text","line":1,"col":8}
|
||||
{"type":"text","line":2,"col":3,"val":"var re = /\\d+/;"}
|
||||
{"type":"end-pipeless-text","line":2,"col":18}
|
||||
{"type":"eos","line":2,"col":18}
|
||||
20
node_modules/pug-parser/test/cases/escape-test.tokens.json
generated
vendored
Normal file
20
node_modules/pug-parser/test/cases/escape-test.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{"type":"doctype","line":1,"col":1,"val":"html"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"html"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"head"}
|
||||
{"type":"indent","line":4,"col":1,"val":8}
|
||||
{"type":"tag","line":4,"col":9,"val":"title"}
|
||||
{"type":"text","line":4,"col":15,"val":"escape-test"}
|
||||
{"type":"outdent","line":5,"col":5}
|
||||
{"type":"tag","line":5,"col":5,"val":"body"}
|
||||
{"type":"indent","line":6,"col":1,"val":8}
|
||||
{"type":"tag","line":6,"col":9,"val":"textarea"}
|
||||
{"type":"indent","line":7,"col":1,"val":12}
|
||||
{"type":"code","line":7,"col":13,"val":"var txt = '<param name=\"flashvars\" value=\"a="value_a"&b="value_b"&c=3\"/>'","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"interpolated-code","line":8,"col":15,"val":"txt","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":9,"col":9}
|
||||
{"type":"outdent","line":9,"col":5}
|
||||
{"type":"outdent","line":9,"col":1}
|
||||
{"type":"eos","line":9,"col":1}
|
||||
31
node_modules/pug-parser/test/cases/escaping-class-attribute.tokens.json
generated
vendored
Normal file
31
node_modules/pug-parser/test/cases/escaping-class-attribute.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":1,"col":4}
|
||||
{"type":"attribute","line":1,"col":5,"name":"attr","val":"\"<%= bar %>\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":1,"col":22}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":2,"col":4}
|
||||
{"type":"attribute","line":2,"col":5,"name":"class","val":"\"<%= bar %>\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":23}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":3,"col":4}
|
||||
{"type":"attribute","line":3,"col":5,"name":"attr","val":"\"<%= bar %>\"","mustEscape":false}
|
||||
{"type":"end-attributes","line":3,"col":23}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":4,"col":4}
|
||||
{"type":"attribute","line":4,"col":5,"name":"class","val":"\"<%= bar %>\"","mustEscape":false}
|
||||
{"type":"end-attributes","line":4,"col":24}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":5,"col":4}
|
||||
{"type":"attribute","line":5,"col":5,"name":"class","val":"\"<%= bar %> lol rofl\"","mustEscape":false}
|
||||
{"type":"end-attributes","line":5,"col":33}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":6,"col":4}
|
||||
{"type":"attribute","line":6,"col":5,"name":"class","val":"\"<%= bar %> lol rofl <%= lmao %>\"","mustEscape":false}
|
||||
{"type":"end-attributes","line":6,"col":45}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"eos","line":7,"col":1}
|
||||
4
node_modules/pug-parser/test/cases/filter-in-include.tokens.json
generated
vendored
Normal file
4
node_modules/pug-parser/test/cases/filter-in-include.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{"type":"include","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":9,"val":"./auxiliary/filter-in-include.pug"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"eos","line":2,"col":1}
|
||||
16
node_modules/pug-parser/test/cases/filters-empty.tokens.json
generated
vendored
Normal file
16
node_modules/pug-parser/test/cases/filters-empty.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{"type":"code","line":1,"col":1,"val":"var users = [{ name: 'tobi', age: 2 }]","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"fb:users"}
|
||||
{"type":"indent","line":4,"col":1,"val":2}
|
||||
{"type":"each","line":4,"col":3,"val":"user","key":null,"code":"users"}
|
||||
{"type":"indent","line":5,"col":1,"val":4}
|
||||
{"type":"tag","line":5,"col":5,"val":"fb:user"}
|
||||
{"type":"start-attributes","line":5,"col":12}
|
||||
{"type":"attribute","line":5,"col":13,"name":"age","val":"user.age","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":25}
|
||||
{"type":"indent","line":6,"col":1,"val":6}
|
||||
{"type":"filter","line":6,"col":7,"val":"cdata"}
|
||||
{"type":"outdent","line":7,"col":5}
|
||||
{"type":"outdent","line":7,"col":3}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"eos","line":7,"col":1}
|
||||
21
node_modules/pug-parser/test/cases/filters.coffeescript.tokens.json
generated
vendored
Normal file
21
node_modules/pug-parser/test/cases/filters.coffeescript.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"script"}
|
||||
{"type":"start-attributes","line":1,"col":7}
|
||||
{"type":"attribute","line":1,"col":8,"name":"type","val":"'text/javascript'","mustEscape":true}
|
||||
{"type":"end-attributes","line":1,"col":30}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"filter","line":2,"col":3,"val":"coffee-script"}
|
||||
{"type":"start-pipeless-text","line":2,"col":17}
|
||||
{"type":"text","line":3,"col":5,"val":"regexp = /\\n/"}
|
||||
{"type":"end-pipeless-text","line":3,"col":18}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"filter","line":4,"col":3,"val":"coffee-script"}
|
||||
{"type":"start-attributes","line":4,"col":17}
|
||||
{"type":"attribute","line":4,"col":18,"name":"minify","val":"true","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":29}
|
||||
{"type":"start-pipeless-text","line":4,"col":30}
|
||||
{"type":"text","line":5,"col":5,"val":"math ="}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"text","line":6,"col":5,"val":" square: (value) -> value * value"}
|
||||
{"type":"end-pipeless-text","line":6,"col":39}
|
||||
{"type":"outdent","line":6,"col":39}
|
||||
{"type":"eos","line":6,"col":39}
|
||||
21
node_modules/pug-parser/test/cases/filters.custom.tokens.json
generated
vendored
Normal file
21
node_modules/pug-parser/test/cases/filters.custom.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"body"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"filter","line":3,"col":5,"val":"custom"}
|
||||
{"type":"start-attributes","line":3,"col":12}
|
||||
{"type":"attribute","line":3,"col":13,"name":"opt","val":"'val'","mustEscape":true}
|
||||
{"type":"attribute","line":3,"col":23,"name":"num","val":"2","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":28}
|
||||
{"type":"start-pipeless-text","line":3,"col":29}
|
||||
{"type":"text","line":4,"col":7,"val":"Line 1"}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"text","line":5,"col":7,"val":"Line 2"}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"text","line":6,"col":7,"val":""}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"text","line":7,"col":7,"val":"Line 4"}
|
||||
{"type":"end-pipeless-text","line":7,"col":13}
|
||||
{"type":"outdent","line":7,"col":13}
|
||||
{"type":"outdent","line":7,"col":13}
|
||||
{"type":"eos","line":7,"col":13}
|
||||
17
node_modules/pug-parser/test/cases/filters.include.custom.tokens.json
generated
vendored
Normal file
17
node_modules/pug-parser/test/cases/filters.include.custom.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"body"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"pre"}
|
||||
{"type":"indent","line":4,"col":1,"val":6}
|
||||
{"type":"include","line":4,"col":7}
|
||||
{"type":"filter","line":4,"col":14,"val":"custom"}
|
||||
{"type":"start-attributes","line":4,"col":21}
|
||||
{"type":"attribute","line":4,"col":22,"name":"opt","val":"'val'","mustEscape":true}
|
||||
{"type":"attribute","line":4,"col":32,"name":"num","val":"2","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":37}
|
||||
{"type":"path","line":4,"col":39,"val":"filters.include.custom.pug"}
|
||||
{"type":"outdent","line":5,"col":5}
|
||||
{"type":"outdent","line":5,"col":3}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"eos","line":5,"col":1}
|
||||
29
node_modules/pug-parser/test/cases/filters.include.tokens.json
generated
vendored
Normal file
29
node_modules/pug-parser/test/cases/filters.include.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"body"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"include","line":3,"col":5}
|
||||
{"type":"filter","line":3,"col":12,"val":"markdown-it"}
|
||||
{"type":"path","line":3,"col":25,"val":"some.md"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":5,"val":"script"}
|
||||
{"type":"indent","line":5,"col":1,"val":6}
|
||||
{"type":"include","line":5,"col":7}
|
||||
{"type":"filter","line":5,"col":14,"val":"coffee-script"}
|
||||
{"type":"start-attributes","line":5,"col":28}
|
||||
{"type":"attribute","line":5,"col":29,"name":"minify","val":"true","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":40}
|
||||
{"type":"path","line":5,"col":42,"val":"include-filter-coffee.coffee"}
|
||||
{"type":"outdent","line":6,"col":5}
|
||||
{"type":"tag","line":6,"col":5,"val":"script"}
|
||||
{"type":"indent","line":7,"col":1,"val":6}
|
||||
{"type":"include","line":7,"col":7}
|
||||
{"type":"filter","line":7,"col":14,"val":"coffee-script"}
|
||||
{"type":"start-attributes","line":7,"col":28}
|
||||
{"type":"attribute","line":7,"col":29,"name":"minify","val":"false","mustEscape":true}
|
||||
{"type":"end-attributes","line":7,"col":41}
|
||||
{"type":"path","line":7,"col":43,"val":"include-filter-coffee.coffee"}
|
||||
{"type":"outdent","line":8,"col":5}
|
||||
{"type":"outdent","line":8,"col":3}
|
||||
{"type":"outdent","line":8,"col":1}
|
||||
{"type":"eos","line":8,"col":1}
|
||||
8
node_modules/pug-parser/test/cases/filters.inline.tokens.json
generated
vendored
Normal file
8
node_modules/pug-parser/test/cases/filters.inline.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"p"}
|
||||
{"type":"text","line":1,"col":3,"val":"before "}
|
||||
{"type":"start-pug-interpolation","line":1,"col":10}
|
||||
{"type":"filter","line":1,"col":12,"val":"cdata"}
|
||||
{"type":"text","line":1,"col":19,"val":"inside"}
|
||||
{"type":"end-pug-interpolation","line":1,"col":25}
|
||||
{"type":"text","line":1,"col":26,"val":" after"}
|
||||
{"type":"eos","line":1,"col":32}
|
||||
23
node_modules/pug-parser/test/cases/filters.less.tokens.json
generated
vendored
Normal file
23
node_modules/pug-parser/test/cases/filters.less.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"head"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"style"}
|
||||
{"type":"start-attributes","line":3,"col":10}
|
||||
{"type":"attribute","line":3,"col":11,"name":"type","val":"\"text/css\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":26}
|
||||
{"type":"indent","line":4,"col":1,"val":6}
|
||||
{"type":"filter","line":4,"col":7,"val":"less"}
|
||||
{"type":"start-pipeless-text","line":4,"col":12}
|
||||
{"type":"text","line":5,"col":9,"val":"@pad: 15px;"}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"text","line":6,"col":9,"val":"body {"}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"text","line":7,"col":9,"val":" padding: @pad;"}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"text","line":8,"col":9,"val":"}"}
|
||||
{"type":"end-pipeless-text","line":8,"col":10}
|
||||
{"type":"outdent","line":8,"col":10}
|
||||
{"type":"outdent","line":8,"col":10}
|
||||
{"type":"outdent","line":8,"col":10}
|
||||
{"type":"eos","line":8,"col":10}
|
||||
13
node_modules/pug-parser/test/cases/filters.markdown.tokens.json
generated
vendored
Normal file
13
node_modules/pug-parser/test/cases/filters.markdown.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"body"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"filter","line":3,"col":5,"val":"markdown-it"}
|
||||
{"type":"start-pipeless-text","line":3,"col":17}
|
||||
{"type":"text","line":4,"col":7,"val":"This is _some_ awesome **markdown**"}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"text","line":5,"col":7,"val":"whoop."}
|
||||
{"type":"end-pipeless-text","line":5,"col":13}
|
||||
{"type":"outdent","line":5,"col":13}
|
||||
{"type":"outdent","line":5,"col":13}
|
||||
{"type":"eos","line":5,"col":13}
|
||||
26
node_modules/pug-parser/test/cases/filters.nested.tokens.json
generated
vendored
Normal file
26
node_modules/pug-parser/test/cases/filters.nested.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"script"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"filter","line":2,"col":3,"val":"cdata"}
|
||||
{"type":"filter","line":2,"col":9,"val":"uglify-js"}
|
||||
{"type":"start-pipeless-text","line":2,"col":19}
|
||||
{"type":"text","line":3,"col":5,"val":"(function() {"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"text","line":4,"col":5,"val":" console.log('test')"}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"text","line":5,"col":5,"val":"})()"}
|
||||
{"type":"end-pipeless-text","line":5,"col":9}
|
||||
{"type":"outdent","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"script"}
|
||||
{"type":"indent","line":7,"col":1,"val":2}
|
||||
{"type":"filter","line":7,"col":3,"val":"cdata"}
|
||||
{"type":"filter","line":7,"col":9,"val":"uglify-js"}
|
||||
{"type":"filter","line":7,"col":19,"val":"coffee-script"}
|
||||
{"type":"start-pipeless-text","line":7,"col":33}
|
||||
{"type":"text","line":8,"col":5,"val":"(->"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"text","line":9,"col":5,"val":" console.log 'test'"}
|
||||
{"type":"newline","line":10,"col":1}
|
||||
{"type":"text","line":10,"col":5,"val":")()"}
|
||||
{"type":"end-pipeless-text","line":10,"col":8}
|
||||
{"type":"outdent","line":10,"col":8}
|
||||
{"type":"eos","line":10,"col":8}
|
||||
20
node_modules/pug-parser/test/cases/filters.stylus.tokens.json
generated
vendored
Normal file
20
node_modules/pug-parser/test/cases/filters.stylus.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"head"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"style"}
|
||||
{"type":"start-attributes","line":3,"col":10}
|
||||
{"type":"attribute","line":3,"col":11,"name":"type","val":"\"text/css\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":26}
|
||||
{"type":"indent","line":4,"col":1,"val":6}
|
||||
{"type":"filter","line":4,"col":7,"val":"stylus"}
|
||||
{"type":"start-pipeless-text","line":4,"col":14}
|
||||
{"type":"text","line":5,"col":9,"val":"body"}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"text","line":6,"col":9,"val":" padding: 50px"}
|
||||
{"type":"end-pipeless-text","line":6,"col":24}
|
||||
{"type":"outdent","line":7,"col":5}
|
||||
{"type":"outdent","line":7,"col":3}
|
||||
{"type":"tag","line":7,"col":3,"val":"body"}
|
||||
{"type":"outdent","line":8,"col":1}
|
||||
{"type":"eos","line":8,"col":1}
|
||||
26
node_modules/pug-parser/test/cases/html.tokens.json
generated
vendored
Normal file
26
node_modules/pug-parser/test/cases/html.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{"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}
|
||||
20
node_modules/pug-parser/test/cases/html5.tokens.json
generated
vendored
Normal file
20
node_modules/pug-parser/test/cases/html5.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{"type":"doctype","line":1,"col":1,"val":"html"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"input"}
|
||||
{"type":"start-attributes","line":2,"col":6}
|
||||
{"type":"attribute","line":2,"col":7,"name":"type","val":"'checkbox'","mustEscape":true}
|
||||
{"type":"attribute","line":2,"col":24,"name":"checked","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":2,"col":31}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"input"}
|
||||
{"type":"start-attributes","line":3,"col":6}
|
||||
{"type":"attribute","line":3,"col":7,"name":"type","val":"'checkbox'","mustEscape":true}
|
||||
{"type":"attribute","line":3,"col":24,"name":"checked","val":"true","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":36}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":1,"val":"input"}
|
||||
{"type":"start-attributes","line":4,"col":6}
|
||||
{"type":"attribute","line":4,"col":7,"name":"type","val":"'checkbox'","mustEscape":true}
|
||||
{"type":"attribute","line":4,"col":24,"name":"checked","val":"false","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":37}
|
||||
{"type":"eos","line":4,"col":38}
|
||||
4
node_modules/pug-parser/test/cases/include-extends-from-root.tokens.json
generated
vendored
Normal file
4
node_modules/pug-parser/test/cases/include-extends-from-root.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{"type":"include","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":9,"val":"/auxiliary/extends-from-root.pug"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"eos","line":2,"col":1}
|
||||
7
node_modules/pug-parser/test/cases/include-extends-of-common-template.tokens.json
generated
vendored
Normal file
7
node_modules/pug-parser/test/cases/include-extends-of-common-template.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{"type":"include","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":9,"val":"auxiliary/extends-empty-block-1.pug"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"include","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":9,"val":"auxiliary/extends-empty-block-2.pug"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"eos","line":3,"col":1}
|
||||
4
node_modules/pug-parser/test/cases/include-extends-relative.tokens.json
generated
vendored
Normal file
4
node_modules/pug-parser/test/cases/include-extends-relative.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{"type":"include","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":9,"val":"../cases/auxiliary/extends-relative.pug"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"eos","line":2,"col":1}
|
||||
7
node_modules/pug-parser/test/cases/include-only-text-body.tokens.json
generated
vendored
Normal file
7
node_modules/pug-parser/test/cases/include-only-text-body.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{"type":"text","line":1,"col":3,"val":"The message is \""}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"yield","line":2,"col":1}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"text","line":3,"col":3,"val":"\""}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"eos","line":4,"col":1}
|
||||
16
node_modules/pug-parser/test/cases/include-only-text.tokens.json
generated
vendored
Normal file
16
node_modules/pug-parser/test/cases/include-only-text.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"body"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"p"}
|
||||
{"type":"indent","line":4,"col":1,"val":6}
|
||||
{"type":"include","line":4,"col":7}
|
||||
{"type":"path","line":4,"col":15,"val":"include-only-text-body.pug"}
|
||||
{"type":"indent","line":5,"col":1,"val":8}
|
||||
{"type":"tag","line":5,"col":9,"val":"em"}
|
||||
{"type":"text","line":5,"col":12,"val":"hello world"}
|
||||
{"type":"outdent","line":6,"col":7}
|
||||
{"type":"outdent","line":6,"col":5}
|
||||
{"type":"outdent","line":6,"col":3}
|
||||
{"type":"outdent","line":6,"col":1}
|
||||
{"type":"eos","line":6,"col":1}
|
||||
12
node_modules/pug-parser/test/cases/include-with-text-head.tokens.json
generated
vendored
Normal file
12
node_modules/pug-parser/test/cases/include-with-text-head.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"head"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":2,"col":9}
|
||||
{"type":"attribute","line":2,"col":10,"name":"type","val":"'text/javascript'","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":32}
|
||||
{"type":"dot","line":2,"col":33}
|
||||
{"type":"start-pipeless-text","line":2,"col":34}
|
||||
{"type":"text","line":3,"col":5,"val":"alert('hello world');"}
|
||||
{"type":"end-pipeless-text","line":3,"col":26}
|
||||
{"type":"outdent","line":3,"col":26}
|
||||
{"type":"eos","line":3,"col":26}
|
||||
17
node_modules/pug-parser/test/cases/include-with-text.tokens.json
generated
vendored
Normal file
17
node_modules/pug-parser/test/cases/include-with-text.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"include","line":2,"col":3}
|
||||
{"type":"path","line":2,"col":11,"val":"include-with-text-head.pug"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"script"}
|
||||
{"type":"start-attributes","line":3,"col":11}
|
||||
{"type":"attribute","line":3,"col":12,"name":"src","val":"'/caustic.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":29}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":5,"val":"script"}
|
||||
{"type":"start-attributes","line":4,"col":11}
|
||||
{"type":"attribute","line":4,"col":12,"name":"src","val":"'/app.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":25}
|
||||
{"type":"outdent","line":5,"col":3}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"eos","line":5,"col":1}
|
||||
10
node_modules/pug-parser/test/cases/include.script.tokens.json
generated
vendored
Normal file
10
node_modules/pug-parser/test/cases/include.script.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"script"}
|
||||
{"type":"id","line":1,"col":7,"val":"pet-template"}
|
||||
{"type":"start-attributes","line":1,"col":20}
|
||||
{"type":"attribute","line":1,"col":21,"name":"type","val":"'text/x-template'","mustEscape":true}
|
||||
{"type":"end-attributes","line":1,"col":43}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"include","line":2,"col":3}
|
||||
{"type":"path","line":2,"col":11,"val":"auxiliary/pet.pug"}
|
||||
{"type":"outdent","line":3,"col":1}
|
||||
{"type":"eos","line":3,"col":1}
|
||||
11
node_modules/pug-parser/test/cases/include.yield.nested.tokens.json
generated
vendored
Normal file
11
node_modules/pug-parser/test/cases/include.yield.nested.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"include","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":9,"val":"auxiliary/yield-nested.pug"}
|
||||
{"type":"indent","line":3,"col":1,"val":2}
|
||||
{"type":"tag","line":3,"col":3,"val":"p"}
|
||||
{"type":"text","line":3,"col":5,"val":"some content"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":3,"val":"p"}
|
||||
{"type":"text","line":4,"col":5,"val":"and some more"}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"eos","line":5,"col":1}
|
||||
9
node_modules/pug-parser/test/cases/includes-with-ext-js.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/includes-with-ext-js.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"pre"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"code"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"include","line":3,"col":5}
|
||||
{"type":"path","line":3,"col":13,"val":"javascript-new-lines.js"}
|
||||
{"type":"outdent","line":4,"col":3}
|
||||
{"type":"outdent","line":4,"col":1}
|
||||
{"type":"eos","line":4,"col":1}
|
||||
25
node_modules/pug-parser/test/cases/includes.tokens.json
generated
vendored
Normal file
25
node_modules/pug-parser/test/cases/includes.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"include","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":9,"val":"auxiliary/mixins.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"call","line":4,"col":1,"val":"foo","args":null}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"body"}
|
||||
{"type":"indent","line":7,"col":1,"val":2}
|
||||
{"type":"include","line":7,"col":3}
|
||||
{"type":"path","line":7,"col":11,"val":"auxiliary/smile.html"}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"include","line":8,"col":3}
|
||||
{"type":"path","line":8,"col":11,"val":"auxiliary/escapes.html"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"tag","line":9,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":9,"col":9}
|
||||
{"type":"attribute","line":9,"col":10,"name":"type","val":"\"text/javascript\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":9,"col":32}
|
||||
{"type":"indent","line":10,"col":1,"val":4}
|
||||
{"type":"include","line":10,"col":5}
|
||||
{"type":"filter","line":10,"col":12,"val":"verbatim"}
|
||||
{"type":"path","line":10,"col":22,"val":"auxiliary/includable.js"}
|
||||
{"type":"outdent","line":11,"col":3}
|
||||
{"type":"outdent","line":11,"col":1}
|
||||
{"type":"eos","line":11,"col":1}
|
||||
13
node_modules/pug-parser/test/cases/inheritance.alert-dialog.tokens.json
generated
vendored
Normal file
13
node_modules/pug-parser/test/cases/inheritance.alert-dialog.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":9,"val":"auxiliary/dialog.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"block","line":4,"col":1,"val":"content","mode":"replace"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"tag","line":5,"col":3,"val":"h1"}
|
||||
{"type":"text","line":5,"col":6,"val":"Alert!"}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":3,"val":"p"}
|
||||
{"type":"text","line":6,"col":5,"val":"I'm an alert!"}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"eos","line":7,"col":1}
|
||||
24
node_modules/pug-parser/test/cases/inheritance.defaults.tokens.json
generated
vendored
Normal file
24
node_modules/pug-parser/test/cases/inheritance.defaults.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"head"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"block","line":3,"col":5,"val":"head","mode":"replace"}
|
||||
{"type":"indent","line":4,"col":1,"val":6}
|
||||
{"type":"tag","line":4,"col":7,"val":"script"}
|
||||
{"type":"start-attributes","line":4,"col":13}
|
||||
{"type":"attribute","line":4,"col":14,"name":"src","val":"'jquery.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":29}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":7,"val":"script"}
|
||||
{"type":"start-attributes","line":5,"col":13}
|
||||
{"type":"attribute","line":5,"col":14,"name":"src","val":"'keymaster.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":32}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":7,"val":"script"}
|
||||
{"type":"start-attributes","line":6,"col":13}
|
||||
{"type":"attribute","line":6,"col":14,"name":"src","val":"'caustic.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":30}
|
||||
{"type":"outdent","line":6,"col":31}
|
||||
{"type":"outdent","line":6,"col":31}
|
||||
{"type":"outdent","line":6,"col":31}
|
||||
{"type":"eos","line":6,"col":31}
|
||||
28
node_modules/pug-parser/test/cases/inheritance.extend.include.tokens.json
generated
vendored
Normal file
28
node_modules/pug-parser/test/cases/inheritance.extend.include.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":8,"val":"auxiliary/layout.include.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"block","line":4,"col":1,"val":"head","mode":"replace"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"tag","line":5,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":5,"col":9}
|
||||
{"type":"attribute","line":5,"col":10,"name":"src","val":"'jquery.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":25}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"block","line":7,"col":1,"val":"content","mode":"replace"}
|
||||
{"type":"indent","line":8,"col":1,"val":2}
|
||||
{"type":"tag","line":8,"col":3,"val":"h2"}
|
||||
{"type":"text","line":8,"col":6,"val":"Page"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"tag","line":9,"col":3,"val":"p"}
|
||||
{"type":"text","line":9,"col":5,"val":"Some content"}
|
||||
{"type":"outdent","line":11,"col":1}
|
||||
{"type":"block","line":11,"col":1,"val":"window-content","mode":"replace"}
|
||||
{"type":"indent","line":12,"col":1,"val":2}
|
||||
{"type":"tag","line":12,"col":3,"val":"h2"}
|
||||
{"type":"text","line":12,"col":6,"val":"Awesome"}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"tag","line":13,"col":3,"val":"p"}
|
||||
{"type":"text","line":13,"col":5,"val":"Now we can extend included blocks!"}
|
||||
{"type":"outdent","line":14,"col":1}
|
||||
{"type":"eos","line":14,"col":1}
|
||||
9
node_modules/pug-parser/test/cases/inheritance.extend.mixins.block.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/inheritance.extend.mixins.block.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"extends","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":8,"val":"auxiliary/inheritance.extend.mixin.block.pug"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"block","line":3,"col":1,"val":"content","mode":"replace"}
|
||||
{"type":"indent","line":4,"col":1,"val":2}
|
||||
{"type":"tag","line":4,"col":3,"val":"p"}
|
||||
{"type":"text","line":4,"col":5,"val":"Hello World!"}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"eos","line":5,"col":1}
|
||||
22
node_modules/pug-parser/test/cases/inheritance.extend.mixins.tokens.json
generated
vendored
Normal file
22
node_modules/pug-parser/test/cases/inheritance.extend.mixins.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":8,"val":"auxiliary/layout.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"mixin","line":4,"col":1,"val":"article","args":"title"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"if","line":5,"col":3,"val":"title"}
|
||||
{"type":"indent","line":6,"col":1,"val":4}
|
||||
{"type":"tag","line":6,"col":5,"val":"h1"}
|
||||
{"type":"code","line":6,"col":7,"val":"title","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":7,"col":3}
|
||||
{"type":"mixin-block","line":7,"col":3}
|
||||
{"type":"outdent","line":9,"col":1}
|
||||
{"type":"block","line":9,"col":1,"val":"content","mode":"replace"}
|
||||
{"type":"indent","line":10,"col":1,"val":2}
|
||||
{"type":"call","line":10,"col":3,"val":"article","args":"\"The meaning of life\""}
|
||||
{"type":"indent","line":11,"col":1,"val":4}
|
||||
{"type":"tag","line":11,"col":5,"val":"p"}
|
||||
{"type":"text","line":11,"col":7,"val":"Foo bar baz!"}
|
||||
{"type":"outdent","line":12,"col":3}
|
||||
{"type":"outdent","line":12,"col":1}
|
||||
{"type":"eos","line":12,"col":1}
|
||||
9
node_modules/pug-parser/test/cases/inheritance.extend.recursive.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/inheritance.extend.recursive.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"extends","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":9,"val":"/auxiliary/inheritance.extend.recursive-parent.pug"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"block","line":3,"col":1,"val":"parent","mode":"replace"}
|
||||
{"type":"indent","line":4,"col":1,"val":4}
|
||||
{"type":"tag","line":4,"col":5,"val":"h4"}
|
||||
{"type":"text","line":4,"col":8,"val":"child"}
|
||||
{"type":"outdent","line":4,"col":13}
|
||||
{"type":"eos","line":4,"col":13}
|
||||
20
node_modules/pug-parser/test/cases/inheritance.extend.tokens.json
generated
vendored
Normal file
20
node_modules/pug-parser/test/cases/inheritance.extend.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":8,"val":"auxiliary/layout.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"block","line":4,"col":1,"val":"head","mode":"replace"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"tag","line":5,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":5,"col":9}
|
||||
{"type":"attribute","line":5,"col":10,"name":"src","val":"'jquery.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":25}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"block","line":7,"col":1,"val":"content","mode":"replace"}
|
||||
{"type":"indent","line":8,"col":1,"val":2}
|
||||
{"type":"tag","line":8,"col":3,"val":"h2"}
|
||||
{"type":"text","line":8,"col":6,"val":"Page"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"tag","line":9,"col":3,"val":"p"}
|
||||
{"type":"text","line":9,"col":5,"val":"Some content"}
|
||||
{"type":"outdent","line":10,"col":1}
|
||||
{"type":"eos","line":10,"col":1}
|
||||
20
node_modules/pug-parser/test/cases/inheritance.extend.whitespace.tokens.json
generated
vendored
Normal file
20
node_modules/pug-parser/test/cases/inheritance.extend.whitespace.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":8,"val":"auxiliary/layout.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"block","line":4,"col":1,"val":"head","mode":"replace"}
|
||||
{"type":"indent","line":6,"col":1,"val":2}
|
||||
{"type":"tag","line":6,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":6,"col":9}
|
||||
{"type":"attribute","line":6,"col":10,"name":"src","val":"'jquery.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":25}
|
||||
{"type":"outdent","line":8,"col":1}
|
||||
{"type":"block","line":8,"col":1,"val":"content","mode":"replace"}
|
||||
{"type":"indent","line":12,"col":1,"val":2}
|
||||
{"type":"tag","line":12,"col":3,"val":"h2"}
|
||||
{"type":"text","line":12,"col":6,"val":"Page"}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"tag","line":13,"col":3,"val":"p"}
|
||||
{"type":"text","line":13,"col":5,"val":"Some content"}
|
||||
{"type":"outdent","line":14,"col":1}
|
||||
{"type":"eos","line":14,"col":1}
|
||||
20
node_modules/pug-parser/test/cases/inheritance.tokens.json
generated
vendored
Normal file
20
node_modules/pug-parser/test/cases/inheritance.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":9,"val":"auxiliary/layout.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"block","line":4,"col":1,"val":"head","mode":"replace"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"tag","line":5,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":5,"col":9}
|
||||
{"type":"attribute","line":5,"col":10,"name":"src","val":"'jquery.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":25}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"block","line":7,"col":1,"val":"content","mode":"replace"}
|
||||
{"type":"indent","line":8,"col":1,"val":2}
|
||||
{"type":"tag","line":8,"col":3,"val":"h2"}
|
||||
{"type":"text","line":8,"col":6,"val":"Page"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"tag","line":9,"col":3,"val":"p"}
|
||||
{"type":"text","line":9,"col":5,"val":"Some content"}
|
||||
{"type":"outdent","line":10,"col":1}
|
||||
{"type":"eos","line":10,"col":1}
|
||||
10
node_modules/pug-parser/test/cases/inline-block-comment.tokens.json
generated
vendored
Normal file
10
node_modules/pug-parser/test/cases/inline-block-comment.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{"type":"block","line":1,"col":1,"val":"content","mode":"replace"}
|
||||
{"type":"comment","line":1,"col":1,"val":" Main content goes here","buffer":true}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"block","line":2,"col":1,"val":"content","mode":"append"}
|
||||
{"type":"comment","line":2,"col":1,"val":" adding something to content","buffer":true}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"block","line":3,"col":1,"val":"content","mode":"prepend"}
|
||||
{"type":"comment","line":3,"col":1,"val":" adding something to other end of content","buffer":true}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"eos","line":4,"col":1}
|
||||
77
node_modules/pug-parser/test/cases/inline-tag.tokens.json
generated
vendored
Normal file
77
node_modules/pug-parser/test/cases/inline-tag.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"p"}
|
||||
{"type":"text","line":1,"col":3,"val":"bing "}
|
||||
{"type":"start-pug-interpolation","line":1,"col":8}
|
||||
{"type":"tag","line":1,"col":10,"val":"strong"}
|
||||
{"type":"text","line":1,"col":17,"val":"foo"}
|
||||
{"type":"end-pug-interpolation","line":1,"col":20}
|
||||
{"type":"text","line":1,"col":21,"val":" bong"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"p"}
|
||||
{"type":"dot","line":3,"col":2}
|
||||
{"type":"start-pipeless-text","line":3,"col":3}
|
||||
{"type":"text","line":4,"col":3,"val":"bing"}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"text","line":5,"col":3,"val":""}
|
||||
{"type":"start-pug-interpolation","line":5,"col":3}
|
||||
{"type":"tag","line":5,"col":5,"val":"strong"}
|
||||
{"type":"text","line":5,"col":12,"val":"foo"}
|
||||
{"type":"end-pug-interpolation","line":5,"col":15}
|
||||
{"type":"text","line":5,"col":16,"val":""}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"text","line":6,"col":3,"val":""}
|
||||
{"type":"start-pug-interpolation","line":6,"col":3}
|
||||
{"type":"tag","line":6,"col":5,"val":"strong"}
|
||||
{"type":"code","line":6,"col":11,"val":"'[foo]'","mustEscape":true,"buffer":true}
|
||||
{"type":"end-pug-interpolation","line":6,"col":20}
|
||||
{"type":"text","line":6,"col":21,"val":""}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"text","line":7,"col":3,"val":""}
|
||||
{"type":"start-pug-interpolation","line":7,"col":3}
|
||||
{"type":"code","line":7,"col":5,"val":"var foo = 'foo]'","mustEscape":false,"buffer":false}
|
||||
{"type":"end-pug-interpolation","line":7,"col":23}
|
||||
{"type":"text","line":7,"col":24,"val":""}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"text","line":8,"col":3,"val":"bong"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"text","line":9,"col":3,"val":""}
|
||||
{"type":"end-pipeless-text","line":9,"col":3}
|
||||
{"type":"newline","line":10,"col":1}
|
||||
{"type":"tag","line":10,"col":1,"val":"p"}
|
||||
{"type":"indent","line":11,"col":1,"val":2}
|
||||
{"type":"text","line":11,"col":5,"val":"bing"}
|
||||
{"type":"newline","line":12,"col":1}
|
||||
{"type":"text","line":12,"col":5,"val":""}
|
||||
{"type":"start-pug-interpolation","line":12,"col":5}
|
||||
{"type":"tag","line":12,"col":7,"val":"strong"}
|
||||
{"type":"text","line":12,"col":14,"val":"foo"}
|
||||
{"type":"end-pug-interpolation","line":12,"col":17}
|
||||
{"type":"text","line":12,"col":18,"val":""}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"text","line":13,"col":5,"val":""}
|
||||
{"type":"start-pug-interpolation","line":13,"col":5}
|
||||
{"type":"tag","line":13,"col":7,"val":"strong"}
|
||||
{"type":"code","line":13,"col":13,"val":"'[foo]'","mustEscape":true,"buffer":true}
|
||||
{"type":"end-pug-interpolation","line":13,"col":22}
|
||||
{"type":"text","line":13,"col":23,"val":""}
|
||||
{"type":"newline","line":14,"col":1}
|
||||
{"type":"text","line":14,"col":5,"val":""}
|
||||
{"type":"start-pug-interpolation","line":14,"col":5}
|
||||
{"type":"code","line":14,"col":7,"val":"var foo = 'foo]'","mustEscape":false,"buffer":false}
|
||||
{"type":"end-pug-interpolation","line":14,"col":25}
|
||||
{"type":"text","line":14,"col":26,"val":""}
|
||||
{"type":"newline","line":15,"col":1}
|
||||
{"type":"text","line":15,"col":5,"val":"bong"}
|
||||
{"type":"outdent","line":17,"col":1}
|
||||
{"type":"tag","line":17,"col":1,"val":"p"}
|
||||
{"type":"dot","line":17,"col":2}
|
||||
{"type":"start-pipeless-text","line":17,"col":3}
|
||||
{"type":"text","line":18,"col":3,"val":"#[strong escaped]"}
|
||||
{"type":"newline","line":19,"col":1}
|
||||
{"type":"text","line":19,"col":3,"val":"#["}
|
||||
{"type":"start-pug-interpolation","line":19,"col":6}
|
||||
{"type":"tag","line":19,"col":8,"val":"strong"}
|
||||
{"type":"text","line":19,"col":15,"val":"escaped"}
|
||||
{"type":"end-pug-interpolation","line":19,"col":22}
|
||||
{"type":"text","line":19,"col":23,"val":""}
|
||||
{"type":"end-pipeless-text","line":19,"col":23}
|
||||
{"type":"eos","line":19,"col":23}
|
||||
38
node_modules/pug-parser/test/cases/intepolated-elements.tokens.json
generated
vendored
Normal file
38
node_modules/pug-parser/test/cases/intepolated-elements.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"p"}
|
||||
{"type":"text","line":1,"col":3,"val":""}
|
||||
{"type":"start-pug-interpolation","line":1,"col":3}
|
||||
{"type":"tag","line":1,"col":5,"val":"a"}
|
||||
{"type":"class","line":1,"col":6,"val":"rho"}
|
||||
{"type":"start-attributes","line":1,"col":10}
|
||||
{"type":"attribute","line":1,"col":11,"name":"href","val":"'#'","mustEscape":true}
|
||||
{"type":"attribute","line":1,"col":21,"name":"class","val":"'rho--modifier'","mustEscape":true}
|
||||
{"type":"end-attributes","line":1,"col":42}
|
||||
{"type":"text","line":1,"col":44,"val":"with inline link"}
|
||||
{"type":"end-pug-interpolation","line":1,"col":60}
|
||||
{"type":"text","line":1,"col":61,"val":""}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"p"}
|
||||
{"type":"text","line":2,"col":3,"val":"Some text "}
|
||||
{"type":"start-pug-interpolation","line":2,"col":13}
|
||||
{"type":"tag","line":2,"col":15,"val":"a"}
|
||||
{"type":"class","line":2,"col":16,"val":"rho"}
|
||||
{"type":"start-attributes","line":2,"col":20}
|
||||
{"type":"attribute","line":2,"col":21,"name":"href","val":"'#'","mustEscape":true}
|
||||
{"type":"attribute","line":2,"col":31,"name":"class","val":"'rho--modifier'","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":52}
|
||||
{"type":"end-pug-interpolation","line":2,"col":53}
|
||||
{"type":"text","line":2,"col":54,"val":""}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"p"}
|
||||
{"type":"text","line":3,"col":3,"val":"Some text "}
|
||||
{"type":"start-pug-interpolation","line":3,"col":13}
|
||||
{"type":"tag","line":3,"col":15,"val":"a"}
|
||||
{"type":"class","line":3,"col":16,"val":"rho"}
|
||||
{"type":"start-attributes","line":3,"col":20}
|
||||
{"type":"attribute","line":3,"col":21,"name":"href","val":"'#'","mustEscape":true}
|
||||
{"type":"attribute","line":3,"col":31,"name":"class","val":"'rho--modifier'","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":52}
|
||||
{"type":"text","line":3,"col":54,"val":"with inline link"}
|
||||
{"type":"end-pug-interpolation","line":3,"col":70}
|
||||
{"type":"text","line":3,"col":71,"val":""}
|
||||
{"type":"eos","line":3,"col":71}
|
||||
15
node_modules/pug-parser/test/cases/interpolated-mixin.tokens.json
generated
vendored
Normal file
15
node_modules/pug-parser/test/cases/interpolated-mixin.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{"type":"mixin","line":1,"col":1,"val":"linkit","args":"url"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"a"}
|
||||
{"type":"start-attributes","line":2,"col":4}
|
||||
{"type":"attribute","line":2,"col":5,"name":"href","val":"url","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":13}
|
||||
{"type":"code","line":2,"col":14,"val":"url","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":1,"val":"p"}
|
||||
{"type":"text","line":4,"col":3,"val":"This also works "}
|
||||
{"type":"start-pug-interpolation","line":4,"col":19}
|
||||
{"type":"call","line":4,"col":21,"val":"linkit","args":"'http://www.bing.com'"}
|
||||
{"type":"end-pug-interpolation","line":4,"col":51}
|
||||
{"type":"text","line":4,"col":52,"val":" so hurrah for Pug"}
|
||||
{"type":"eos","line":4,"col":70}
|
||||
15
node_modules/pug-parser/test/cases/interpolation.escape.tokens.json
generated
vendored
Normal file
15
node_modules/pug-parser/test/cases/interpolation.escape.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{"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}
|
||||
17
node_modules/pug-parser/test/cases/layout.append.tokens.json
generated
vendored
Normal file
17
node_modules/pug-parser/test/cases/layout.append.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":9,"val":"../fixtures/append/app-layout.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"block","line":4,"col":1,"val":"head","mode":"append"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"tag","line":5,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":5,"col":9}
|
||||
{"type":"attribute","line":5,"col":10,"name":"src","val":"'foo.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":22}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":6,"col":9}
|
||||
{"type":"attribute","line":6,"col":10,"name":"src","val":"'bar.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":22}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"eos","line":7,"col":1}
|
||||
17
node_modules/pug-parser/test/cases/layout.append.without-block.tokens.json
generated
vendored
Normal file
17
node_modules/pug-parser/test/cases/layout.append.without-block.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":9,"val":"../fixtures/append-without-block/app-layout.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"block","line":4,"col":1,"val":"head","mode":"append"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"tag","line":5,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":5,"col":9}
|
||||
{"type":"attribute","line":5,"col":10,"name":"src","val":"'foo.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":22}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":6,"col":9}
|
||||
{"type":"attribute","line":6,"col":10,"name":"src","val":"'bar.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":22}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"eos","line":7,"col":1}
|
||||
46
node_modules/pug-parser/test/cases/layout.multi.append.prepend.block.tokens.json
generated
vendored
Normal file
46
node_modules/pug-parser/test/cases/layout.multi.append.prepend.block.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
{"type":"extends","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":9,"val":"../fixtures/multi-append-prepend-block/redefine.pug"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"block","line":3,"col":1,"val":"content","mode":"append"}
|
||||
{"type":"indent","line":4,"col":1,"val":1}
|
||||
{"type":"tag","line":4,"col":2,"val":"p"}
|
||||
{"type":"class","line":4,"col":3,"val":"first"}
|
||||
{"type":"class","line":4,"col":9,"val":"append"}
|
||||
{"type":"text","line":4,"col":17,"val":"Something appended to content"}
|
||||
{"type":"outdent","line":6,"col":1}
|
||||
{"type":"block","line":6,"col":1,"val":"content","mode":"prepend"}
|
||||
{"type":"indent","line":7,"col":1,"val":1}
|
||||
{"type":"tag","line":7,"col":2,"val":"p"}
|
||||
{"type":"class","line":7,"col":3,"val":"first"}
|
||||
{"type":"class","line":7,"col":9,"val":"prepend"}
|
||||
{"type":"text","line":7,"col":18,"val":"Something prepended to content"}
|
||||
{"type":"outdent","line":9,"col":1}
|
||||
{"type":"block","line":9,"col":1,"val":"content","mode":"append"}
|
||||
{"type":"indent","line":10,"col":1,"val":1}
|
||||
{"type":"tag","line":10,"col":2,"val":"p"}
|
||||
{"type":"class","line":10,"col":3,"val":"last"}
|
||||
{"type":"class","line":10,"col":8,"val":"append"}
|
||||
{"type":"text","line":10,"col":16,"val":"Last append must be most last"}
|
||||
{"type":"outdent","line":12,"col":1}
|
||||
{"type":"block","line":12,"col":1,"val":"content","mode":"prepend"}
|
||||
{"type":"indent","line":13,"col":1,"val":1}
|
||||
{"type":"tag","line":13,"col":2,"val":"p"}
|
||||
{"type":"class","line":13,"col":3,"val":"last"}
|
||||
{"type":"class","line":13,"col":8,"val":"prepend"}
|
||||
{"type":"text","line":13,"col":17,"val":"Last prepend must appear at top"}
|
||||
{"type":"outdent","line":15,"col":1}
|
||||
{"type":"block","line":15,"col":1,"val":"head","mode":"append"}
|
||||
{"type":"indent","line":16,"col":1,"val":1}
|
||||
{"type":"tag","line":16,"col":2,"val":"script"}
|
||||
{"type":"start-attributes","line":16,"col":8}
|
||||
{"type":"attribute","line":16,"col":9,"name":"src","val":"'jquery.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":16,"col":24}
|
||||
{"type":"outdent","line":18,"col":1}
|
||||
{"type":"block","line":18,"col":1,"val":"head","mode":"prepend"}
|
||||
{"type":"indent","line":19,"col":1,"val":1}
|
||||
{"type":"tag","line":19,"col":2,"val":"script"}
|
||||
{"type":"start-attributes","line":19,"col":8}
|
||||
{"type":"attribute","line":19,"col":9,"name":"src","val":"'foo.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":19,"col":21}
|
||||
{"type":"outdent","line":20,"col":1}
|
||||
{"type":"eos","line":20,"col":1}
|
||||
17
node_modules/pug-parser/test/cases/layout.prepend.tokens.json
generated
vendored
Normal file
17
node_modules/pug-parser/test/cases/layout.prepend.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":9,"val":"../fixtures/prepend/app-layout.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"block","line":4,"col":1,"val":"head","mode":"prepend"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"tag","line":5,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":5,"col":9}
|
||||
{"type":"attribute","line":5,"col":10,"name":"src","val":"'foo.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":22}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":6,"col":9}
|
||||
{"type":"attribute","line":6,"col":10,"name":"src","val":"'bar.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":22}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"eos","line":7,"col":1}
|
||||
17
node_modules/pug-parser/test/cases/layout.prepend.without-block.tokens.json
generated
vendored
Normal file
17
node_modules/pug-parser/test/cases/layout.prepend.without-block.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"extends","line":2,"col":1}
|
||||
{"type":"path","line":2,"col":9,"val":"../fixtures/prepend-without-block/app-layout.pug"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"block","line":4,"col":1,"val":"head","mode":"prepend"}
|
||||
{"type":"indent","line":5,"col":1,"val":2}
|
||||
{"type":"tag","line":5,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":5,"col":9}
|
||||
{"type":"attribute","line":5,"col":10,"name":"src","val":"'foo.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":22}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":3,"val":"script"}
|
||||
{"type":"start-attributes","line":6,"col":9}
|
||||
{"type":"attribute","line":6,"col":10,"name":"src","val":"'bar.js'","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":22}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"eos","line":7,"col":1}
|
||||
9
node_modules/pug-parser/test/cases/mixin-at-end-of-file.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/mixin-at-end-of-file.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"include","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":9,"val":"./auxiliary/mixin-at-end-of-file.pug"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"call","line":3,"col":1,"val":"slide","args":""}
|
||||
{"type":"indent","line":4,"col":1,"val":2}
|
||||
{"type":"tag","line":4,"col":3,"val":"p"}
|
||||
{"type":"text","line":4,"col":5,"val":"some awesome content"}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"eos","line":5,"col":1}
|
||||
12
node_modules/pug-parser/test/cases/mixin-block-with-space.tokens.json
generated
vendored
Normal file
12
node_modules/pug-parser/test/cases/mixin-block-with-space.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{"type":"mixin","line":1,"col":1,"val":"m","args":"id"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"div"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"mixin-block","line":3,"col":5}
|
||||
{"type":"outdent","line":5,"col":3}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"call","line":5,"col":1,"val":"m","args":""}
|
||||
{"type":"indent","line":6,"col":1,"val":2}
|
||||
{"type":"text","line":6,"col":5,"val":"This text should appear"}
|
||||
{"type":"outdent","line":6,"col":28}
|
||||
{"type":"eos","line":6,"col":28}
|
||||
14
node_modules/pug-parser/test/cases/mixin-hoist.tokens.json
generated
vendored
Normal file
14
node_modules/pug-parser/test/cases/mixin-hoist.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"mixin","line":2,"col":1,"val":"foo","args":null}
|
||||
{"type":"indent","line":3,"col":1,"val":2}
|
||||
{"type":"tag","line":3,"col":3,"val":"h1"}
|
||||
{"type":"code","line":3,"col":5,"val":"title","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":1,"val":"html"}
|
||||
{"type":"indent","line":6,"col":1,"val":2}
|
||||
{"type":"tag","line":6,"col":3,"val":"body"}
|
||||
{"type":"indent","line":7,"col":1,"val":4}
|
||||
{"type":"call","line":7,"col":5,"val":"foo","args":null}
|
||||
{"type":"outdent","line":8,"col":3}
|
||||
{"type":"outdent","line":8,"col":1}
|
||||
{"type":"eos","line":8,"col":1}
|
||||
7
node_modules/pug-parser/test/cases/mixin-via-include.tokens.json
generated
vendored
Normal file
7
node_modules/pug-parser/test/cases/mixin-via-include.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{"type":"comment","line":1,"col":1,"val":" regression test for https://github.com/pugjs/pug/issues/1435","buffer":false}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"include","line":3,"col":1}
|
||||
{"type":"path","line":3,"col":9,"val":"../fixtures/mixin-include.pug"}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"call","line":5,"col":1,"val":"bang","args":null}
|
||||
{"type":"eos","line":5,"col":6}
|
||||
161
node_modules/pug-parser/test/cases/mixin.attrs.tokens.json
generated
vendored
Normal file
161
node_modules/pug-parser/test/cases/mixin.attrs.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
{"type":"mixin","line":1,"col":1,"val":"centered","args":"title"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"div"}
|
||||
{"type":"class","line":2,"col":6,"val":"centered"}
|
||||
{"type":"start-attributes","line":2,"col":15}
|
||||
{"type":"attribute","line":2,"col":16,"name":"id","val":"attributes.id","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":32}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"code","line":3,"col":5,"val":"if (title)","mustEscape":false,"buffer":false}
|
||||
{"type":"indent","line":4,"col":1,"val":6}
|
||||
{"type":"tag","line":4,"col":7,"val":"h1"}
|
||||
{"type":"start-attributes","line":4,"col":9}
|
||||
{"type":"attribute","line":4,"col":10,"name":"class","val":"attributes.class","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":32}
|
||||
{"type":"code","line":4,"col":33,"val":"title","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":5,"col":5}
|
||||
{"type":"mixin-block","line":5,"col":5}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"code","line":6,"col":5,"val":"if (attributes.href)","mustEscape":false,"buffer":false}
|
||||
{"type":"indent","line":7,"col":1,"val":6}
|
||||
{"type":"class","line":7,"col":7,"val":"footer"}
|
||||
{"type":"indent","line":8,"col":1,"val":8}
|
||||
{"type":"tag","line":8,"col":9,"val":"a"}
|
||||
{"type":"start-attributes","line":8,"col":10}
|
||||
{"type":"attribute","line":8,"col":11,"name":"href","val":"attributes.href","mustEscape":true}
|
||||
{"type":"end-attributes","line":8,"col":31}
|
||||
{"type":"text","line":8,"col":33,"val":"Back"}
|
||||
{"type":"outdent","line":10,"col":7}
|
||||
{"type":"outdent","line":10,"col":5}
|
||||
{"type":"outdent","line":10,"col":3}
|
||||
{"type":"outdent","line":10,"col":1}
|
||||
{"type":"mixin","line":10,"col":1,"val":"main","args":"title"}
|
||||
{"type":"indent","line":11,"col":1,"val":2}
|
||||
{"type":"tag","line":11,"col":3,"val":"div"}
|
||||
{"type":"class","line":11,"col":6,"val":"stretch"}
|
||||
{"type":"indent","line":12,"col":1,"val":4}
|
||||
{"type":"call","line":12,"col":5,"val":"centered","args":"title"}
|
||||
{"type":"class","line":12,"col":21,"val":"highlight"}
|
||||
{"type":"&attributes","line":12,"col":31,"val":"attributes"}
|
||||
{"type":"indent","line":13,"col":1,"val":6}
|
||||
{"type":"mixin-block","line":13,"col":7}
|
||||
{"type":"outdent","line":15,"col":5}
|
||||
{"type":"outdent","line":15,"col":3}
|
||||
{"type":"outdent","line":15,"col":1}
|
||||
{"type":"mixin","line":15,"col":1,"val":"bottom","args":null}
|
||||
{"type":"indent","line":16,"col":1,"val":2}
|
||||
{"type":"tag","line":16,"col":3,"val":"div"}
|
||||
{"type":"class","line":16,"col":6,"val":"bottom"}
|
||||
{"type":"&attributes","line":16,"col":13,"val":"attributes"}
|
||||
{"type":"indent","line":17,"col":1,"val":4}
|
||||
{"type":"mixin-block","line":17,"col":5}
|
||||
{"type":"outdent","line":19,"col":3}
|
||||
{"type":"outdent","line":19,"col":1}
|
||||
{"type":"tag","line":19,"col":1,"val":"body"}
|
||||
{"type":"indent","line":20,"col":1,"val":2}
|
||||
{"type":"call","line":20,"col":3,"val":"centered","args":null}
|
||||
{"type":"id","line":20,"col":12,"val":"First"}
|
||||
{"type":"text","line":20,"col":19,"val":"Hello World"}
|
||||
{"type":"newline","line":21,"col":1}
|
||||
{"type":"call","line":21,"col":3,"val":"centered","args":"'Section 1'"}
|
||||
{"type":"id","line":21,"col":25,"val":"Second"}
|
||||
{"type":"indent","line":22,"col":1,"val":4}
|
||||
{"type":"tag","line":22,"col":5,"val":"p"}
|
||||
{"type":"text","line":22,"col":7,"val":"Some important content."}
|
||||
{"type":"outdent","line":23,"col":3}
|
||||
{"type":"call","line":23,"col":3,"val":"centered","args":"'Section 2'"}
|
||||
{"type":"id","line":23,"col":25,"val":"Third"}
|
||||
{"type":"class","line":23,"col":31,"val":"foo"}
|
||||
{"type":"start-attributes","line":23,"col":35}
|
||||
{"type":"attribute","line":23,"col":36,"name":"href","val":"'menu.html'","mustEscape":true}
|
||||
{"type":"attribute","line":23,"col":54,"name":"class","val":"'bar'","mustEscape":true}
|
||||
{"type":"end-attributes","line":23,"col":65}
|
||||
{"type":"indent","line":24,"col":1,"val":4}
|
||||
{"type":"tag","line":24,"col":5,"val":"p"}
|
||||
{"type":"text","line":24,"col":7,"val":"Even more important content."}
|
||||
{"type":"outdent","line":25,"col":3}
|
||||
{"type":"call","line":25,"col":3,"val":"main","args":"'Section 3'"}
|
||||
{"type":"start-attributes","line":25,"col":21}
|
||||
{"type":"attribute","line":25,"col":22,"name":"href","val":"'#'","mustEscape":true}
|
||||
{"type":"end-attributes","line":25,"col":30}
|
||||
{"type":"indent","line":26,"col":1,"val":4}
|
||||
{"type":"tag","line":26,"col":5,"val":"p"}
|
||||
{"type":"text","line":26,"col":7,"val":"Last content."}
|
||||
{"type":"outdent","line":27,"col":3}
|
||||
{"type":"call","line":27,"col":3,"val":"bottom","args":null}
|
||||
{"type":"class","line":27,"col":10,"val":"foo"}
|
||||
{"type":"start-attributes","line":27,"col":14}
|
||||
{"type":"attribute","line":27,"col":15,"name":"class","val":"'bar'","mustEscape":true}
|
||||
{"type":"attribute","line":27,"col":28,"name":"name","val":"'end'","mustEscape":true}
|
||||
{"type":"attribute","line":27,"col":40,"name":"id","val":"'Last'","mustEscape":true}
|
||||
{"type":"attribute","line":27,"col":51,"name":"data-attr","val":"'baz'","mustEscape":true}
|
||||
{"type":"end-attributes","line":27,"col":66}
|
||||
{"type":"indent","line":28,"col":1,"val":4}
|
||||
{"type":"tag","line":28,"col":5,"val":"p"}
|
||||
{"type":"text","line":28,"col":7,"val":"Some final words."}
|
||||
{"type":"outdent","line":29,"col":3}
|
||||
{"type":"call","line":29,"col":3,"val":"bottom","args":null}
|
||||
{"type":"start-attributes","line":29,"col":10}
|
||||
{"type":"attribute","line":29,"col":11,"name":"class","val":"['class1', 'class2']","mustEscape":true}
|
||||
{"type":"end-attributes","line":29,"col":37}
|
||||
{"type":"outdent","line":31,"col":1}
|
||||
{"type":"mixin","line":31,"col":1,"val":"foo","args":null}
|
||||
{"type":"indent","line":32,"col":1,"val":2}
|
||||
{"type":"tag","line":32,"col":3,"val":"div"}
|
||||
{"type":"class","line":32,"col":6,"val":"thing"}
|
||||
{"type":"start-attributes","line":32,"col":12}
|
||||
{"type":"attribute","line":32,"col":13,"name":"attr1","val":"'foo'","mustEscape":true}
|
||||
{"type":"attribute","line":32,"col":26,"name":"attr2","val":"'bar'","mustEscape":true}
|
||||
{"type":"end-attributes","line":32,"col":37}
|
||||
{"type":"&attributes","line":32,"col":38,"val":"attributes"}
|
||||
{"type":"outdent","line":34,"col":1}
|
||||
{"type":"code","line":34,"col":1,"val":"var val = '<biz>'","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":35,"col":1}
|
||||
{"type":"code","line":35,"col":1,"val":"var classes = ['foo', 'bar']","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":36,"col":1}
|
||||
{"type":"call","line":36,"col":1,"val":"foo","args":null}
|
||||
{"type":"start-attributes","line":36,"col":5}
|
||||
{"type":"attribute","line":36,"col":6,"name":"attr3","val":"'baz'","mustEscape":true}
|
||||
{"type":"attribute","line":36,"col":18,"name":"data-foo","val":"val","mustEscape":true}
|
||||
{"type":"attribute","line":36,"col":31,"name":"data-bar","val":"val","mustEscape":false}
|
||||
{"type":"attribute","line":36,"col":45,"name":"class","val":"classes","mustEscape":true}
|
||||
{"type":"end-attributes","line":36,"col":58}
|
||||
{"type":"class","line":36,"col":59,"val":"thunk"}
|
||||
{"type":"newline","line":38,"col":1}
|
||||
{"type":"comment","line":38,"col":1,"val":" Regression test for #1424","buffer":false}
|
||||
{"type":"newline","line":39,"col":1}
|
||||
{"type":"mixin","line":39,"col":1,"val":"work_filmstrip_item","args":"work"}
|
||||
{"type":"indent","line":40,"col":1,"val":2}
|
||||
{"type":"tag","line":40,"col":3,"val":"div"}
|
||||
{"type":"&attributes","line":40,"col":6,"val":"attributes"}
|
||||
{"type":"code","line":40,"col":29,"val":"work","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":41,"col":1}
|
||||
{"type":"call","line":41,"col":1,"val":"work_filmstrip_item","args":"'work'"}
|
||||
{"type":"start-attributes","line":41,"col":29}
|
||||
{"type":"attribute","line":41,"col":31,"name":"data-profile","val":"'profile'","mustEscape":true}
|
||||
{"type":"attribute","line":41,"col":56,"name":"data-creator-name","val":"'name'","mustEscape":true}
|
||||
{"type":"end-attributes","line":41,"col":82}
|
||||
{"type":"newline","line":43,"col":1}
|
||||
{"type":"mixin","line":43,"col":1,"val":"my-mixin","args":"arg1, arg2, arg3, arg4"}
|
||||
{"type":"indent","line":44,"col":1,"val":2}
|
||||
{"type":"tag","line":44,"col":3,"val":"p"}
|
||||
{"type":"code","line":44,"col":4,"val":"arg1","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":45,"col":1}
|
||||
{"type":"tag","line":45,"col":3,"val":"p"}
|
||||
{"type":"code","line":45,"col":4,"val":"arg2","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":46,"col":1}
|
||||
{"type":"tag","line":46,"col":3,"val":"p"}
|
||||
{"type":"code","line":46,"col":4,"val":"arg3","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":47,"col":1}
|
||||
{"type":"tag","line":47,"col":3,"val":"p"}
|
||||
{"type":"code","line":47,"col":4,"val":"arg4","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":49,"col":1}
|
||||
{"type":"call","line":49,"col":1,"val":"foo","args":null}
|
||||
{"type":"start-attributes","line":49,"col":5}
|
||||
{"type":"attribute","line":50,"col":3,"name":"attr3","val":"\"qux\"","mustEscape":true}
|
||||
{"type":"attribute","line":51,"col":3,"name":"class","val":"\"baz\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":52,"col":1}
|
||||
{"type":"newline","line":54,"col":1}
|
||||
{"type":"call","line":54,"col":1,"val":"my-mixin","args":"\n'1',\n '2',\n '3',\n '4'\n"}
|
||||
{"type":"newline","line":60,"col":1}
|
||||
{"type":"eos","line":60,"col":1}
|
||||
56
node_modules/pug-parser/test/cases/mixin.block-tag-behaviour.tokens.json
generated
vendored
Normal file
56
node_modules/pug-parser/test/cases/mixin.block-tag-behaviour.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"mixin","line":2,"col":1,"val":"article","args":"name"}
|
||||
{"type":"indent","line":3,"col":1,"val":2}
|
||||
{"type":"tag","line":3,"col":3,"val":"section"}
|
||||
{"type":"class","line":3,"col":10,"val":"article"}
|
||||
{"type":"indent","line":4,"col":1,"val":4}
|
||||
{"type":"tag","line":4,"col":5,"val":"h1"}
|
||||
{"type":"code","line":4,"col":7,"val":"name","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"mixin-block","line":5,"col":5}
|
||||
{"type":"outdent","line":7,"col":3}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"tag","line":7,"col":1,"val":"html"}
|
||||
{"type":"indent","line":8,"col":1,"val":2}
|
||||
{"type":"tag","line":8,"col":3,"val":"body"}
|
||||
{"type":"indent","line":9,"col":1,"val":4}
|
||||
{"type":"call","line":9,"col":5,"val":"article","args":"'Foo'"}
|
||||
{"type":":","line":9,"col":20}
|
||||
{"type":"tag","line":9,"col":22,"val":"p"}
|
||||
{"type":"text","line":9,"col":24,"val":"I'm article foo"}
|
||||
{"type":"outdent","line":11,"col":3}
|
||||
{"type":"outdent","line":11,"col":1}
|
||||
{"type":"mixin","line":11,"col":1,"val":"article","args":"name"}
|
||||
{"type":"indent","line":12,"col":1,"val":2}
|
||||
{"type":"tag","line":12,"col":3,"val":"section"}
|
||||
{"type":"class","line":12,"col":10,"val":"article"}
|
||||
{"type":"indent","line":13,"col":1,"val":4}
|
||||
{"type":"tag","line":13,"col":5,"val":"h1"}
|
||||
{"type":"code","line":13,"col":7,"val":"name","mustEscape":true,"buffer":true}
|
||||
{"type":"newline","line":14,"col":1}
|
||||
{"type":"tag","line":14,"col":5,"val":"p"}
|
||||
{"type":"indent","line":15,"col":1,"val":6}
|
||||
{"type":"mixin-block","line":15,"col":7}
|
||||
{"type":"outdent","line":17,"col":5}
|
||||
{"type":"outdent","line":17,"col":3}
|
||||
{"type":"outdent","line":17,"col":1}
|
||||
{"type":"tag","line":17,"col":1,"val":"html"}
|
||||
{"type":"indent","line":18,"col":1,"val":2}
|
||||
{"type":"tag","line":18,"col":3,"val":"body"}
|
||||
{"type":"indent","line":19,"col":1,"val":4}
|
||||
{"type":"call","line":19,"col":5,"val":"article","args":"'Something'"}
|
||||
{"type":"dot","line":19,"col":26}
|
||||
{"type":"start-pipeless-text","line":19,"col":27}
|
||||
{"type":"text","line":20,"col":7,"val":"I'm a much longer"}
|
||||
{"type":"newline","line":21,"col":1}
|
||||
{"type":"text","line":21,"col":7,"val":"text-only article,"}
|
||||
{"type":"newline","line":22,"col":1}
|
||||
{"type":"text","line":22,"col":7,"val":"but you can still"}
|
||||
{"type":"newline","line":23,"col":1}
|
||||
{"type":"text","line":23,"col":7,"val":"inline html tags"}
|
||||
{"type":"newline","line":24,"col":1}
|
||||
{"type":"text","line":24,"col":7,"val":"in me if you want."}
|
||||
{"type":"end-pipeless-text","line":24,"col":25}
|
||||
{"type":"outdent","line":24,"col":25}
|
||||
{"type":"outdent","line":24,"col":25}
|
||||
{"type":"eos","line":24,"col":25}
|
||||
108
node_modules/pug-parser/test/cases/mixin.blocks.tokens.json
generated
vendored
Normal file
108
node_modules/pug-parser/test/cases/mixin.blocks.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"mixin","line":3,"col":1,"val":"form","args":"method, action"}
|
||||
{"type":"indent","line":4,"col":1,"val":2}
|
||||
{"type":"tag","line":4,"col":3,"val":"form"}
|
||||
{"type":"start-attributes","line":4,"col":7}
|
||||
{"type":"attribute","line":4,"col":8,"name":"method","val":"method","mustEscape":true}
|
||||
{"type":"attribute","line":4,"col":23,"name":"action","val":"action","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":36}
|
||||
{"type":"indent","line":5,"col":1,"val":4}
|
||||
{"type":"code","line":5,"col":5,"val":"var csrf_token_from_somewhere = 'hey'","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":5,"val":"input"}
|
||||
{"type":"start-attributes","line":6,"col":10}
|
||||
{"type":"attribute","line":6,"col":11,"name":"type","val":"'hidden'","mustEscape":true}
|
||||
{"type":"attribute","line":6,"col":26,"name":"name","val":"'_csrf'","mustEscape":true}
|
||||
{"type":"attribute","line":6,"col":40,"name":"value","val":"csrf_token_from_somewhere","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":71}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"mixin-block","line":7,"col":5}
|
||||
{"type":"outdent","line":9,"col":3}
|
||||
{"type":"outdent","line":9,"col":1}
|
||||
{"type":"tag","line":9,"col":1,"val":"html"}
|
||||
{"type":"indent","line":10,"col":1,"val":2}
|
||||
{"type":"tag","line":10,"col":3,"val":"body"}
|
||||
{"type":"indent","line":11,"col":1,"val":4}
|
||||
{"type":"call","line":11,"col":5,"val":"form","args":"'GET', '/search'"}
|
||||
{"type":"indent","line":12,"col":1,"val":6}
|
||||
{"type":"tag","line":12,"col":7,"val":"input"}
|
||||
{"type":"start-attributes","line":12,"col":12}
|
||||
{"type":"attribute","line":12,"col":13,"name":"type","val":"'text'","mustEscape":true}
|
||||
{"type":"attribute","line":12,"col":26,"name":"name","val":"'query'","mustEscape":true}
|
||||
{"type":"attribute","line":12,"col":40,"name":"placeholder","val":"'Search'","mustEscape":true}
|
||||
{"type":"end-attributes","line":12,"col":60}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"tag","line":13,"col":7,"val":"input"}
|
||||
{"type":"start-attributes","line":13,"col":12}
|
||||
{"type":"attribute","line":13,"col":13,"name":"type","val":"'submit'","mustEscape":true}
|
||||
{"type":"attribute","line":13,"col":28,"name":"value","val":"'Search'","mustEscape":true}
|
||||
{"type":"end-attributes","line":13,"col":42}
|
||||
{"type":"outdent","line":15,"col":5}
|
||||
{"type":"outdent","line":15,"col":3}
|
||||
{"type":"outdent","line":15,"col":1}
|
||||
{"type":"tag","line":15,"col":1,"val":"html"}
|
||||
{"type":"indent","line":16,"col":1,"val":2}
|
||||
{"type":"tag","line":16,"col":3,"val":"body"}
|
||||
{"type":"indent","line":17,"col":1,"val":4}
|
||||
{"type":"call","line":17,"col":5,"val":"form","args":"'POST', '/search'"}
|
||||
{"type":"indent","line":18,"col":1,"val":6}
|
||||
{"type":"tag","line":18,"col":7,"val":"input"}
|
||||
{"type":"start-attributes","line":18,"col":12}
|
||||
{"type":"attribute","line":18,"col":13,"name":"type","val":"'text'","mustEscape":true}
|
||||
{"type":"attribute","line":18,"col":26,"name":"name","val":"'query'","mustEscape":true}
|
||||
{"type":"attribute","line":18,"col":40,"name":"placeholder","val":"'Search'","mustEscape":true}
|
||||
{"type":"end-attributes","line":18,"col":60}
|
||||
{"type":"newline","line":19,"col":1}
|
||||
{"type":"tag","line":19,"col":7,"val":"input"}
|
||||
{"type":"start-attributes","line":19,"col":12}
|
||||
{"type":"attribute","line":19,"col":13,"name":"type","val":"'submit'","mustEscape":true}
|
||||
{"type":"attribute","line":19,"col":28,"name":"value","val":"'Search'","mustEscape":true}
|
||||
{"type":"end-attributes","line":19,"col":42}
|
||||
{"type":"outdent","line":21,"col":5}
|
||||
{"type":"outdent","line":21,"col":3}
|
||||
{"type":"outdent","line":21,"col":1}
|
||||
{"type":"tag","line":21,"col":1,"val":"html"}
|
||||
{"type":"indent","line":22,"col":1,"val":2}
|
||||
{"type":"tag","line":22,"col":3,"val":"body"}
|
||||
{"type":"indent","line":23,"col":1,"val":4}
|
||||
{"type":"call","line":23,"col":5,"val":"form","args":"'POST', '/search'"}
|
||||
{"type":"outdent","line":25,"col":3}
|
||||
{"type":"outdent","line":25,"col":1}
|
||||
{"type":"mixin","line":25,"col":1,"val":"bar","args":null}
|
||||
{"type":"indent","line":26,"col":1,"val":2}
|
||||
{"type":"id","line":26,"col":3,"val":"bar"}
|
||||
{"type":"indent","line":27,"col":1,"val":4}
|
||||
{"type":"mixin-block","line":27,"col":5}
|
||||
{"type":"outdent","line":29,"col":3}
|
||||
{"type":"outdent","line":29,"col":1}
|
||||
{"type":"mixin","line":29,"col":1,"val":"foo","args":null}
|
||||
{"type":"indent","line":30,"col":1,"val":2}
|
||||
{"type":"id","line":30,"col":3,"val":"foo"}
|
||||
{"type":"indent","line":31,"col":1,"val":4}
|
||||
{"type":"call","line":31,"col":5,"val":"bar","args":null}
|
||||
{"type":"indent","line":32,"col":1,"val":6}
|
||||
{"type":"mixin-block","line":32,"col":7}
|
||||
{"type":"outdent","line":34,"col":5}
|
||||
{"type":"outdent","line":34,"col":3}
|
||||
{"type":"outdent","line":34,"col":1}
|
||||
{"type":"call","line":34,"col":1,"val":"foo","args":null}
|
||||
{"type":"indent","line":35,"col":1,"val":2}
|
||||
{"type":"tag","line":35,"col":3,"val":"p"}
|
||||
{"type":"text","line":35,"col":5,"val":"one"}
|
||||
{"type":"newline","line":36,"col":1}
|
||||
{"type":"tag","line":36,"col":3,"val":"p"}
|
||||
{"type":"text","line":36,"col":5,"val":"two"}
|
||||
{"type":"newline","line":37,"col":1}
|
||||
{"type":"tag","line":37,"col":3,"val":"p"}
|
||||
{"type":"text","line":37,"col":5,"val":"three"}
|
||||
{"type":"outdent","line":40,"col":1}
|
||||
{"type":"mixin","line":40,"col":1,"val":"baz","args":null}
|
||||
{"type":"indent","line":41,"col":1,"val":4}
|
||||
{"type":"id","line":41,"col":5,"val":"baz"}
|
||||
{"type":"indent","line":42,"col":1,"val":8}
|
||||
{"type":"mixin-block","line":42,"col":9}
|
||||
{"type":"outdent","line":44,"col":5}
|
||||
{"type":"outdent","line":44,"col":1}
|
||||
{"type":"call","line":44,"col":1,"val":"baz","args":""}
|
||||
{"type":"code","line":44,"col":7,"val":"'123'","mustEscape":true,"buffer":true}
|
||||
{"type":"eos","line":44,"col":14}
|
||||
58
node_modules/pug-parser/test/cases/mixin.merge.tokens.json
generated
vendored
Normal file
58
node_modules/pug-parser/test/cases/mixin.merge.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{"type":"mixin","line":1,"col":1,"val":"foo","args":null}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"p"}
|
||||
{"type":"class","line":2,"col":4,"val":"bar"}
|
||||
{"type":"&attributes","line":2,"col":8,"val":"attributes"}
|
||||
{"type":"text","line":2,"col":32,"val":"One"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":3,"val":"p"}
|
||||
{"type":"class","line":3,"col":4,"val":"baz"}
|
||||
{"type":"class","line":3,"col":8,"val":"quux"}
|
||||
{"type":"&attributes","line":3,"col":13,"val":"attributes"}
|
||||
{"type":"text","line":3,"col":37,"val":"Two"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":3,"val":"p"}
|
||||
{"type":"&attributes","line":4,"col":4,"val":"attributes"}
|
||||
{"type":"text","line":4,"col":28,"val":"Three"}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":3,"val":"p"}
|
||||
{"type":"class","line":5,"col":4,"val":"bar"}
|
||||
{"type":"&attributes","line":5,"col":8,"val":"attributes"}
|
||||
{"type":"start-attributes","line":5,"col":31}
|
||||
{"type":"attribute","line":5,"col":32,"name":"class","val":"\"baz\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":5,"col":43}
|
||||
{"type":"text","line":5,"col":45,"val":"Four"}
|
||||
{"type":"outdent","line":7,"col":1}
|
||||
{"type":"tag","line":7,"col":1,"val":"body"}
|
||||
{"type":"indent","line":8,"col":1,"val":2}
|
||||
{"type":"call","line":8,"col":3,"val":"foo","args":null}
|
||||
{"type":"class","line":8,"col":7,"val":"hello"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"call","line":9,"col":3,"val":"foo","args":null}
|
||||
{"type":"id","line":9,"col":7,"val":"world"}
|
||||
{"type":"newline","line":10,"col":1}
|
||||
{"type":"call","line":10,"col":3,"val":"foo","args":null}
|
||||
{"type":"class","line":10,"col":7,"val":"hello"}
|
||||
{"type":"id","line":10,"col":13,"val":"world"}
|
||||
{"type":"newline","line":11,"col":1}
|
||||
{"type":"call","line":11,"col":3,"val":"foo","args":null}
|
||||
{"type":"class","line":11,"col":7,"val":"hello"}
|
||||
{"type":"class","line":11,"col":13,"val":"world"}
|
||||
{"type":"newline","line":12,"col":1}
|
||||
{"type":"call","line":12,"col":3,"val":"foo","args":null}
|
||||
{"type":"start-attributes","line":12,"col":7}
|
||||
{"type":"attribute","line":12,"col":8,"name":"class","val":"\"hello\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":12,"col":21}
|
||||
{"type":"newline","line":13,"col":1}
|
||||
{"type":"call","line":13,"col":3,"val":"foo","args":null}
|
||||
{"type":"class","line":13,"col":7,"val":"hello"}
|
||||
{"type":"start-attributes","line":13,"col":13}
|
||||
{"type":"attribute","line":13,"col":14,"name":"class","val":"\"world\"","mustEscape":true}
|
||||
{"type":"end-attributes","line":13,"col":27}
|
||||
{"type":"newline","line":14,"col":1}
|
||||
{"type":"call","line":14,"col":3,"val":"foo","args":null}
|
||||
{"type":"newline","line":15,"col":1}
|
||||
{"type":"call","line":15,"col":3,"val":"foo","args":null}
|
||||
{"type":"&attributes","line":15,"col":7,"val":"{class: \"hello\"}"}
|
||||
{"type":"outdent","line":15,"col":36}
|
||||
{"type":"eos","line":15,"col":36}
|
||||
7
node_modules/pug-parser/test/cases/mixins-unused.tokens.json
generated
vendored
Normal file
7
node_modules/pug-parser/test/cases/mixins-unused.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{"type":"mixin","line":1,"col":1,"val":"never-called","args":null}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"class","line":2,"col":3,"val":"wtf"}
|
||||
{"type":"text","line":2,"col":8,"val":"This isn't something we ever want to output"}
|
||||
{"type":"outdent","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":1,"val":"body"}
|
||||
{"type":"eos","line":3,"col":5}
|
||||
14
node_modules/pug-parser/test/cases/mixins.rest-args.tokens.json
generated
vendored
Normal file
14
node_modules/pug-parser/test/cases/mixins.rest-args.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{"type":"mixin","line":1,"col":1,"val":"list","args":"tag, ...items"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"interpolation","line":2,"col":3,"val":"tag"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"each","line":3,"col":5,"val":"item","key":null,"code":"items"}
|
||||
{"type":"indent","line":4,"col":1,"val":6}
|
||||
{"type":"tag","line":4,"col":7,"val":"li"}
|
||||
{"type":"code","line":4,"col":9,"val":"item","mustEscape":true,"buffer":true}
|
||||
{"type":"outdent","line":6,"col":5}
|
||||
{"type":"outdent","line":6,"col":3}
|
||||
{"type":"outdent","line":6,"col":1}
|
||||
{"type":"call","line":6,"col":1,"val":"list","args":"'ul', 1, 2, 3, 4"}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"eos","line":7,"col":1}
|
||||
65
node_modules/pug-parser/test/cases/mixins.tokens.json
generated
vendored
Normal file
65
node_modules/pug-parser/test/cases/mixins.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
{"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}
|
||||
8
node_modules/pug-parser/test/cases/namespaces.tokens.json
generated
vendored
Normal file
8
node_modules/pug-parser/test/cases/namespaces.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"fb:user:role"}
|
||||
{"type":"text","line":1,"col":14,"val":"Something"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"foo"}
|
||||
{"type":"start-attributes","line":2,"col":4}
|
||||
{"type":"attribute","line":2,"col":5,"name":"fb:foo","val":"'bar'","mustEscape":true}
|
||||
{"type":"end-attributes","line":2,"col":17}
|
||||
{"type":"eos","line":2,"col":18}
|
||||
23
node_modules/pug-parser/test/cases/nesting.tokens.json
generated
vendored
Normal file
23
node_modules/pug-parser/test/cases/nesting.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"ul"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"li"}
|
||||
{"type":"text","line":2,"col":6,"val":"a"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"tag","line":3,"col":3,"val":"li"}
|
||||
{"type":"text","line":3,"col":6,"val":"b"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":3,"val":"li"}
|
||||
{"type":"indent","line":5,"col":1,"val":4}
|
||||
{"type":"tag","line":5,"col":5,"val":"ul"}
|
||||
{"type":"indent","line":6,"col":1,"val":8}
|
||||
{"type":"tag","line":6,"col":9,"val":"li"}
|
||||
{"type":"text","line":6,"col":12,"val":"c"}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"tag","line":7,"col":9,"val":"li"}
|
||||
{"type":"text","line":7,"col":12,"val":"d"}
|
||||
{"type":"outdent","line":8,"col":5}
|
||||
{"type":"outdent","line":8,"col":3}
|
||||
{"type":"tag","line":8,"col":3,"val":"li"}
|
||||
{"type":"text","line":8,"col":6,"val":"e"}
|
||||
{"type":"outdent","line":8,"col":7}
|
||||
{"type":"eos","line":8,"col":7}
|
||||
9
node_modules/pug-parser/test/cases/pipeless-comments.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/pipeless-comments.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"comment","line":1,"col":1,"val":"","buffer":true}
|
||||
{"type":"start-pipeless-text","line":1,"col":3}
|
||||
{"type":"text","line":2,"col":3,"val":" .foo"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"text","line":3,"col":3,"val":"\t.bar"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"text","line":4,"col":3,"val":".hey"}
|
||||
{"type":"end-pipeless-text","line":4,"col":7}
|
||||
{"type":"eos","line":4,"col":7}
|
||||
9
node_modules/pug-parser/test/cases/pipeless-filters.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/pipeless-filters.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"filter","line":1,"col":1,"val":"markdown-it"}
|
||||
{"type":"start-pipeless-text","line":1,"col":13}
|
||||
{"type":"text","line":2,"col":3,"val":" code sample"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"text","line":3,"col":3,"val":""}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"text","line":4,"col":3,"val":"# Heading"}
|
||||
{"type":"end-pipeless-text","line":4,"col":12}
|
||||
{"type":"eos","line":4,"col":12}
|
||||
14
node_modules/pug-parser/test/cases/pipeless-tag.tokens.json
generated
vendored
Normal file
14
node_modules/pug-parser/test/cases/pipeless-tag.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"pre"}
|
||||
{"type":"dot","line":1,"col":4}
|
||||
{"type":"start-pipeless-text","line":1,"col":5}
|
||||
{"type":"text","line":2,"col":3,"val":" what"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"text","line":3,"col":3,"val":"is "}
|
||||
{"type":"interpolated-code","line":3,"col":6,"val":"'going'","mustEscape":true,"buffer":true}
|
||||
{"type":"text","line":3,"col":16,"val":" "}
|
||||
{"type":"start-pug-interpolation","line":3,"col":17}
|
||||
{"type":"interpolated-code","line":3,"col":21,"val":"'on'","mustEscape":true,"buffer":true}
|
||||
{"type":"end-pug-interpolation","line":3,"col":28}
|
||||
{"type":"text","line":3,"col":29,"val":""}
|
||||
{"type":"end-pipeless-text","line":3,"col":29}
|
||||
{"type":"eos","line":3,"col":29}
|
||||
25
node_modules/pug-parser/test/cases/pre.tokens.json
generated
vendored
Normal file
25
node_modules/pug-parser/test/cases/pre.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"pre"}
|
||||
{"type":"dot","line":1,"col":4}
|
||||
{"type":"start-pipeless-text","line":1,"col":5}
|
||||
{"type":"text","line":2,"col":3,"val":"foo"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"text","line":3,"col":3,"val":"bar"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"text","line":4,"col":3,"val":"baz"}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"text","line":5,"col":3,"val":""}
|
||||
{"type":"end-pipeless-text","line":5,"col":3}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"pre"}
|
||||
{"type":"indent","line":7,"col":1,"val":2}
|
||||
{"type":"tag","line":7,"col":3,"val":"code"}
|
||||
{"type":"dot","line":7,"col":7}
|
||||
{"type":"start-pipeless-text","line":7,"col":8}
|
||||
{"type":"text","line":8,"col":5,"val":"foo"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"text","line":9,"col":5,"val":"bar"}
|
||||
{"type":"newline","line":10,"col":1}
|
||||
{"type":"text","line":10,"col":5,"val":"baz"}
|
||||
{"type":"end-pipeless-text","line":10,"col":8}
|
||||
{"type":"outdent","line":10,"col":8}
|
||||
{"type":"eos","line":10,"col":8}
|
||||
6
node_modules/pug-parser/test/cases/quotes.tokens.json
generated
vendored
Normal file
6
node_modules/pug-parser/test/cases/quotes.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"p"}
|
||||
{"type":"text","line":1,"col":3,"val":"\"foo\""}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"p"}
|
||||
{"type":"text","line":2,"col":3,"val":"'foo'"}
|
||||
{"type":"eos","line":2,"col":8}
|
||||
9
node_modules/pug-parser/test/cases/regression.1794.tokens.json
generated
vendored
Normal file
9
node_modules/pug-parser/test/cases/regression.1794.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{"type":"extends","line":1,"col":1}
|
||||
{"type":"path","line":1,"col":9,"val":"./auxiliary/1794-extends.pug"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"block","line":3,"col":1,"val":"content","mode":"replace"}
|
||||
{"type":"indent","line":4,"col":1,"val":2}
|
||||
{"type":"include","line":4,"col":3}
|
||||
{"type":"path","line":4,"col":11,"val":"./auxiliary/1794-include.pug"}
|
||||
{"type":"outdent","line":4,"col":39}
|
||||
{"type":"eos","line":4,"col":39}
|
||||
5
node_modules/pug-parser/test/cases/regression.784.tokens.json
generated
vendored
Normal file
5
node_modules/pug-parser/test/cases/regression.784.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{"type":"code","line":1,"col":1,"val":"var url = 'http://www.google.com'","mustEscape":false,"buffer":false}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"class","line":2,"col":1,"val":"url"}
|
||||
{"type":"interpolated-code","line":2,"col":6,"val":"url.replace('http://', '').replace(/^www\\./, '')","mustEscape":true,"buffer":true}
|
||||
{"type":"eos","line":2,"col":57}
|
||||
14
node_modules/pug-parser/test/cases/script.whitespace.tokens.json
generated
vendored
Normal file
14
node_modules/pug-parser/test/cases/script.whitespace.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"script"}
|
||||
{"type":"dot","line":1,"col":7}
|
||||
{"type":"start-pipeless-text","line":1,"col":8}
|
||||
{"type":"text","line":2,"col":3,"val":"if (foo) {"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"text","line":3,"col":3,"val":" "}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"text","line":4,"col":3,"val":" bar();"}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"text","line":5,"col":3,"val":""}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"text","line":6,"col":3,"val":"}"}
|
||||
{"type":"end-pipeless-text","line":6,"col":4}
|
||||
{"type":"eos","line":6,"col":4}
|
||||
29
node_modules/pug-parser/test/cases/scripts.non-js.tokens.json
generated
vendored
Normal file
29
node_modules/pug-parser/test/cases/scripts.non-js.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"script"}
|
||||
{"type":"id","line":1,"col":7,"val":"user-template"}
|
||||
{"type":"start-attributes","line":1,"col":21}
|
||||
{"type":"attribute","line":1,"col":22,"name":"type","val":"'text/template'","mustEscape":true}
|
||||
{"type":"end-attributes","line":1,"col":42}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"id","line":2,"col":3,"val":"user"}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"h1"}
|
||||
{"type":"text","line":3,"col":8,"val":"<%= user.name %>"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":5,"val":"p"}
|
||||
{"type":"text","line":4,"col":7,"val":"<%= user.description %>"}
|
||||
{"type":"outdent","line":6,"col":3}
|
||||
{"type":"outdent","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"script"}
|
||||
{"type":"id","line":6,"col":7,"val":"user-template"}
|
||||
{"type":"start-attributes","line":6,"col":21}
|
||||
{"type":"attribute","line":6,"col":22,"name":"type","val":"'text/template'","mustEscape":true}
|
||||
{"type":"end-attributes","line":6,"col":42}
|
||||
{"type":"dot","line":6,"col":43}
|
||||
{"type":"start-pipeless-text","line":6,"col":44}
|
||||
{"type":"text","line":7,"col":3,"val":"if (foo) {"}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"text","line":8,"col":3,"val":" bar();"}
|
||||
{"type":"newline","line":9,"col":1}
|
||||
{"type":"text","line":9,"col":3,"val":"}"}
|
||||
{"type":"end-pipeless-text","line":9,"col":4}
|
||||
{"type":"eos","line":9,"col":4}
|
||||
20
node_modules/pug-parser/test/cases/scripts.tokens.json
generated
vendored
Normal file
20
node_modules/pug-parser/test/cases/scripts.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"script"}
|
||||
{"type":"dot","line":1,"col":7}
|
||||
{"type":"start-pipeless-text","line":1,"col":8}
|
||||
{"type":"text","line":2,"col":3,"val":"if (foo) {"}
|
||||
{"type":"newline","line":3,"col":1}
|
||||
{"type":"text","line":3,"col":3,"val":" bar();"}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"text","line":4,"col":3,"val":"}"}
|
||||
{"type":"end-pipeless-text","line":4,"col":4}
|
||||
{"type":"newline","line":5,"col":1}
|
||||
{"type":"tag","line":5,"col":1,"val":"script"}
|
||||
{"type":"code","line":5,"col":7,"val":"'foo()'","mustEscape":false,"buffer":true}
|
||||
{"type":"newline","line":6,"col":1}
|
||||
{"type":"tag","line":6,"col":1,"val":"script"}
|
||||
{"type":"text","line":6,"col":8,"val":"foo()"}
|
||||
{"type":"newline","line":7,"col":1}
|
||||
{"type":"tag","line":7,"col":1,"val":"script"}
|
||||
{"type":"newline","line":8,"col":1}
|
||||
{"type":"tag","line":8,"col":1,"val":"div"}
|
||||
{"type":"eos","line":8,"col":4}
|
||||
11
node_modules/pug-parser/test/cases/self-closing-html.tokens.json
generated
vendored
Normal file
11
node_modules/pug-parser/test/cases/self-closing-html.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{"type":"doctype","line":1,"col":1,"val":"html"}
|
||||
{"type":"newline","line":2,"col":1}
|
||||
{"type":"tag","line":2,"col":1,"val":"html"}
|
||||
{"type":"indent","line":3,"col":1,"val":2}
|
||||
{"type":"tag","line":3,"col":3,"val":"body"}
|
||||
{"type":"indent","line":4,"col":1,"val":4}
|
||||
{"type":"tag","line":4,"col":5,"val":"br"}
|
||||
{"type":"slash","line":4,"col":7}
|
||||
{"type":"outdent","line":5,"col":3}
|
||||
{"type":"outdent","line":5,"col":1}
|
||||
{"type":"eos","line":5,"col":1}
|
||||
3
node_modules/pug-parser/test/cases/single-period.tokens.json
generated
vendored
Normal file
3
node_modules/pug-parser/test/cases/single-period.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"span"}
|
||||
{"type":"text","line":1,"col":6,"val":"."}
|
||||
{"type":"eos","line":1,"col":7}
|
||||
21
node_modules/pug-parser/test/cases/source.tokens.json
generated
vendored
Normal file
21
node_modules/pug-parser/test/cases/source.tokens.json
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{"type":"tag","line":1,"col":1,"val":"html"}
|
||||
{"type":"indent","line":2,"col":1,"val":2}
|
||||
{"type":"tag","line":2,"col":3,"val":"audio"}
|
||||
{"type":"start-attributes","line":2,"col":8}
|
||||
{"type":"attribute","line":2,"col":9,"name":"preload","val":"'auto'","mustEscape":true}
|
||||
{"type":"attribute","line":2,"col":25,"name":"autobuffer","val":true,"mustEscape":false}
|
||||
{"type":"attribute","line":2,"col":37,"name":"controls","val":true,"mustEscape":false}
|
||||
{"type":"end-attributes","line":2,"col":45}
|
||||
{"type":"indent","line":3,"col":1,"val":4}
|
||||
{"type":"tag","line":3,"col":5,"val":"source"}
|
||||
{"type":"start-attributes","line":3,"col":11}
|
||||
{"type":"attribute","line":3,"col":12,"name":"src","val":"'foo'","mustEscape":true}
|
||||
{"type":"end-attributes","line":3,"col":21}
|
||||
{"type":"newline","line":4,"col":1}
|
||||
{"type":"tag","line":4,"col":5,"val":"source"}
|
||||
{"type":"start-attributes","line":4,"col":11}
|
||||
{"type":"attribute","line":4,"col":12,"name":"src","val":"'bar'","mustEscape":true}
|
||||
{"type":"end-attributes","line":4,"col":21}
|
||||
{"type":"outdent","line":4,"col":22}
|
||||
{"type":"outdent","line":4,"col":22}
|
||||
{"type":"eos","line":4,"col":22}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user