yasl icon indicating copy to clipboard operation
yasl copied to clipboard

Don't treat newlines as `;` within `(...)`, `table`, `list`, and `"..."`

Open CoffeeTableEspresso opened this issue 11 months ago • 1 comments

The following should all work:

echo {
    1: 'one'
}

echo [
    1,
    2
]

echo (
    'saddsada'
)

echo "the value is #{
    value
}"

CoffeeTableEspresso avatar Mar 19 '24 01:03 CoffeeTableEspresso

currently, for lists and tables, we simply ignore a trailing newline (or semicolon) in these cases. The semicolon should be disallowed.

CoffeeTableEspresso avatar Mar 23 '24 20:03 CoffeeTableEspresso