Skip to content

Incorrect syntax highlighting in TS #802

@hisabimbola

Description

@hisabimbola

TS and JS Grammar Extension version: 0.0.53 / latest

Code
The following code breaks the syntax highlighting in typescript

// Please include a code snippet that demonstrates the issue
@Component({
  selector: 'foobar',
  styles: [(require<any>('./foobar.component.scss')).default.toString()],
  template: require('./foobar.component.html') as string,
  changeDetection: ChangeDetectionStrategy.OnPush,
})

I have no exact clue what could be wrong but if I comment out the styles property and then the syntax highlighting starts to work again.

Original issue:
Screen Shot 2020-01-13 at 13 18 03

After commenting out the styles property
Screen Shot 2020-01-13 at 13 18 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions