Skip to content

Possible issues with jsFuncBlock detection for arrow functions not wrapped in parens/curly-braces #1231

Open
@BrandonMathis

Description

@BrandonMathis

Running this plugin alone with no other plugins. On basic js files it seems that we have having some trouble detecting a jsFuncBlock on arrow functions that are one-line and have no { } or ( ) surrounding the function body.

Bellow is an image the demonstrates this issue. The first two functions have the function's body wrapped in { } or ( ). They highlight correctly but the last function does not.

Screen Shot 2021-03-24 at 2 24 31 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions