File tree 2 files changed +18
-1
lines changed 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 80
80
; ; We could use font-lock-syntactic-keywords, but is it worth it?
81
81
; ; (modify-syntax-entry ?- ". 12" st)
82
82
(modify-syntax-entry ?\n " >" st)
83
- (modify-syntax-entry ?. " w" st)
84
83
(modify-syntax-entry ?- " w" st)
85
84
st))
86
85
Original file line number Diff line number Diff line change 50
50
(haskell-cabal-previous-subsection)
51
51
(haskell-cabal-previous-section))))
52
52
53
+ (ert-deftest haskell-cabal-period-is-a-word-break ()
54
+ (with-temp-buffer
55
+ (insert " Executable bin
56
+ Main-Is: Main
57
+ Exposed-Modules: Some.Internal.Type
58
+ " )
59
+ (haskell-cabal-mode )
60
+ (goto-char (point-min ))
61
+ (search-forward " Modules:" )
62
+ (skip-chars-forward " " )
63
+ (should (looking-at-p " Some" ))
64
+ (forward-word )
65
+ (should (looking-at-p " .Internal" ))
66
+ (forward-word )
67
+ (should (looking-at-p " .Type" ))
68
+ (backward-word )
69
+ (should (looking-at-p " Internal" ))))
70
+
53
71
(ert-deftest haskell-cabal-subsection-arrange-lines-keep-trailing-commas ()
54
72
(should (with-temp-buffer
55
73
(insert " Executable bin-1
You can’t perform that action at this time.
0 commit comments