ruuda / pris

A language for designing slides

Home Page:https://docs.ruuda.nl/pris/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Highlight on multiline string syntax error is wrong

ruuda opened this issue · comments

Consider the following invalid input:

{
  ---
  foo
  ---
}

It triggers the following error message:

Parse error at line 2:

  ---
  ^~~~~~~~~~~~~~~
Error: Parse error in statement: expected import, return, assignment, block, or put.

The highlight of ~~~ should not extend that long; the end of line inside the multiline string should be taken into account.