Skip to content

symbol includes trailing @ sign in as-patterns #311

Closed
@mattraibert

Description

@mattraibert

Emacs 24.3.91.1 (built from src on ubuntu)
haskell-mode 20140726.1852 (from melpa)

When I use find-tag or highlight-symbol-at-point on an as-pattern, emacs incorrectly thinks the at-sign is part of the symbol.

For example, in the following code, if point is on the xxs on the left-hand side of line 3, and you type M-. to find-tag, the default symbol to search for will be xxs@

tails                   :: [a] -> [[a]]
tails []                =  [[]]
tails xxs@(_:xs)        =  xxs : tails xs

It's also observable in this screenshot of this code store@ is highlighted but not store

store

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