Skip to content

(typescript) $class variable is incorrectly highlighted as a keyword #2516

@1aron

Description

@1aron

Describe the issue

Which language seems to have the issue?

Are you using highlight or highlightAuto? highlight

...

Sample Code to Reproduce

https://jsfiddle.net/fsLxdrpm/1/

const ElementPrototype = Element.prototype;
const isBool = (v: any) => typeof v === 'boolean';
const $class = (v: any) => typeof v === 'boolean';
const whether = isBool(true);
const test = $class(true);

Expected behavior

  1. $class prefix with $ went wrong
  2. method with class name went wrong
  3. method isn't be highlighted
  4. Element isn't be highlighted
  5. isBool isn't be highlighted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions