aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-03-06 15:55:52 -0500
committerStefan Monnier2011-03-06 15:55:52 -0500
commit2b0787b344da7aff66e36fa35c4b73eddf980e80 (patch)
tree3172a4e67167a28835964512051c4d8c708efda3
parent5c69cb2ce354d499609c202ff3ad48240202bb15 (diff)
downloademacs-2b0787b344da7aff66e36fa35c4b73eddf980e80.tar.gz
emacs-2b0787b344da7aff66e36fa35c4b73eddf980e80.zip
* lisp/progmodes/gud.el (gdb-script-syntax-propertize-function):
Don't change the syntax of a \n that closes a comment. Fixes: debbugs:8169
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/progmodes/gud.el4
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5e9e134e746..6b7768fe93c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-03-06 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/gud.el (gdb-script-syntax-propertize-function):
4 Don't change the syntax of a \n that closes a comment (bug#8169).
5
12011-03-06 Chong Yidong <cyd@stupidchicken.com> 62011-03-06 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * emacs-lisp/package-x.el (package-archive-upload-base): Make it a 8 * emacs-lisp/package-x.el (package-archive-upload-base): Make it a
@@ -25,8 +30,8 @@
25 30
262011-03-06 Jay Belanger <jay.p.belanger@gmail.com> 312011-03-06 Jay Belanger <jay.p.belanger@gmail.com>
27 32
28 * calc/calc-ext.el (calc-init-extensions): Rename 33 * calc/calc-ext.el (calc-init-extensions):
29 calc-logunits-dblevel and calc-logunits-nplevel to calc-dblevel 34 Rename calc-logunits-dblevel and calc-logunits-nplevel to calc-dblevel
30 and calc-nplevel, respectively. Add keybindings for calc-spn, 35 and calc-nplevel, respectively. Add keybindings for calc-spn,
31 calc-midi and calc-freq. Add autoloads for calcFunc-spn, 36 calc-midi and calc-freq. Add autoloads for calcFunc-spn,
32 calcFunc-midi, calcFunc-freq, calc-spn, calc-midi and calc-freq. 37 calcFunc-midi, calcFunc-freq, calc-spn, calc-midi and calc-freq.
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 53918b903ee..47cbdf19ed2 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -3127,7 +3127,9 @@ class of the file (using s to separate nested class ids)."
3127 ("^document\\s-.*\\(\n\\)" (1 "< b")) 3127 ("^document\\s-.*\\(\n\\)" (1 "< b"))
3128 ("^end\\(\\>\\)" 3128 ("^end\\(\\>\\)"
3129 (1 (ignore 3129 (1 (ignore
3130 (unless (eq (match-beginning 0) (point-min)) 3130 (when (and (> (match-beginning 0) (point-min))
3131 (eq 1 (nth 7 (save-excursion
3132 (syntax-ppss (1- (match-beginning 0)))))))
3131 ;; We change the \n in front, which is more difficult, but results 3133 ;; We change the \n in front, which is more difficult, but results
3132 ;; in better highlighting. If the doc is empty, the single \n is 3134 ;; in better highlighting. If the doc is empty, the single \n is
3133 ;; both the beginning and the end of the docstring, which can't be 3135 ;; both the beginning and the end of the docstring, which can't be