Skip to content

whitespace handling in function type signature #48

@mfussenegger

Description

@mfussenegger

lua-language-server allows to define the type for functions like fun(PARAM: TYPE): RETURN_TYPE

It appears that lemmy-help currently stops at the first whitespace.

In something like this:

---@alias TestRunner fun(classname: string, methodname: string):string, string[]

It only renders:

     Type: ~
         fun(classname:

Without whitespace it works:

---@alias TestRunner fun(classname:string,methodname:string):(string,string[])

Would be nice if the variant with whitespaces worked too.

Update: I just noticed #47, so this is already getting addressed?

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