Skip to content

' should not be a pair in purescript-mode #1236

@alternateved

Description

@alternateved

Hello,

This is basically almost a duplicate of #710. As PureScript is heavily based on Haskell so is purescript-mode based on haskell-mode. Most likely sp-haskell-strict-ignore-apostrophe-after-word should be applied for purescript-mode as well.

For now this is a workaround:

  (with-eval-after-load 'purescript-mode
    (require 'smartparens-haskell)
    (sp-with-modes '(purescript-mode)
      (sp-local-pair "'" nil
                     :unless '(sp-point-after-word-p
                               sp-haskell-strict-ignore-apostrophe-after-word)
                     :skip-match 'sp-haskell-skip-apostrophe)))

There might be issues with lambdas starting with \( or \{ as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions