From unknown Sat Jun 21 10:43:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22224: 24.5; In opascal-mode If backslash was the last symbol in a string literal the parsing error occures Resent-From: Maksim Golubev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Dec 2015 17:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22224@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.145080451025570 (code B ref -1); Tue, 22 Dec 2015 17:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Dec 2015 17:15:10 +0000 Received: from localhost ([127.0.0.1]:60151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBQWj-0006eM-M2 for submit@debbugs.gnu.org; Tue, 22 Dec 2015 12:15:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50278) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBNpP-0002Pw-5E for submit@debbugs.gnu.org; Tue, 22 Dec 2015 09:22:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBNpF-0000wp-MP for submit@debbugs.gnu.org; Tue, 22 Dec 2015 09:22:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBNpF-0000wl-J3 for submit@debbugs.gnu.org; Tue, 22 Dec 2015 09:22:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBNpE-0005U0-7R for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 09:22:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBNpC-0000wb-SL for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 09:22:04 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:34478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBNpC-0000wX-Jy for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 09:22:02 -0500 Received: by mail-wm0-x22b.google.com with SMTP id l126so111026068wml.1 for ; Tue, 22 Dec 2015 06:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lpZWfzQs1iDFjQ4IS5UijnICNuY3txxGAN/oBmbX6/Q=; b=Fgb7PvcCsNP6CvtK3odXp02S1jouBdRLZHB2Kc0LJnFtQV2b/CpXsAGZKANsv+6qB3 iLGNEjhghpFGbC2T4nFEQ6MQWnNOvcC0x2uXMXXwTyQDMq/YiFqfogzh+WIo1kWhpZh1 gU6/Rq5CdgNEZB4ByRxhfjXSRGznABivyP7UfDD8+SX8QW0Mfg+q32kOd6j0yHm8jiJy R0bAnFq7eogFmDmCeGdf1u8MmR2kVAJ8W4QNCbbslAgp41j5lGo4WYsd0hbn1qfVnzLq d3IRcUPDdKazCQm756rT74TQaIdsqC4w1sNW0idnIHZe+c/qz0E5OshkUj+eodKIg1tU msJg== MIME-Version: 1.0 X-Received: by 10.28.8.74 with SMTP id 71mr28239567wmi.98.1450794121821; Tue, 22 Dec 2015 06:22:01 -0800 (PST) Received: by 10.27.212.20 with HTTP; Tue, 22 Dec 2015 06:22:01 -0800 (PST) Date: Tue, 22 Dec 2015 17:22:01 +0300 Message-ID: From: Maksim Golubev Content-Type: multipart/mixed; boundary=001a11443f5046239705277d545a X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Mailman-Approved-At: Tue, 22 Dec 2015 12:15:08 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --001a11443f5046239705277d545a Content-Type: multipart/alternative; boundary=001a11443f5046239205277d5458 --001a11443f5046239205277d5458 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If backslash was the last symbol in a string literal the parsing error occured. E.g. after such a line in pascal code - "const baseDir =3D 'C:\';", - all following code was faced as string= . You can reproduce the problem this way: > emacs -Q C-x b 1 RET write following text in a buffer "1": """ const baseDir =3D 'C:\'; var x: integer; """ M-x opascal-mode RET C-r var RET C-u C-x =3D in *Help* window you can see the line: face font-lock-string-face but must be: face font-lock-keyword-face=E2=80=8B=E2=80=8B I put a patch to resolve the problem (see attachment to this emal message). In GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/usr --host=3Di686-pc-mingw32' Important settings: value of $LANG: RUS locale-coding-system: cp1251 Major mode: OPascal Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Mark saved where search started End of buffer Mark saved where search started Char: v (118, #o166, #x76) point=3D18 of 31 (55%) column=3D0 Mark saved where search started Char: v (118, #o166, #x76) point=3D19 of 32 (56%) column=3D0 Mark saved where search started Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch pp wid-edit cl-loaddefs cl-lib descr-text help-fns help-mode easymenu crm thingatpt opascal time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 83594 6035) (symbols 32 27992 0) (miscs 32 60 361) (strings 16 23831 3448) (string-bytes 1 560770) (vectors 8 10708) (vector-slots 4 406169 5190) (floats 8 62 676) (intervals 28 416 41) (buffers 508 14)) --001a11443f5046239205277d5458 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If backslash was the last symbol in a string literal the p= arsing error occured. E.g. after such a line in pascal
code - "cons= t baseDir =3D 'C:\';", - all following code was faced as strin= g.

You can reproduce the problem this way:
> emacs -Q

C-x b 1 RET
write following text in a buffer "1&q= uot;:
"""
const baseDir =3D 'C:\';
var x: i= nteger;
"""
M-x opascal-mode RET
C-r var RET
C-u= C-x =3D

in *Help* window you can see the line:
=C2=A0 face=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 font-lock-string-face
but must be:
=C2=A0 face=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 font-lock-keyword-face=E2=80=8B=E2=80=8B


<= div>I put a patch to resolve the problem (see attachment to this emal messa= ge).


In GNU Emacs 24.5.1 (i686-pc-mingw32)
=C2=A0o= f 2015-04-11 on LEG570
Windowing system distributor `Microsoft Corp.'= ;, version 6.1.7601
Configured using:
=C2=A0`configure --prefix=3D/c/= usr --host=3Di686-pc-mingw32'

Important settings:
=C2=A0 valu= e of $LANG: RUS
=C2=A0 locale-coding-system: cp1251

Major mode: O= Pascal

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 el= ectric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode= : t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0= global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-curso= r-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode= : t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2= =A0 transient-mark-mode: t

Recent messages:
Mark saved where sear= ch started
End of buffer
Mark saved where search started

Char:= v (118, #o166, #x76) point=3D18 of 31 (55%) column=3D0
Mark saved where= search started

Char: v (118, #o166, #x76) point=3D19 of 32 (56%) co= lumn=3D0
Mark saved where search started


Load-path shadows:None found.

Features:
(shadow sort gnus-util mail-extr emacsbug= message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode ma= il-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc204= 5 ietf-drums mm-util
mail-prsvr mail-utils misearch multi-isearch pp wid= -edit cl-loaddefs
cl-lib descr-text help-fns help-mode easymenu crm thin= gatpt opascal
time-date tooltip electric uniquify ediff-hook vc-hooks li= sp-float-type
mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w= 32-vars
tool-bar dnd fontset image regexp-opt fringe tabulated-list newc= omment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer sele= ct
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame c= ham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet laokorean japanese hebrew greek romanian slovak czech european ethiopic
i= ndian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abb= rev minibuffer nadvice loaddefs button faces cus-face macroexp files
tex= t-properties overlay sha1 md5 base64 format env code-pages mule
custom w= idget hashtable-print-readable backquote make-network-process
w32notify = w32 multi-tty emacs)

Memory information:
((conses 8 83594 6035)=C2=A0(symbols 32 27992 0)
=C2=A0(miscs 32 60 361)
=C2=A0(strings 1= 6 23831 3448)
=C2=A0(string-bytes 1 560770)
=C2=A0(vectors 8 10708)=C2=A0(vector-slots 4 406169 5190)
=C2=A0(floats 8 62 676)
=C2=A0(i= ntervals 28 416 41)
=C2=A0(buffers 508 14))

--001a11443f5046239205277d5458-- --001a11443f5046239705277d545a Content-Type: application/octet-stream; name="backslash-has-no-special-meaning.patch" Content-Disposition: attachment; filename="backslash-has-no-special-meaning.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_iihh1rl70 ZGlmZiAtLWdpdCBhL2xpc3AvcHJvZ21vZGVzL29wYXNjYWwuZWwgYi9saXNwL3Byb2dtb2Rlcy9v cGFzY2FsLmVsCmluZGV4IGVmMzQzM2YuLmUyNzBmYzkgMTAwNjQ0Ci0tLSBhL2xpc3AvcHJvZ21v ZGVzL29wYXNjYWwuZWwKKysrIGIvbGlzcC9wcm9nbW9kZXMvb3Bhc2NhbC5lbApAQCAtMjY4LDYg KzI2OCw3IEBAIHJvdXRpbmUuIikKICAgICAobW9kaWZ5LXN5bnRheC1lbnRyeSA/KiAgIi4gMjNi IiBzdCkKICAgICAobW9kaWZ5LXN5bnRheC1lbnRyeSA/LyAgIi4gMTJjIiBzdCkKICAgICAobW9k aWZ5LXN5bnRheC1lbnRyeSA/XG4gIj4gYyIgc3QpCisgICAgKG1vZGlmeS1zeW50YXgtZW50cnkg P1xcICIuIiBzdCkKICAgICBzdCkpCiAKIChkZWZtYWNybyBvcGFzY2FsLXNhdmUtZXhjdXJzaW9u ICgmcmVzdCBmb3JtcykK --001a11443f5046239705277d545a-- From unknown Sat Jun 21 10:43:21 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Maksim Golubev Subject: bug#22224: closed (Re: bug#22224: 24.5; In opascal-mode If backslash was the last symbol in a string literal the parsing error occures) Message-ID: References: X-Gnu-PR-Message: they-closed 22224 X-Gnu-PR-Package: emacs Reply-To: 22224@debbugs.gnu.org Date: Wed, 06 Jan 2016 00:20:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1452039602-626-1" This is a multi-part message in MIME format... ------------=_1452039602-626-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22224: 24.5; In opascal-mode If backslash was the last symbol in a string = literal the parsing error occures which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 22224@debbugs.gnu.org. --=20 22224: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22224 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1452039602-626-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22224-done) by debbugs.gnu.org; 6 Jan 2016 00:19:01 +0000 Received: from localhost ([127.0.0.1]:39276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGbob-00008K-N4 for submit@debbugs.gnu.org; Tue, 05 Jan 2016 19:19:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49223) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGboa-000081-9z for 22224-done@debbugs.gnu.org; Tue, 05 Jan 2016 19:19:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGboU-0006OY-IB for 22224-done@debbugs.gnu.org; Tue, 05 Jan 2016 19:18:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGboU-0006OU-Ea for 22224-done@debbugs.gnu.org; Tue, 05 Jan 2016 19:18:54 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aGboT-0003PA-R6; Tue, 05 Jan 2016 19:18:54 -0500 From: Glenn Morris To: 22224-done@debbugs.gnu.org Subject: Re: bug#22224: 24.5; In opascal-mode If backslash was the last symbol in a string literal the parsing error occures References: X-Spook: John Kerry Decapitated FMD BATF monarchist Palestine X-Ran: p&*-sh;h>'aD\C3r6J43)ty`W:ay+w-j7%bnwZNa]})%nTZw49FseE5z@`15"o4Hw"d (Maksim Golubev's message of "Tue, 22 Dec 2015 17:22:01 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22224-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Version: 25.1 Thanks; applied. ------------=_1452039602-626-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Dec 2015 17:15:10 +0000 Received: from localhost ([127.0.0.1]:60151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBQWj-0006eM-M2 for submit@debbugs.gnu.org; Tue, 22 Dec 2015 12:15:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50278) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBNpP-0002Pw-5E for submit@debbugs.gnu.org; Tue, 22 Dec 2015 09:22:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBNpF-0000wp-MP for submit@debbugs.gnu.org; Tue, 22 Dec 2015 09:22:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBNpF-0000wl-J3 for submit@debbugs.gnu.org; Tue, 22 Dec 2015 09:22:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBNpE-0005U0-7R for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 09:22:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBNpC-0000wb-SL for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 09:22:04 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:34478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBNpC-0000wX-Jy for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 09:22:02 -0500 Received: by mail-wm0-x22b.google.com with SMTP id l126so111026068wml.1 for ; Tue, 22 Dec 2015 06:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lpZWfzQs1iDFjQ4IS5UijnICNuY3txxGAN/oBmbX6/Q=; b=Fgb7PvcCsNP6CvtK3odXp02S1jouBdRLZHB2Kc0LJnFtQV2b/CpXsAGZKANsv+6qB3 iLGNEjhghpFGbC2T4nFEQ6MQWnNOvcC0x2uXMXXwTyQDMq/YiFqfogzh+WIo1kWhpZh1 gU6/Rq5CdgNEZB4ByRxhfjXSRGznABivyP7UfDD8+SX8QW0Mfg+q32kOd6j0yHm8jiJy R0bAnFq7eogFmDmCeGdf1u8MmR2kVAJ8W4QNCbbslAgp41j5lGo4WYsd0hbn1qfVnzLq d3IRcUPDdKazCQm756rT74TQaIdsqC4w1sNW0idnIHZe+c/qz0E5OshkUj+eodKIg1tU msJg== MIME-Version: 1.0 X-Received: by 10.28.8.74 with SMTP id 71mr28239567wmi.98.1450794121821; Tue, 22 Dec 2015 06:22:01 -0800 (PST) Received: by 10.27.212.20 with HTTP; Tue, 22 Dec 2015 06:22:01 -0800 (PST) Date: Tue, 22 Dec 2015 17:22:01 +0300 Message-ID: Subject: 24.5; In opascal-mode If backslash was the last symbol in a string literal the parsing error occures From: Maksim Golubev To: bug-gnu-emacs@gnu.org Content-Type: multipart/mixed; boundary=001a11443f5046239705277d545a X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 22 Dec 2015 12:15:08 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --001a11443f5046239705277d545a Content-Type: multipart/alternative; boundary=001a11443f5046239205277d5458 --001a11443f5046239205277d5458 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If backslash was the last symbol in a string literal the parsing error occured. E.g. after such a line in pascal code - "const baseDir =3D 'C:\';", - all following code was faced as string= . You can reproduce the problem this way: > emacs -Q C-x b 1 RET write following text in a buffer "1": """ const baseDir =3D 'C:\'; var x: integer; """ M-x opascal-mode RET C-r var RET C-u C-x =3D in *Help* window you can see the line: face font-lock-string-face but must be: face font-lock-keyword-face=E2=80=8B=E2=80=8B I put a patch to resolve the problem (see attachment to this emal message). In GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/usr --host=3Di686-pc-mingw32' Important settings: value of $LANG: RUS locale-coding-system: cp1251 Major mode: OPascal Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Mark saved where search started End of buffer Mark saved where search started Char: v (118, #o166, #x76) point=3D18 of 31 (55%) column=3D0 Mark saved where search started Char: v (118, #o166, #x76) point=3D19 of 32 (56%) column=3D0 Mark saved where search started Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch pp wid-edit cl-loaddefs cl-lib descr-text help-fns help-mode easymenu crm thingatpt opascal time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 83594 6035) (symbols 32 27992 0) (miscs 32 60 361) (strings 16 23831 3448) (string-bytes 1 560770) (vectors 8 10708) (vector-slots 4 406169 5190) (floats 8 62 676) (intervals 28 416 41) (buffers 508 14)) --001a11443f5046239205277d5458 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If backslash was the last symbol in a string literal the p= arsing error occured. E.g. after such a line in pascal
code - "cons= t baseDir =3D 'C:\';", - all following code was faced as strin= g.

You can reproduce the problem this way:
> emacs -Q

C-x b 1 RET
write following text in a buffer "1&q= uot;:
"""
const baseDir =3D 'C:\';
var x: i= nteger;
"""
M-x opascal-mode RET
C-r var RET
C-u= C-x =3D

in *Help* window you can see the line:
=C2=A0 face=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 font-lock-string-face
but must be:
=C2=A0 face=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 font-lock-keyword-face=E2=80=8B=E2=80=8B


<= div>I put a patch to resolve the problem (see attachment to this emal messa= ge).


In GNU Emacs 24.5.1 (i686-pc-mingw32)
=C2=A0o= f 2015-04-11 on LEG570
Windowing system distributor `Microsoft Corp.'= ;, version 6.1.7601
Configured using:
=C2=A0`configure --prefix=3D/c/= usr --host=3Di686-pc-mingw32'

Important settings:
=C2=A0 valu= e of $LANG: RUS
=C2=A0 locale-coding-system: cp1251

Major mode: O= Pascal

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 el= ectric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode= : t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0= global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-curso= r-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode= : t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2= =A0 transient-mark-mode: t

Recent messages:
Mark saved where sear= ch started
End of buffer
Mark saved where search started

Char:= v (118, #o166, #x76) point=3D18 of 31 (55%) column=3D0
Mark saved where= search started

Char: v (118, #o166, #x76) point=3D19 of 32 (56%) co= lumn=3D0
Mark saved where search started


Load-path shadows:None found.

Features:
(shadow sort gnus-util mail-extr emacsbug= message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode ma= il-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc204= 5 ietf-drums mm-util
mail-prsvr mail-utils misearch multi-isearch pp wid= -edit cl-loaddefs
cl-lib descr-text help-fns help-mode easymenu crm thin= gatpt opascal
time-date tooltip electric uniquify ediff-hook vc-hooks li= sp-float-type
mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w= 32-vars
tool-bar dnd fontset image regexp-opt fringe tabulated-list newc= omment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer sele= ct
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame c= ham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet laokorean japanese hebrew greek romanian slovak czech european ethiopic
i= ndian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abb= rev minibuffer nadvice loaddefs button faces cus-face macroexp files
tex= t-properties overlay sha1 md5 base64 format env code-pages mule
custom w= idget hashtable-print-readable backquote make-network-process
w32notify = w32 multi-tty emacs)

Memory information:
((conses 8 83594 6035)=C2=A0(symbols 32 27992 0)
=C2=A0(miscs 32 60 361)
=C2=A0(strings 1= 6 23831 3448)
=C2=A0(string-bytes 1 560770)
=C2=A0(vectors 8 10708)=C2=A0(vector-slots 4 406169 5190)
=C2=A0(floats 8 62 676)
=C2=A0(i= ntervals 28 416 41)
=C2=A0(buffers 508 14))

--001a11443f5046239205277d5458-- --001a11443f5046239705277d545a Content-Type: application/octet-stream; name="backslash-has-no-special-meaning.patch" Content-Disposition: attachment; filename="backslash-has-no-special-meaning.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_iihh1rl70 ZGlmZiAtLWdpdCBhL2xpc3AvcHJvZ21vZGVzL29wYXNjYWwuZWwgYi9saXNwL3Byb2dtb2Rlcy9v cGFzY2FsLmVsCmluZGV4IGVmMzQzM2YuLmUyNzBmYzkgMTAwNjQ0Ci0tLSBhL2xpc3AvcHJvZ21v ZGVzL29wYXNjYWwuZWwKKysrIGIvbGlzcC9wcm9nbW9kZXMvb3Bhc2NhbC5lbApAQCAtMjY4LDYg KzI2OCw3IEBAIHJvdXRpbmUuIikKICAgICAobW9kaWZ5LXN5bnRheC1lbnRyeSA/KiAgIi4gMjNi IiBzdCkKICAgICAobW9kaWZ5LXN5bnRheC1lbnRyeSA/LyAgIi4gMTJjIiBzdCkKICAgICAobW9k aWZ5LXN5bnRheC1lbnRyeSA/XG4gIj4gYyIgc3QpCisgICAgKG1vZGlmeS1zeW50YXgtZW50cnkg P1xcICIuIiBzdCkKICAgICBzdCkpCiAKIChkZWZtYWNybyBvcGFzY2FsLXNhdmUtZXhjdXJzaW9u ICgmcmVzdCBmb3JtcykK --001a11443f5046239705277d545a-- ------------=_1452039602-626-1--