/[emacs]/emacs/lisp/textmodes/tex-mode.el
ViewVC logotype

Diff of /emacs/lisp/textmodes/tex-mode.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.123.2.12 by miles, Mon Oct 25 04:22:30 2004 UTC revision 1.123.2.13 by miles, Fri Oct 29 02:05:13 2004 UTC
# Line 468  An alternative value is \" . \", if you Line 468  An alternative value is \" . \", if you
468             ;; (arg "\\(?:{\\(\\(?:[^{}\\]+\\|\\\\.\\|{[^}]*}\\)+\\)\\|\\\\[a-z*]+\\)"))             ;; (arg "\\(?:{\\(\\(?:[^{}\\]+\\|\\\\.\\|{[^}]*}\\)+\\)\\|\\\\[a-z*]+\\)"))
469             (arg "{\\(\\(?:[^{}\\]+\\|\\\\.\\|{[^}]*}\\)+\\)"))             (arg "{\\(\\(?:[^{}\\]+\\|\\\\.\\|{[^}]*}\\)+\\)"))
470        (list        (list
471           ;; font-lock-syntactic-keywords causes the \ of \end{verbatim} to be
472           ;; highlighted as tex-verbatim-face.  Let's undo that.
473           ;; This is ugly and brittle :-(  --Stef
474           '("^\\(\\\\\\)end" (1 (get-text-property (match-end 1) 'face) t))
475         ;; display $$ math $$         ;; display $$ math $$
476         ;; We only mark the match between $$ and $$ because the $$ delimiters         ;; We only mark the match between $$ and $$ because the $$ delimiters
477         ;; themselves have already been marked (along with $..$) by syntactic         ;; themselves have already been marked (along with $..$) by syntactic
# Line 619  An alternative value is \" . \", if you Line 623  An alternative value is \" . \", if you
623        ;; 2 - font-lock considers the preceding \n as being part of the        ;; 2 - font-lock considers the preceding \n as being part of the
624        ;;     preceding line, so things gets screwed every time the previous        ;;     preceding line, so things gets screwed every time the previous
625        ;;     line is re-font-locked on its own.        ;;     line is re-font-locked on its own.
626          ;; There's a hack in tex-font-lock-keywords-1 to remove the verbatim
627          ;; face from the \ but C-M-f still jumps to the wrong spot :-(  --Stef
628        (,(concat "^\\(\\\\\\)end *{" verbs "}\\(.?\\)") (1 "|") (3 "<"))        (,(concat "^\\(\\\\\\)end *{" verbs "}\\(.?\\)") (1 "|") (3 "<"))
629        ;; ("^\\(\\\\\\)begin *{comment}" 1 "< b")        ;; ("^\\(\\\\\\)begin *{comment}" 1 "< b")
630        ;; ("^\\\\end *{comment}.*\\(\n\\)" 1 "> b")        ;; ("^\\\\end *{comment}.*\\(\n\\)" 1 "> b")

Legend:
Removed from v.1.123.2.12  
changed lines
  Added in v.1.123.2.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26