Skip to content

Lua lexer incorrectly handling gsub with non-string-literal arguments #2314

Description

@Phroneris

Name of the lexer
Lua

Code sample

str = string.gsub(str, a, b)  -- valid and no error
str = str:gsub(a, b)          -- valid but error

Although both lines are valid Lua code, the argument part in the latter line is treated as errors.

Screenshot of Live Demo

Live Demo → Link

Additional context
(None)

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

    bugfix-requestA request for a bugfix to be developed.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions