@@ -241,55 +241,6 @@ Returns keywords suitable for `font-lock-keywords'."
241241 purescript-constructor-face
242242 purescript-operator-face)))))
243243
244- ; ; The next three aren't used in Emacs 21.
245-
246- (defvar purescript-fl-latex-cache-pos nil
247- " Position of cache point used by `purescript-fl-latex-cache-in-comment' .
248- Should be at the start of a line." )
249-
250- (defvar purescript-fl-latex-cache-in-comment nil
251- " If `purescript-fl-latex-cache-pos' is outside a
252- \\ begin{code}..\\ end{code} block (and therefore inside a comment),
253- this variable is set to t, otherwise nil." )
254-
255- (defun purescript-fl-latex-comments (end )
256- " Sets `match-data' according to the region of the buffer before end
257- that should be commented under LaTeX-style literate scripts."
258- (let ((start (point )))
259- (if (= start end)
260- ; ; We're at the end. No more to fontify.
261- nil
262- (if (not (eq start purescript-fl-latex-cache-pos))
263- ; ; If the start position is not cached, calculate the state
264- ; ; of the start.
265- (progn
266- (setq purescript-fl-latex-cache-pos start)
267- ; ; If the previous \begin{code} or \end{code} is a
268- ; ; \begin{code}, then start is not in a comment, otherwise
269- ; ; it is in a comment.
270- (setq purescript-fl-latex-cache-in-comment
271- (if (and
272- (re-search-backward
273- " ^\\ (\\ (\\\\ begin{code}\\ )\\ |\\ (\\\\ end{code}\\ )\\ )$"
274- (point-min ) t )
275- (match-end 2 ))
276- nil t ))
277- ; ; Restore position.
278- (goto-char start)))
279- (if purescript-fl-latex-cache-in-comment
280- (progn
281- ; ; If start is inside a comment, search for next \begin{code}.
282- (re-search-forward " ^\\\\ begin{code}$" end 'move )
283- ; ; Mark start to end of \begin{code} (if present, till end
284- ; ; otherwise), as a comment.
285- (set-match-data (list start (point )))
286- ; ; Return point, as a normal regexp would.
287- (point ))
288- ; ; If start is inside a code block, search for next \end{code}.
289- (if (re-search-forward " ^\\\\ end{code}$" end t )
290- ; ; If one found, mark it as a comment, otherwise finish.
291- (point ))))))
292-
293244(defconst purescript-basic-syntactic-keywords
294245 '(; ; Character constants (since apostrophe can't have string syntax).
295246 ; ; Beware: do not match something like 's-}' or '\n"+' since the first '
0 commit comments