From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maksim Golubev Newsgroups: gmane.emacs.bugs Subject: bug#22224: 24.5; In opascal-mode If backslash was the last symbol in a string literal the parsing error occures Date: Tue, 22 Dec 2015 17:22:01 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a11443f5046239705277d545a X-Trace: ger.gmane.org 1450805374 26395 80.91.229.3 (22 Dec 2015 17:29:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Dec 2015 17:29:34 +0000 (UTC) To: 22224@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 22 18:29:26 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aBQkY-0003tS-A9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Dec 2015 18:29:26 +0100 Original-Received: from localhost ([::1]:52150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBQkX-0007wk-Lp for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Dec 2015 12:29:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBQXc-0002O8-4q for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 12:16:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBQXa-00076r-OF for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 12:16:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBQXa-00076l-Ig for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 12:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aBQXa-0006fp-FR for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 12:16:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145080451025570 (code B ref -1); Tue, 22 Dec 2015 17:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Dec 2015 17:15:10 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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== X-Received: by 10.28.8.74 with SMTP id 71mr28239567wmi.98.1450794121821; Tue, 22 Dec 2015 06:22:01 -0800 (PST) Original-Received: by 10.27.212.20 with HTTP; Tue, 22 Dec 2015 06:22:01 -0800 (PST) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110284 Archived-At: --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--