Skip to content

Doesn't recognice def as functions #86

@Gurran

Description

@Gurran

Describe the bug

Does not recognize vim9 functions as functions and warns that return isn't inside a function block.
NOTE: this is inside a file with vim9script as the first line.

To Reproduce

vim9script

def MyFunction(): bool
    return true
enddef

Expected behavior
No error to be shown

Screenshots
Screenshot from 2023-03-31 11-53-14

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