Skip to content

TextMate scope for self #487

Description

@musthbly

Describe the bug
In functions defined using the colon syntax, self is given the variable.parameter scope.

To Reproduce
Steps to reproduce the behavior:

  1. Define a function using the colon syntax (e.g. function t:func() self.x = 0 end)
  2. The TextMate scope assigned to self should be variable.parameter

Expected behavior
self should be given the variable.language.self scope, like in 1.20.1.

Screenshots
Current behavior (1.20.2):
Current behavior (1.20.2)
Expected behavior (1.20.1):
Expected behavior (1.20.1)

Environment (please complete the following information):

  • OS: macOS
  • Is WSL remote? No
  • Client: VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions