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 |
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") |