Skip to content

Typed Template Haskell quotations / splices not handled correctly #116

Closed
@kosmikus

Description

@kosmikus

GHC with TemplateHaskell allows typed quotations and splices, written

[|| x ||]

and

$$(foo bar)

or just

$$x

Looks like the tree-sitter parser currently handles this incorrectly, breaking syntax highlighting in rather substantial ways for files containing these constructs.

I looked briefly whether there's a very quick fix, but unfortunately it looks like this requires adapting the scanner.

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