X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/93098e354d2845727d8ce74c398d3d6f75265e69..9398c03c74b6df40aad01a29b628d591cd5f3498:/packages/auctex/font-latex.el diff --git a/packages/auctex/font-latex.el b/packages/auctex/font-latex.el index 66f24ead9..765d6cbbf 100644 --- a/packages/auctex/font-latex.el +++ b/packages/auctex/font-latex.el @@ -1,7 +1,6 @@ ;;; font-latex.el --- LaTeX fontification for Font Lock mode. -;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, -;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation. +;; Copyright (C) 1996-2009, 2012 Free Software Foundation, Inc. ;; Authors: Peter S. Galbraith ;; Simon Marshall @@ -284,11 +283,43 @@ variable `font-latex-fontify-sectioning'." num) "appendix" "displaybreak" "allowdisplaybreaks" "include") 'font-latex-warning-face 1 noarg) ("variable" - (("setlength" "|{\\{") ("settowidth" "|{\\{") ("setcounter" "{|{\\") - ("addtolength" "|{\\{") ("addtocounter" "{|{\\")) + (("setlength" "|{\\{") ("settowidth" "|{\\{") ("settoheight" "{{") + ("settodepth" "{{") ("setcounter" "{|{\\") + ("addtolength" "|{\\{") ("addtocounter" "{|{\\") + ("stepcounter" "{") ("refstepcounter" "{") + ("arabic" "{") ("roman" "{") ("Roman" "{") ("alph" "{") ("Alph" "{") + ("fnsymbol" "{")) 'font-lock-variable-name-face 2 command) + ("biblatexnoarg" + ("newrefsegment" "mancite" "pno" "ppno" "nopp" "psq" "psqq") + 'font-lock-variable-name-face 2 noarg) + ("biblatex" + (("newrefsection" "[") ("ExecuteBibliographyOptions" "[{") + ("printbibliography" "[") ("printshorthands" "[") ("printbibheading" "[") + ("addbibresource" "[{") ("addglobalbib" "[{") ("addsectionbib" "[{") + ("bibbysection" "[") ("bibbysegment" "[") ("bibbycategory" "[") + ("DeclareBibliographyCategory" "{") ("addtocategory" "{{") ("defbibenvironment" "{{{{") + ("defbibheading" "{[{") ("defbibnote" "{{") ("defbibfilter" "{{") ("defbibcheck" "{{") + ("defbibentryset" "{{") ("Cite" "[[{") ("parencite" "*[[{") ("Parencite" "[[{") + ("footcite" "[[{") ("footcitetext" "[[{") ("textcite" "[[{") ("Textcite" "[[{") + ("smartcite" "[[{") ("Smartcite" "[[{") ("supercite" "{") ("autocite" "*[{{") + ("Autocite" "*[{{") ("citeauthor" "[{{") ("Citeauthor" "[{{") ("citetitle" "*[{{") + ("citeyear" "*[[{") ("citedate" "*[[{") ("citeurl" "[[{") ("parentext" "{") + ("brackettext" "{") ("fullcite" "[[{") ("fullfootcite" "[[{") ("volcite" "[{[[") + ("Volcite" "[{[[") ("pvolcite" "[{[[") ("Pvolcite" "[{[[") ("fvolcite" "[{[[") + ("ftvolcite" "[{[[") ("svolcite" "[{[[") ("Svolcite" "[{[[") ("tvolcite" "[{[[") + ("Tvolcite" "[{[[") ("avolcite" "[{[[") ("Avolcite" "[{[[") ("notecite" "[[{") + ("Notecite" "[[{") ("pnotecite" "[[{") ("Pnotecite" "[[{") ("fnotecite" "[[{") + ("citename" "[[{[{") ("citelist" "[[{[{") ("citefield" "[[{[{") ("citereset" "*") + ("RN" "{") ("Rn" "{") ("DefineBibliographyStrings" "{{") ("DefineBibliographyExtras" "{{") + ("UndefineBibliographyExtras" "{{") ("DefineHyphenationExceptions" "{{") + ("NewBibliographyString" "{") ("autocites" "(([[{") ("Autocites" "(([[{") + ("cites" "(([[{") ("Cites" "(([[{") ("parencites" "(([[{") ("Parencites" "(([[{") + ("footcites" "(([[{") ("footcitetexts" "(([[{") ("smartcites" "(([[{") + ("Smartcites" "(([[{") ("textcites" "(([[{") ("Textcites" "(([[{") ("supercites" "(([[{")) + 'font-lock-constant-face 2 command) ("reference" - (("nocite" "{") ("cite" "[{") ("label" "{") ("pageref" "{") + (("nocite" "*{") ("cite" "*[[{") ("label" "{") ("pageref" "{") ("vref" "{") ("eqref" "{") ("ref" "{") ("include" "{") ("input" "{") ("bibliography" "{") ("index" "{") ("glossary" "{") ("footnote" "[{") ("footnotemark" "[") ("footnotetext" "[{")) @@ -297,12 +328,13 @@ variable `font-latex-fontify-sectioning'." num) (("begin" "{") ("end" "{") ("pagenumbering" "{") ("thispagestyle" "{") ("pagestyle" "{") ("nofiles" "") ("includeonly" "{") ("bibliographystyle" "{") ("documentstyle" "[{") - ("documentclass" "[{") ("newenvironment" "*{[[{{") + ("documentclass" "[{[") ("newenvironment" "*{[[{{") ("newcommand" "*|{\\[[{") ("newlength" "|{\\") ("newtheorem" "{[{[") - ("newcounter" "{[") ("renewenvironment" "*{[{{") + ("providecommand" "*|{\\[[{") + ("newcounter" "{[") ("renewenvironment" "*{[[{{") ("renewcommand" "*|{\\[[{") ("renewtheorem" "{[{[") - ("usepackage" "[{") ("fbox" "{") ("mbox" "{") ("sbox" "{") + ("usepackage" "[{[") ("fbox" "{") ("mbox" "{") ("rule" "[{{") ("vspace" "*{") ("hspace" "*{") ("thinspace" "") ("negthinspace" "") ;; XXX: Should macros without arguments rather be listed in a ;; separate category with 'noarg instead of 'command handling? @@ -513,7 +545,10 @@ use." (7 (font-latex-matched-face 7) append t))) ((eq type 'noarg) `(,(intern (concat prefix name)) - (0 ,face))) + ;; Quote a list of face properties but do not to quote a face symbol. + (0 ,(if (and (listp face) (not (fboundp (car face)))) + `',face + face)))) ((eq type 'declaration) `(,(intern (concat prefix name)) (0 'font-latex-warning-face t t) @@ -787,11 +822,11 @@ Generated by `font-latex-make-user-keywords'."))) "Add KEYWORDS to CLASS. KEYWORDS is a list of keywords or keywords with syntax specs. CLASS corresponds to a keyword class and can be one of the -symbols 'warning, 'variable, 'reference, 'function, sectioning-0, -'sectioning-1, 'sectioning-2, 'sectioning-3, 'sectioning-4, -'sectioning-5, 'slide-title, 'textual, 'bold-command, -'italic-command, 'math-command, 'type-command, 'bold-declaration, -'italic-declaration or 'type-declaration. +symbols 'warning, 'variable, 'reference, 'biblatex, 'function, +sectioning-0, 'sectioning-1, 'sectioning-2, 'sectioning-3, +'sectioning-4, 'sectioning-5, 'slide-title, 'textual, +'bold-command, 'italic-command, 'math-command, 'type-command, +'bold-declaration, 'italic-declaration or 'type-declaration. The keywords will be added to the buffer-local list of keywords of the respective keyword class and necessary updates of the font @@ -1944,8 +1979,8 @@ END marks boundaries for searching for quotation ends." (symbol-function 'font-latex-make-built-in-keywords)) (dolist (elt font-latex-built-in-keyword-classes) (let ((name (nth 0 elt))) - (byte-compile (intern (concat "font-latex-" name))) - (byte-compile (intern (concat "font-latex-" name "-make")))))) + (byte-compile (intern (concat "font-latex-match-" name))) + (byte-compile (intern (concat "font-latex-match-" name "-make")))))) ;; Provide ourselves: