iamcco / iamcco/vim-language-server

Doesn't recognice def as functions

Open
#86 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
546
Forks
19
PR merge metrics
No merged PRs in 30d

Description

**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
vim9script

def MyFunction(): bool
return true
enddef
```
**Expected behavior**
No error to be shown

**Screenshots**
![Screenshot from 2023-03-31 11-53-14](https://user-images.githubusercontent.com/42462633/229088607-426d5ee4-4394-4e16-9d00-448b7cb78683.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.