Skip to content

comment in front of haddock messes up parsing #142

@ScamChamp

Description

@ScamChamp

This seems to be a problem with the grammar itself, as the code:

-- Comment
-- | Test what
f :: Int

Has the concrete syntax tree of:

(haskell (comment)
 declarations: 
  (declarations
   (signature name: (variable) :: type: (name))))

Here you can see there is no 'haddock' element popping up.

The code:

-- | Test what
f :: Int

Has concrete syntax tree of:

(haskell (haddock)
 declarations: 
  (declarations
   (signature name: (variable) :: type: (name))))

which is correct as it has (haddock).

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