Skip to content

newline before leading brace breaks function_declaration #130

@orph

Description

@orph

With tree-sitter-typescript version 0.16.1 parses this as a (function_declaration):

function foo() {}

But does not parse as a (function_declaration):

function foo()
{}

Does not occur with (function) or (method_definition)

Screen Shot 2021-01-28 at 7 09 52 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions