Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting breaks when a line break appears within a template #1998

Open
a-stewart opened this issue Feb 6, 2024 · 1 comment
Open
Labels

Comments

@a-stewart
Copy link
Contributor

Example:

<h2>This is a test file</h2>

<b>Hello {{ name }}!</b> This is a very long string just to say that today is {{today | date: 'MMM
d, y, h:mm a'}}

<div>
  There is more HTML here

  <div>
    Nested divs are cool!
    <div>(sometimes)</div>
  </div>
</div>

Renders as follows.

image

@a-stewart a-stewart added the bug label Feb 6, 2024
@atscott
Copy link
Collaborator

atscott commented Feb 6, 2024

Is splitting a single quoted string across multiple lines actually allowed? Even though there might not be a compiler error, I’m inclined to say this is working as expected or at the very least, extremely low priority. Potentially this should be a bug in the compiler instead for not reporting an error here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants