commit | author | age
|
5cb5f7
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(require 'smartparens) |
|
16 |
#@17 |
|
17 |
|
|
18 |
(fn MS MB ME) |
|
19 |
(defalias 'sp-haskell-skip-apostrophe #[771 "\212\300\301!!)\302=?\207" [syntax-class syntax-after 7] 6 (#$ . 431)]) |
|
20 |
#@331 Ignore trailing ' when navigating. |
|
21 |
|
|
22 |
Because ' in haskell is symbol class it gets picked up as part of |
|
23 |
a words such as myFunction', and then strict mode won't allow us |
|
24 |
to delete it. Also show-smartparens-mode incorrectly highlights |
|
25 |
it as missing an opener. |
|
26 |
|
|
27 |
So we ignore that pair when at the end of word. |
|
28 |
|
|
29 |
(fn ID ACTION CONTEXT) |
|
30 |
(defalias 'sp-haskell-strict-ignore-apostrophe-after-word #[771 "\300=\205 |