Skip to content

Typescript: Incorrectly identifying attributes as keywords #2860

@hdsuperman

Description

@hdsuperman

Information:

  • Prism version: 1.23.0
  • Plugins: none
  • Environment: Browser

Description
Incorrectly identifying attributes as keywords

Example

the "type" attribute

render by github:

export interface R<T> {
  data: T;
  total: number;
  type?: string;
}

render by prismjs:
Screenshot from 2021-04-18 00-33-40

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