Skip to content

Syntax error: unexpected ',' when inside multiline string '[[' #3

@ghost

Description

Hi,

First of all thanks for this project. I would like to have more time and knowledge to help on hematita. :)

So, let's talk about bugs...the code below does not run on hematita_cli, but on luajit works fine.

Error

$ hematita_cli print_html.lua 
syntax error: unexpected ','

Code

-- print_html.lua
local html = [[
    <html>
        <head>
            <style>
            table, th, td {
            border: 1px solid black;
            border-collapse: collapse;
            }
            </style>
        </head>
        <body>
        ]]
        local html_footer = [[
        </body>
    </html>
    ]]

print(html)

Metadata

Metadata

Assignees

Labels

Domain - ParserThis issue deals with the parser. (ast::parser)Type - BugThe library did something unexpected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions