1
0
Fork 0
mirror of https://github.com/Oreolek/ink-instead.git synced 2024-05-12 22:18:26 +03:00
ink-instead/test/parser/comments.lua
2017-08-09 11:36:14 +02:00

35 lines
720 B
Lua

return {
ink=[[
Hello?
TODO: this is a test todo-item
"What do you make of this?" she asked.
// Something unprintable...
"I couldn't possibly comment," I replied.
/*
... or an unlimited block of text
*/
we <> /* he
asdf
*/ hurr ied-> to_savile_row // comm
]],
expected= {
{"para", "Hello?"},
{"todo", "this is a test todo-item"},
{"para", '"What do you make of this?" she asked.'},
{"comment", "Something unprintable..."},
{"para", "\"I couldn't possibly comment,\" I replied."},
{"comment", "... or an unlimited block of text\n"},
{"para", "we "},
{"glue"},
{"comment", "he\nasdf\n"},
{"para", "hurr ied"},
{"divert", "to_savile_row"},
{"comment", "comm"},
}}