Skip to content

parser: unexpected token goto #240

@kkharji

Description

@kkharji

Hello @JohnnyMorganz

I was trying to format the following file :

https://github.com/pwntester/octo.nvim/blob/master/lua/octo/model/octo-buffer.lua

but got the following message

Could not format file lua/octo/model/octo-buffer.lua: 
error parsing: error occurred while creating ast: 
unexpected token `goto`. (starting from line 171, character 9 and ending on line 171, character 13)

Additionally, when I commented that line I got similar error related to ::continue::

more info pwntester/octo.nvim#193

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