Skip to content

Add method scope for functions invoked as members of an object #736

Description

@atomiks

TS and JS Grammar Extension version: 0.0.50 / latest

Similar to #700 but this should be possible without semantic colorization. Check if the function invocation was preceded by .

Example regexp implementation here: https://github.com/RunDevelopment/prism/blob/0685d641b000ff0ee5429001cdd439f2e05be882/components/prism-js-extras.js

example() // entity.name.function
obj.example() // entity.name.function.method

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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