Subject: [PATCH] Fix syntax-propertize-multiline bug
From: Erik Charlebois <[email-masked]>
To: [email-masked]
Date: Sun, 21 Apr 2013 02:38:00 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Description

At least, I think it's a bug. I ran into this while adding support for
C++11 raw strings to cc-mode.

syntax-propertize-multiline seeks backward for the first position without a
'syntax-multiline text property, but searches forward for
'font-lock-multiline. For a span of text marked 'syntax-multiline, the new
end returned from syntax-propertize-multiline will not be the end of the
multiline text.

Changelog

2013-04-21  Erik Charlebois  <[email-masked]>

* emacs-lisp/syntax.el (syntax-propertize-multiline):
Use 'syntax-multiline text property instead of 'font-lock-multiline.
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: [email-masked]\
#   1z50svavx9ke3qby
# target_branch: file:///Users/erikc/Source/emacs/emacs/trunk/
# testament_sha1: d48b99015430ece0334886f393d622f96c26e4a4
# timestamp: 2013-04-21 02:27:46 -0400
# base_revision_id: [email-masked]
# 
# Begin patch
=== modified file 'lisp/emacs-lisp/syntax.el'
--- lisp/emacs-lisp/syntax.el	2013-01-01 09:11:05 +0000
+++ lisp/emacs-lisp/syntax.el	2013-04-21 06:24:51 +0000
@@ -99,7 +99,7 @@
     (setq beg (or (previous-single-property-change beg 'syntax-multiline)
 		  (point-min))))
   ;;
-  (when (get-text-property end 'font-lock-multiline)
+  (when (get-text-property end 'syntax-multiline)
     (setq end (or (text-property-any end (point-max)
 				     'syntax-multiline nil)
 		  (point-max))))

# Begin bundle