From unknown Sat Jun 14 05:26:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61796: 30.0.50; tree-sitter + python: string fontification does not handle nested strings Resent-From: Mickey Petersen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Feb 2023 22:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 61796@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16773645436242 (code B ref -1); Sat, 25 Feb 2023 22:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2023 22:35:43 +0000 Received: from localhost ([127.0.0.1]:41795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW38p-0001cb-95 for submit@debbugs.gnu.org; Sat, 25 Feb 2023 17:35:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:50484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW38n-0001cU-Iw for submit@debbugs.gnu.org; Sat, 25 Feb 2023 17:35:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pW38m-0006yF-W7 for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 17:35:41 -0500 Received: from mail-cwlgbr01on070e.outbound.protection.outlook.com ([2a01:111:f400:fe14::70e] helo=GBR01-CWL-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pW38k-0006hN-Vf for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 17:35:40 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nD6NAWnqFhn4FeNlPVLM2yU/lq8BHi4EoauUoAsrTz9xeDBGp2lYhfiqy8+iaxlVrFk7+dNNFcEfjnEn4rHW0iYABFCtymT0EOjUVvEp3TYTRS3kRKNqfAA5OeBdOkOrUnoay/RPa++WcuznUWglN3yncPfP38YposoKa3VTrfNkIisU7OeY/0X6DPx8uFRqsJ3GBEdtUTcFe9kJtyTx6C2YUWMeDqi5u7Ju+09is1JIBok7m+DDdd+I7DcX4zckc0VAGVAdWFla2hpc997YT+6TAUK//4B44dl9uyKkQgqEWCVQhz5wDoo5FxSbpQwCb1RI2BleeMfKrYvKp3cNqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nzRvnwdZYCs/+1sDRSxlhn1PRBSzVXstfEL+RN16NJs=; b=dlLXroCF/PA9yK4yTAoXcQYf1TSQl58p6qyBN23Rw56jDjyeIilRUvMPfqsa1ryGADyFWoqbnNcDSLgim/MZ6WmlL7xqa857425dPYYXqf4zfyuq2KUEzkBlPMjVyr64KANMneEggWRDAInZ7zVYFKNyWrm+VMcdiB/JduXWvBR283JaiAfWmvOZYxjesetS0z/l9GtIe86e5tPxx80zGOSAg4coWAtAEP7z46CBNRVQTOYAfOqyOsyvOVvPSJar9Ts7f/M7XSZsxqQm9w36mJiWXDX1urTJRNBmwJldplMdDQ0F4z/+2woOGa8ANkHjPP0gAwcaPdG4ztHtybv2wQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=gnu.org smtp.mailfrom=masteringemacs.org; dmarc=pass (p=none sp=none pct=100) action=none header.from=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semantical.onmicrosoft.com; s=selector1-semantical-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nzRvnwdZYCs/+1sDRSxlhn1PRBSzVXstfEL+RN16NJs=; b=EGSqyOF+ciuk8HlXp5XC66532F3zewXxaWgM05rHePAw1Z1FHEIvb39VLHLO/Rd7k8tEWpV1mm0CUxDS10vM5koFAUBABKPmrQbKUxfQqvybpFQCg6oGwI7BXno5WW8/cIA96RTTPZjX2j7d2+2E3NyMBXC9u0NP6D9oM4c6fds= Received: from LO4P123CA0220.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a6::9) by LO0P265MB4997.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:275::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.26; Sat, 25 Feb 2023 22:30:32 +0000 Received: from LO2GBR01FT005.eop-gbr01.prod.protection.outlook.com (2603:10a6:600:1a6:cafe::94) by LO4P123CA0220.outlook.office365.com (2603:10a6:600:1a6::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.26 via Frontend Transport; Sat, 25 Feb 2023 22:30:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 178.79.136.144) smtp.mailfrom=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org;dmarc=pass action=none header.from=masteringemacs.org; Received-SPF: Pass (protection.outlook.com: domain of masteringemacs.org designates 178.79.136.144 as permitted sender) receiver=protection.outlook.com; client-ip=178.79.136.144; helo=semantical.co.uk; pr=C Received: from semantical.co.uk (178.79.136.144) by LO2GBR01FT005.mail.protection.outlook.com (10.152.42.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Sat, 25 Feb 2023 22:30:32 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id 2A111114002; Sat, 25 Feb 2023 22:30:31 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1677364231; bh=nzRvnwdZYCs/+1sDRSxlhn1PRBSzVXstfEL+RN16NJs=; h=From:To:Subject:Date:From; b=kFK1QxI01BfoDdZKLI7k0cEqAMLIP4+fkhkUUtKCoJ1+Nqc0dgKHfn06G2nlELC4n 3IQp0eb2nz2ww1bgsdtFViwKm1clKS1UM0NvNs4qRz8/31i5b18r56S7V/xO4w9x/x iYhwWLJSGw2miD6K5s8mwrAwx3W3a1JED/BXyznY= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on semantical.co.uk X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 From: Mickey Petersen Date: Sat, 25 Feb 2023 22:30:23 +0000 Message-ID: <87edqdwf7k.fsf@masteringemacs.org> Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO2GBR01FT005:EE_|LO0P265MB4997:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: f14fca73-e286-40dc-f092-08db177fe7f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6wqsfNjBE43XIDCV/l8lqF6Vx4FTO2sopPJveDvUj1Nf3RwZey/sXAYGLje0sJJh2l49LtKPQD5pH3XfA8Uf9kmCquJrRlQqzhH1rt5uSR5ofPzOPvHUgBkEZ3K7RhYTmRRjCrLRYQ3IdGA/YUZiiDQVBOvMUhAjKT4GYzobAad66pRQ0mQk9+fNEW8IbhOZd5pGcZ26UEeqmLGN6YExl76m+FXgTO0aYb5qhsl5v+8XeT+4NzAyn6G6bkVqoqvTncTJiA8kx+14hcs/ZvBoc+MoqsYxqaSlFU3alwC3P2oxha4wMADQt7pPxjhb8YYiX+7f5NcYzpB+cAHWuxtd/VGyZDBKvK+t4dHq2vMbqoyuftYHTijKHhaN8xBO/GS45uCC9PR4VYCRNKOM/b2Wd9yNzdwCNKAWK8e1aTU8Mc/mlrByvEkJE981aQ1m+CUN1rlOSogq8OkAEjrEOuWUXqGQRH9T863B2kJUxtWA8Q8ku8Iihn1rC4wDrGzi4T+9v/z5Ya2n5hEWlIq0VMnKtzdpCGN9SXvDe41Op6hTPUYZD0ZSgArW/FK3J1V6V38fA8Hv41M+QKOw2yW79Ks95DN940RZB9DkBnbNVNSY72xkWEw1g6kuOtE8NIT0Rwz8qLFtGQR6ZMGPWmWjpRSPjiNFfDRB/vIYxa55OIC8fDJw+IGuyQtCWhu8zeEhFypDTibMFQafgxz4BP2UqOgobc3BhHdAQifTfy0sJaCDibVDPPqwvowSYXCveynYFLPt X-Forefront-Antispam-Report: CIP:178.79.136.144; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:semantical.co.uk; PTR:semantical.co.uk; CAT:NONE; SFS:(13230025)(136003)(39830400003)(396003)(346002)(376002)(451199018)(46966006)(36840700001)(6266002)(7636003)(7596003)(356005)(8936002)(6916009)(8676002)(70586007)(41300700001)(70206006)(2906002)(5660300002)(36860700001)(4744005)(336012)(40480700001)(47076005)(478600001)(6666004)(186003)(26005)(2616005)(316002)(42186006)(36756003)(82310400005)(86362001)(38230200001)(79816003)(14776008); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2023 22:30:32.2397 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f14fca73-e286-40dc-f092-08db177fe7f3 X-MS-Exchange-CrossTenant-Id: a4e27e3d-bab0-45e8-8942-e64cf9fbd34f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a4e27e3d-bab0-45e8-8942-e64cf9fbd34f; Ip=[178.79.136.144]; Helo=[semantical.co.uk] X-MS-Exchange-CrossTenant-AuthSource: LO2GBR01FT005.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO0P265MB4997 Received-SPF: pass client-ip=2a01:111:f400:fe14::70e; envelope-from=mickey@masteringemacs.org; helo=GBR01-CWL-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) I think the query and/or the way fontification is applied is causing a problem when you nested double quotes inside single quotes: # not right A = 'before "inside" after' # right B = "before 'inside' after" In GNU Emacs 30.0.50 (build 9, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-02-23 built on mickey-work Repository revision: fad3665069740e002fcb7f9313f9eeec81ad9a0c Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.3 LTS Configured using: 'configure --with-native-compilation --with-json --with-mailutils --without-compress-install --with-imagemagick CC=gcc-10' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB From unknown Sat Jun 14 05:26:15 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: Mickey Petersen Subject: bug#61796: closed (Re: bug#61796: 30.0.50; tree-sitter + python: string fontification does not handle nested strings) Message-ID: References: <87edqdwf7k.fsf@masteringemacs.org> X-Gnu-PR-Message: they-closed 61796 X-Gnu-PR-Package: emacs Reply-To: 61796@debbugs.gnu.org Date: Sun, 26 Feb 2023 01:14:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1677374042-30701-1" This is a multi-part message in MIME format... ------------=_1677374042-30701-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #61796: 30.0.50; tree-sitter + python: string fontification does not handle= nested strings 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 61796@debbugs.gnu.org. --=20 61796: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61796 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1677374042-30701-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 61796-done) by debbugs.gnu.org; 26 Feb 2023 01:13:23 +0000 Received: from localhost ([127.0.0.1]:41935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW5bO-0007yC-Os for submit@debbugs.gnu.org; Sat, 25 Feb 2023 20:13:22 -0500 Received: from mail-ed1-f46.google.com ([209.85.208.46]:34582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW5bM-0007xz-V6 for 61796-done@debbugs.gnu.org; Sat, 25 Feb 2023 20:13:21 -0500 Received: by mail-ed1-f46.google.com with SMTP id cq23so12237008edb.1 for <61796-done@debbugs.gnu.org>; Sat, 25 Feb 2023 17:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=pb9usv1W8Z99so8pSheK4WML3L6SGYHr+v8xyQKRzFk=; b=eV+mL3iMKrGA70blpCPFJWmGRXa9P9mffovfUHjXS7N9g5C5K1l+yK8pBWFKUFRl1j xih+uYqwtE9zwex6RdGYcEML8FX0Dc/WN6KUUl1PYuu05zhe0I7hfVJ+GCHEtfHZRBZK LHiplPF0dGwamYnWPr+LSjE0l74VK64tM1zEjLimtau7i+exaQjSneN6EVhPdo0Qq+kW +m+Up4RY71EKhSRMPHtsiC0HpSuw75JByHCUSrGJwpgHMSGioh4jzKi6eA5oTvueJy7d 7wAuBSHPZdi2ssPlVhscVBZLkTQStmC/gOz+yN8Xy7QOl+VKspQgCOyYqelIMnp7cc3T Wb+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pb9usv1W8Z99so8pSheK4WML3L6SGYHr+v8xyQKRzFk=; b=HmhcwjVrxNEn9yKBxkYkCLkUNX9X+mj2mHOHS3coC9S7RaoA7UMHceDHHJmWF3KyVn DLI8S7pLIoEiz6BbY174/h5J3luZVvNtqKTp2fEn0U01fF6zh3oYLVm+PwBOUX5jz66/ +BtWpdrVmvCyhR0oAlekHoun94I1kWAidzyI2OsQzZazVjnH/Q9vYOl7v5xYwZjhetPD 2vz88g7gVIXYihWZYoa+YXPwtuS/SQ2AuvsopJRhPCXYJ7qK/JT4opmb5tyZ7MNqQSTD mqONDNablQAMvWEiE4b1R9Em13p8iQEkCmt+wjryVjTeUhpOZgto8aHtMQnnrOI6ahWS G8LQ== X-Gm-Message-State: AO0yUKUdsEXWFxLwjDkOrCcvX9nBil3T9qSRP2rJBfRSw6zAlDrgg8F/ 3FZ89YPRkikZ/yevWIZJDkjxhWoyAQA= X-Google-Smtp-Source: AK7set+W6UDdXR6qCcSikaXsf9nM/sjEWYIz1dkJHkdsZrq/Q2UPVhF1c0kUhJ+5qzSSFEOd6Qps3A== X-Received: by 2002:a17:907:96ab:b0:8e0:2887:8263 with SMTP id hd43-20020a17090796ab00b008e028878263mr22405866ejc.39.1677373994628; Sat, 25 Feb 2023 17:13:14 -0800 (PST) Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id qh25-20020a170906ecb900b008dd76b67ae6sm1389931ejb.175.2023.02.25.17.13.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 Feb 2023 17:13:14 -0800 (PST) Message-ID: Date: Sun, 26 Feb 2023 03:13:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: bug#61796: 30.0.50; tree-sitter + python: string fontification does not handle nested strings Content-Language: en-US To: Mickey Petersen , 61796-done@debbugs.gnu.org References: <87edqdwf7k.fsf@masteringemacs.org> From: Dmitry Gutov In-Reply-To: <87edqdwf7k.fsf@masteringemacs.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 61796-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: -1.9 (-) Hi! Thanks for the report. On 26/02/2023 00:30, Mickey Petersen wrote: > I think the query and/or the way fontification is applied is causing a > problem when you nested double quotes inside single quotes: > > # not right > A = 'before "inside" after' > > # right > B = "before 'inside' after" Should be fixed in emacs-29 with commit 3cae0e3d96a. ------------=_1677374042-30701-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Feb 2023 22:35:43 +0000 Received: from localhost ([127.0.0.1]:41795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW38p-0001cb-95 for submit@debbugs.gnu.org; Sat, 25 Feb 2023 17:35:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:50484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW38n-0001cU-Iw for submit@debbugs.gnu.org; Sat, 25 Feb 2023 17:35:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pW38m-0006yF-W7 for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 17:35:41 -0500 Received: from mail-cwlgbr01on070e.outbound.protection.outlook.com ([2a01:111:f400:fe14::70e] helo=GBR01-CWL-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pW38k-0006hN-Vf for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 17:35:40 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nD6NAWnqFhn4FeNlPVLM2yU/lq8BHi4EoauUoAsrTz9xeDBGp2lYhfiqy8+iaxlVrFk7+dNNFcEfjnEn4rHW0iYABFCtymT0EOjUVvEp3TYTRS3kRKNqfAA5OeBdOkOrUnoay/RPa++WcuznUWglN3yncPfP38YposoKa3VTrfNkIisU7OeY/0X6DPx8uFRqsJ3GBEdtUTcFe9kJtyTx6C2YUWMeDqi5u7Ju+09is1JIBok7m+DDdd+I7DcX4zckc0VAGVAdWFla2hpc997YT+6TAUK//4B44dl9uyKkQgqEWCVQhz5wDoo5FxSbpQwCb1RI2BleeMfKrYvKp3cNqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nzRvnwdZYCs/+1sDRSxlhn1PRBSzVXstfEL+RN16NJs=; b=dlLXroCF/PA9yK4yTAoXcQYf1TSQl58p6qyBN23Rw56jDjyeIilRUvMPfqsa1ryGADyFWoqbnNcDSLgim/MZ6WmlL7xqa857425dPYYXqf4zfyuq2KUEzkBlPMjVyr64KANMneEggWRDAInZ7zVYFKNyWrm+VMcdiB/JduXWvBR283JaiAfWmvOZYxjesetS0z/l9GtIe86e5tPxx80zGOSAg4coWAtAEP7z46CBNRVQTOYAfOqyOsyvOVvPSJar9Ts7f/M7XSZsxqQm9w36mJiWXDX1urTJRNBmwJldplMdDQ0F4z/+2woOGa8ANkHjPP0gAwcaPdG4ztHtybv2wQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=gnu.org smtp.mailfrom=masteringemacs.org; dmarc=pass (p=none sp=none pct=100) action=none header.from=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semantical.onmicrosoft.com; s=selector1-semantical-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nzRvnwdZYCs/+1sDRSxlhn1PRBSzVXstfEL+RN16NJs=; b=EGSqyOF+ciuk8HlXp5XC66532F3zewXxaWgM05rHePAw1Z1FHEIvb39VLHLO/Rd7k8tEWpV1mm0CUxDS10vM5koFAUBABKPmrQbKUxfQqvybpFQCg6oGwI7BXno5WW8/cIA96RTTPZjX2j7d2+2E3NyMBXC9u0NP6D9oM4c6fds= Received: from LO4P123CA0220.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a6::9) by LO0P265MB4997.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:275::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.26; Sat, 25 Feb 2023 22:30:32 +0000 Received: from LO2GBR01FT005.eop-gbr01.prod.protection.outlook.com (2603:10a6:600:1a6:cafe::94) by LO4P123CA0220.outlook.office365.com (2603:10a6:600:1a6::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.26 via Frontend Transport; Sat, 25 Feb 2023 22:30:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 178.79.136.144) smtp.mailfrom=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org;dmarc=pass action=none header.from=masteringemacs.org; Received-SPF: Pass (protection.outlook.com: domain of masteringemacs.org designates 178.79.136.144 as permitted sender) receiver=protection.outlook.com; client-ip=178.79.136.144; helo=semantical.co.uk; pr=C Received: from semantical.co.uk (178.79.136.144) by LO2GBR01FT005.mail.protection.outlook.com (10.152.42.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Sat, 25 Feb 2023 22:30:32 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id 2A111114002; Sat, 25 Feb 2023 22:30:31 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1677364231; bh=nzRvnwdZYCs/+1sDRSxlhn1PRBSzVXstfEL+RN16NJs=; h=From:To:Subject:Date:From; b=kFK1QxI01BfoDdZKLI7k0cEqAMLIP4+fkhkUUtKCoJ1+Nqc0dgKHfn06G2nlELC4n 3IQp0eb2nz2ww1bgsdtFViwKm1clKS1UM0NvNs4qRz8/31i5b18r56S7V/xO4w9x/x iYhwWLJSGw2miD6K5s8mwrAwx3W3a1JED/BXyznY= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on semantical.co.uk X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 From: Mickey Petersen To: bug-gnu-emacs@gnu.org Subject: 30.0.50; tree-sitter + python: string fontification does not handle nested strings Date: Sat, 25 Feb 2023 22:30:23 +0000 Message-ID: <87edqdwf7k.fsf@masteringemacs.org> Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO2GBR01FT005:EE_|LO0P265MB4997:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: f14fca73-e286-40dc-f092-08db177fe7f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6wqsfNjBE43XIDCV/l8lqF6Vx4FTO2sopPJveDvUj1Nf3RwZey/sXAYGLje0sJJh2l49LtKPQD5pH3XfA8Uf9kmCquJrRlQqzhH1rt5uSR5ofPzOPvHUgBkEZ3K7RhYTmRRjCrLRYQ3IdGA/YUZiiDQVBOvMUhAjKT4GYzobAad66pRQ0mQk9+fNEW8IbhOZd5pGcZ26UEeqmLGN6YExl76m+FXgTO0aYb5qhsl5v+8XeT+4NzAyn6G6bkVqoqvTncTJiA8kx+14hcs/ZvBoc+MoqsYxqaSlFU3alwC3P2oxha4wMADQt7pPxjhb8YYiX+7f5NcYzpB+cAHWuxtd/VGyZDBKvK+t4dHq2vMbqoyuftYHTijKHhaN8xBO/GS45uCC9PR4VYCRNKOM/b2Wd9yNzdwCNKAWK8e1aTU8Mc/mlrByvEkJE981aQ1m+CUN1rlOSogq8OkAEjrEOuWUXqGQRH9T863B2kJUxtWA8Q8ku8Iihn1rC4wDrGzi4T+9v/z5Ya2n5hEWlIq0VMnKtzdpCGN9SXvDe41Op6hTPUYZD0ZSgArW/FK3J1V6V38fA8Hv41M+QKOw2yW79Ks95DN940RZB9DkBnbNVNSY72xkWEw1g6kuOtE8NIT0Rwz8qLFtGQR6ZMGPWmWjpRSPjiNFfDRB/vIYxa55OIC8fDJw+IGuyQtCWhu8zeEhFypDTibMFQafgxz4BP2UqOgobc3BhHdAQifTfy0sJaCDibVDPPqwvowSYXCveynYFLPt X-Forefront-Antispam-Report: CIP:178.79.136.144; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:semantical.co.uk; PTR:semantical.co.uk; CAT:NONE; SFS:(13230025)(136003)(39830400003)(396003)(346002)(376002)(451199018)(46966006)(36840700001)(6266002)(7636003)(7596003)(356005)(8936002)(6916009)(8676002)(70586007)(41300700001)(70206006)(2906002)(5660300002)(36860700001)(4744005)(336012)(40480700001)(47076005)(478600001)(6666004)(186003)(26005)(2616005)(316002)(42186006)(36756003)(82310400005)(86362001)(38230200001)(79816003)(14776008); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2023 22:30:32.2397 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f14fca73-e286-40dc-f092-08db177fe7f3 X-MS-Exchange-CrossTenant-Id: a4e27e3d-bab0-45e8-8942-e64cf9fbd34f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a4e27e3d-bab0-45e8-8942-e64cf9fbd34f; Ip=[178.79.136.144]; Helo=[semantical.co.uk] X-MS-Exchange-CrossTenant-AuthSource: LO2GBR01FT005.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO0P265MB4997 Received-SPF: pass client-ip=2a01:111:f400:fe14::70e; envelope-from=mickey@masteringemacs.org; helo=GBR01-CWL-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit 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: -2.4 (--) I think the query and/or the way fontification is applied is causing a problem when you nested double quotes inside single quotes: # not right A = 'before "inside" after' # right B = "before 'inside' after" In GNU Emacs 30.0.50 (build 9, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-02-23 built on mickey-work Repository revision: fad3665069740e002fcb7f9313f9eeec81ad9a0c Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.3 LTS Configured using: 'configure --with-native-compilation --with-json --with-mailutils --without-compress-install --with-imagemagick CC=gcc-10' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB ------------=_1677374042-30701-1--