diff options
| author | Stefan Monnier | 2012-07-17 04:11:31 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-07-17 04:11:31 -0400 |
| commit | 45fd731c4dcba0db0ac7e8f4a12d30274396eac7 (patch) | |
| tree | 8c67ff37e6fc1faa53842987c64c9cb50b331c59 /test | |
| parent | 9ea10cc3431ce03da0a375cd573ceedd5cdbdf67 (diff) | |
| download | emacs-45fd731c4dcba0db0ac7e8f4a12d30274396eac7.tar.gz emacs-45fd731c4dcba0db0ac7e8f4a12d30274396eac7.zip | |
* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Highlight not only
$$..$$ but also $..$ using regexps.
Use tex-verbatim for \url and \path.
(tex-font-lock-keywords): Define as defconst like the others.
(tex-common-initialization): Don't use font-lock-syntax-table any more.
* test/indent/latex-mode.tex: New file.
Fixes: debbugs:11953
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 4 | ||||
| -rw-r--r-- | test/indent/latex-mode.tex | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 489298dbebe..ce7e2f02284 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-07-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * indent/latex-mode.tex: New file. | ||
| 4 | |||
| 1 | 2012-07-11 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2012-07-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * eshell.el: Use cl-lib. | 7 | * eshell.el: Use cl-lib. |
diff --git a/test/indent/latex-mode.tex b/test/indent/latex-mode.tex new file mode 100644 index 00000000000..55c8e7033bd --- /dev/null +++ b/test/indent/latex-mode.tex | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | \documentclass{article} % -*- eval: (bug-reference-mode 1) -*- | ||
| 2 | |||
| 3 | \usepackage[utf8]{inputenc} | ||
| 4 | |||
| 5 | \begin{document} | ||
| 6 | |||
| 7 | To fix this, remove the \url{sn9c102.ko} from where it appears in | ||
| 8 | \url{/lib/modules/$(uname -r)}, %bug#11953. | ||
| 9 | and install the appropriate \url{gspca-modules} package. | ||
| 10 | |||
| 11 | \end{document} | ||