From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mvar Newsgroups: gmane.emacs.bugs Subject: bug#39277: 26.3; Tcl font lock does not understand quoting Date: Tue, 27 Oct 2020 22:42:44 +0200 Message-ID: <87sg9ze6yj.fsf@cnu407c2zx.nsn-intra.net> References: <20200125100009.33e3cpgmjszmpwzq@gentoo-zen2700x> <87lffs1zvw.fsf@cnu407c2zx.nsn-intra.net> <875z6v36lv.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3297"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: mvar , 39277@debbugs.gnu.org, Stefan Monnier , Hadrien Lacour To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 27 21:43:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXVoF-0000k2-It for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 21:43:11 +0100 Original-Received: from localhost ([::1]:58150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXVoE-0000fz-Hq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 16:43:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXVo6-0000f3-JP for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 16:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXVo6-0006xo-8w for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 16:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXVo6-0007Jn-6K for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 16:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: mvar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Oct 2020 20:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39277 X-GNU-PR-Package: emacs Original-Received: via spool by 39277-submit@debbugs.gnu.org id=B39277.160383137728121 (code B ref 39277); Tue, 27 Oct 2020 20:43:02 +0000 Original-Received: (at 39277) by debbugs.gnu.org; 27 Oct 2020 20:42:57 +0000 Original-Received: from localhost ([127.0.0.1]:46081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXVo0-0007JU-L3 for submit@debbugs.gnu.org; Tue, 27 Oct 2020 16:42:56 -0400 Original-Received: from mail-ed1-f51.google.com ([209.85.208.51]:36900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXVnz-0007JH-6X for 39277@debbugs.gnu.org; Tue, 27 Oct 2020 16:42:55 -0400 Original-Received: by mail-ed1-f51.google.com with SMTP id o18so2869435edq.4 for <39277@debbugs.gnu.org>; Tue, 27 Oct 2020 13:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=rrwpnPOnzaE4PnHWFvNP1ty1Y/nZt0ilHkQA7v2vuXE=; b=gUv88+NfVTUkL7VQbXPtaYu4bvvpMePYAfRDv39sPUXTBjAEJ/pVF2ouPLr7fX1OA4 60tzYhqwQJyBNsqqJi4jKGqCKWixwqn2mpg8q3SLTDQHD7LZk5X6C9Lc3Lu+nRxdneSz FAOXOFetuLAsl/1H3A1DZ7sjFaqwwBkytQuwNtqZ4lBjfhZiE4B5MnPjIAocnfatoGCF MKwU5UkJeWh/CyE+e5XuU7tYY7lIlRttoehsgWHwfHOqKEoFo5+FWuGkDTJwTGIRjzqp RoNoSBmv8cRGJKknPcUM7lvOGl2plFIFpNCSdaoXWCeVEjrk3dK+PZFtc3YbqrVbevY/ iEew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=rrwpnPOnzaE4PnHWFvNP1ty1Y/nZt0ilHkQA7v2vuXE=; b=NPpom2SW5U4A6y4rvWz34Izju2wLzq6t32ThOdr8QUDpOQNuDHNFvYSEvJP76xMt2E k36hFXsLGBh9wFb7llq4Zb/wgtzc/idKKmU3VXzLANi/aYB816qKfScaGyi/qeY1EvaM BAEzrXZhO2s9s8o3PdVRCFcezIeVkM5Ti33YWTdyky9AwrXVirzxVFfxZ7Y5ixe7xzXn xtIF6rsZWlMG7YVbL8Urw3ae2eLlEkCVpFxCWC2rCw0k+SYaYML7WuBYHlr5wScVLmDE sjvKw+u8kzxOka0ajalUaivrtLPvm7Etshl7D4tnKZcdDZKGfHM23XJfJDPVhspFHLmL H0xw== X-Gm-Message-State: AOAM5334UwOAVWSvWCezvX9137IUwyQhoMuxfr663BQMLQLLqHxEWoR5 DS/8G/ooeDLPyDXfa+jdLLs= X-Google-Smtp-Source: ABdhPJxxtjv10bg7SW4kvzKFI//ZabVL9q0V1GPmR+BWpJf3MyFw6eRLL+By/ASFem5OAsKS9TvOtA== X-Received: by 2002:a05:6402:156:: with SMTP id s22mr4299913edu.178.1603831369330; Tue, 27 Oct 2020 13:42:49 -0700 (PDT) Original-Received: from cnu407c2zx.nsn-intra.net ([2a02:2149:8812:6200:cfbb:6c67:9fe9:bcf7]) by smtp.gmail.com with ESMTPSA id f23sm1657020ejd.5.2020.10.27.13.42.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Oct 2020 13:42:47 -0700 (PDT) X-Google-Original-From: mvar In-Reply-To: <875z6v36lv.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 27 Oct 2020 18:45:48 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191790 Archived-At: Lars Ingebrigtsen writes: > Stefan Monnier writes: > >> And what about >> >> proc foo3 () { >> puts "hello}" >> } >> >> proc foo4 () { >> puts "hello\}" >> } >> >> proc foo5 () { >> puts "hello >> } > > It's fortunately been a couple of decades since I wrote Tcl, and... I > don't remember. :-/ > >> Won't this catch cases not usually considered as strings, like >> >> proc foo5 () { >> return 6 >> } > > Yup. I'll revert the patch and reopen this bug report. thank you Lars for reverting, this didn't feel right anyway. I'll try to come up with some more elegant solution or at least find some way to skip breaking the other locks - for example moving the tcl-font-lock-keywords regexp to the end of that list solves the problem Stefan mentioned but it still doesn't address what Andreas pointed out, i.e. proc test (args) will have args locked as a string. btw to answer your previous email, i'd like to sign the copyright paperwork thanks, Michalis