File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -190,11 +190,10 @@ negative ARG. Handles bird style literate Haskell too."
190
190
(defun haskell-indentation-tex-outside-code-p ()
191
191
" Non-NIL if we are in tex literate mode, but outside of code."
192
192
(and (haskell-indentation-tex-p)
193
- (if (save-excursion
194
- (re-search-forward " \\ (\\\\ end\{ code\} \\ |\\\\ begin\{ code\} \\ )" nil t ))
195
- (cond ((equal " \\ end{code}" (match-string-no-properties 0 )) nil )
196
- ((equal " \\ begin{code}" (match-string-no-properties 0 )) t ))
197
- (save-excursion (re-search-backward " \\\\ end\{ code\} " nil t )))))
193
+ (not (and (save-excursion
194
+ (re-search-backward " \\\\ end{code}\\ |\\\\ begin{code}\\ (\\ )"
195
+ nil t ))
196
+ (match-end 1 )))))
198
197
199
198
(defun haskell-indentation-literate-outside-code-p ()
200
199
" Non-NIL if we are in literate mode, but outside of code."
You can’t perform that action at this time.
0 commit comments