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

Incorrect HTML Syntax highlighting on SVG with Line break #67402

Closed
marcelcremer opened this issue Jan 29, 2019 · 1 comment
Closed

Incorrect HTML Syntax highlighting on SVG with Line break #67402

marcelcremer opened this issue Jan 29, 2019 · 1 comment
Assignees
Labels
html HTML support issues

Comments

@marcelcremer
Copy link

marcelcremer commented Jan 29, 2019

  • VSCode Version:
    Version: 1.30.2 (system setup)
    Commit: 61122f8
    Datum: 2019-01-07T22:53:57.820Z
    Electron: 2.0.12
    Chrome: 61.0.3163.100
    Node.js: 8.9.3
    V8: 6.1.534.41
    Betriebssystem: Windows_NT ia32 10.0.17134

  • OS Version: Windows 10

Steps to Reproduce:

Insert the following code in an HTML-File:

<div>
    <svg class="fi">
        <use xlink:href="/assets/feather/feather-sprite.svg#edit" /></svg
        >
</div>

Mind the Line break between </svg and >.

The syntax highlighting will break for everything after the SVG:
image

Found through strange SVG formatting by prettier: prettier/prettier#5541

Does this issue occur when all extensions are disabled?: Yes

@alexr00
Copy link
Member

alexr00 commented Jan 31, 2019

This issue was moved to textmate/html.tmbundle#101

@alexr00 alexr00 closed this as completed Jan 31, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
html HTML support issues
Projects
None yet
Development

No branches or pull requests

3 participants