lua-users home
lua-l archive

Re: A review of changes between 5.1 and 5.2-work3

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> http://www.corsix.org/content/look-lua-52-work3
Thanks for this wonderful overview! The \* escape reminded me of a
construction that I once used in a template language to denote literal
multi-line strings: all white space between an embedded '\n' up to and
including the next ':' character was skipped. That allowed to have
nicely indented code/html snippets like so:
local text = "int foo ()
 :{
 : return 5;
 :}
 :"
Bye,
Wim

AltStyle によって変換されたページ (->オリジナル) /