Skip to content

Higlighting of jsx file is inconsistent #262

Closed
@mhegazy

Description

@mhegazy

From @waderyan on September 16, 2016 20:6

From @anvish on September 15, 2016 17:2

  • VSCode Version: 1.5.2 (run with --disable-extensions)
  • OS Version: Windows 7 SP1

Steps to Reproduce:

  1. Open .jsx file
import React from 'react'
function render() {
    return (
        <div>
            <table >
                <thead>
                    <tr>
                        <th className="b"></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td className="b"></td>
                        {this.items.map(item =>
                            <td key={item.code} className="b">{item.value}</td>
                        ) }
                    </tr>
                    <tr>
                        <td className="b"></td>
                        {this.items.map(item =>
                            <td key={item.code} className="b">{item.value}</td>
                        ) }
                    </tr>
                </tbody>
            </table>
        </div>
    )
}
render()

Note a space in <table > tag.
2. Remove a space in <table > tag.
Color of last <td> content changes

2
1

Copied from original issue: microsoft/vscode#12093

Copied from original issue: microsoft/TypeScript#10955

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions