osa1 / language-lua

Lua parser and pretty-printer
BSD 3-Clause "New" or "Revised" License
51 stars 17 forks source link

Uninterpreted strings are pretty-printed wrong #8

Closed osa1 closed 8 years ago

osa1 commented 10 years ago

This file:

f = load[[
  local x = {...}
  for i=1,select('#', ...) do assert(x[i] == select(i, ...)) end
  assert(x[select('#', ...)+1] == nil)
  return true
]]

is pretty-printed as:

f = load"  local x = {...}
  for i=1,select('#', ...) do assert(x[i] == select(i, ...)) end
  assert(x[select('#', ...)+1] == nil)
  return true
"