diff --git a/shared/src/main/scala/io/kaitai/struct/translators/LuaTranslator.scala b/shared/src/main/scala/io/kaitai/struct/translators/LuaTranslator.scala index c1da7d155..b3287d4e9 100644 --- a/shared/src/main/scala/io/kaitai/struct/translators/LuaTranslator.scala +++ b/shared/src/main/scala/io/kaitai/struct/translators/LuaTranslator.scala @@ -160,6 +160,13 @@ class LuaTranslator(provider: TypeProvider, importList: ImportList) extends Base s"utils.array_max(${translate(a)})" } + override def doInterpolatedStringLiteral(exprs: Seq[Ast.expr]): String = + if (exprs.isEmpty) { + doStringLiteral("") + } else { + exprs.map(anyToStr).mkString(" .. ") + } + override def kaitaiStreamSize(value: Ast.expr): String = s"${translate(value)}:size()" override def kaitaiStreamEof(value: Ast.expr): String =