]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/auctex/style/ngerman.el
Update AUCTeX ELPA package to the new 11.87 release.
[gnu-emacs-elpa] / packages / auctex / style / ngerman.el
index d6b972acf357b38bd547e74e0aea2d8d32e8f2f0..8acd2f56045782c48057e99f783a281003e9ed6e 100644 (file)
        (setq TeX-quote-language
             `("ngerman" ,open-quote ,close-quote ,q-after-q))))
    (setq LaTeX-babel-hyphen-language "ngerman")
-   ;; Fontification of quotation marks.
-   (when (fboundp 'font-latex-add-quotes)
+   ;; Fontification
+   (when (and (eq TeX-install-font-lock 'font-latex-setup)
+             (featurep 'font-latex))
      (font-latex-add-quotes '("\"`" "\"'"))
-     (font-latex-add-quotes '("\">" "\"<" german)))
+     (font-latex-add-quotes '("\">" "\"<" german))
+     ;; Prevent "| from leading to color bleed.
+     (font-latex-add-to-syntax-alist (list (cons ?\" "\\"))))
    (run-hooks 'TeX-language-de-hook)))
 
 ;;; ngerman.el ends here