From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rhett Sutphin Newsgroups: gmane.emacs.bugs Subject: bug#5757: 23.1; String literal parse problem in ruby-mode Date: Tue, 23 Mar 2010 11:21:10 -0500 Message-ID: <4FF8F6BA-1095-429E-A08E-42EC0CFE4B43@northwestern.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269376876 11298 80.91.229.12 (23 Mar 2010 20:41:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Mar 2010 20:41:16 +0000 (UTC) To: 5757@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 23 21:41:08 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NuAuN-0000nU-CR for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Mar 2010 21:41:03 +0100 Original-Received: from localhost ([127.0.0.1]:34443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuAuM-0004yq-LM for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Mar 2010 16:41:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nu6uu-0004NF-35 for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 12:25:20 -0400 Original-Received: from [140.186.70.92] (port=56426 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nu6us-0004MU-1t for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 12:25:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nu6uo-0002UQ-0y for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 12:25:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42221) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nu6un-0002UL-VF for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 12:25:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nu6sg-0007JR-If; Tue, 23 Mar 2010 12:23:02 -0400 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Rhett Sutphin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Mar 2010 16:23:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: report 5757 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.126936137528098 (code B ref -1); Tue, 23 Mar 2010 16:23:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Mar 2010 16:22:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nu6sY-0007J9-LV for submit@debbugs.gnu.org; Tue, 23 Mar 2010 12:22:54 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nu6r4-0007IK-Mr for submit@debbugs.gnu.org; Tue, 23 Mar 2010 12:21:23 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:45433) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nu6qz-00076H-Rn for submit@debbugs.gnu.org; Tue, 23 Mar 2010 12:21:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nu6qz-0001QH-0A for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 12:21:17 -0400 Original-Received: from [140.186.70.92] (port=59471 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nu6qw-0001Op-WC for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 12:21:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nu6qu-0001o0-Gw for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 12:21:14 -0400 Original-Received: from mailp4.ci.northwestern.edu ([129.105.16.84]:42078) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nu6qu-0001no-D3 for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 12:21:12 -0400 Original-Received: from dhcp-165-124-223-167.nubic.northwestern.edu (dhcp-165-124-223-167.nubic.northwestern.edu [165.124.223.167]) by mailp4.ci.northwestern.edu (Postfix) with ESMTP id 30D8676DD2 for ; Tue, 23 Mar 2010 11:21:11 -0500 (CDT) X-Mailer: Apple Mail (2.936) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Tue, 23 Mar 2010 12:22:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 23 Mar 2010 12:23:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 23 Mar 2010 16:40:32 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35704 Archived-At: ruby-mode will misunderstand a ruby double-quoted string literal which contains a single quote and ends with a question mark. It thinks that the string literal is unterminated, which contaminates the syntax highlighting for the remainder of the buffer. Example ruby code which will demonstrate the problem: ["Is 'this' a string?"], [:something, :else] If there's anything between the question mark and the terminating double-quote, the string will be correctly interpreted. Thanks, Rhett Sutphin rhett@detailedbalance.net In GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-08-16 on black.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Ruby Minor modes in effect: yas/global-mode: t yas/minor-mode: t auto-fill-function: do-auto-fill global-auto-revert-mode: t hi-lock-mode: t shell-dirtrack-mode: t hl-line-mode: t global-linum-mode: t linum-mode: t show-paren-mode: t nxhtml-global-minor-mode: t recentf-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ' " ' , SPC [ : a ] ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' " ? ? M-x r e p o r t - e m Recent messages: Auto-saving...done Quit Mark set Undo! [6 times] Quit Auto-saving...done Making completion list... Quit ruby-indent-to: invalid nest [2 times] call-interactively: End of buffer