Received: (at 61043) by debbugs.gnu.org; 25 Jan 2023 12:10:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 25 07:10:38 2023 Received: from localhost ([127.0.0.1]:58520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pKebu-0000xZ-2j for submit <at> debbugs.gnu.org; Wed, 25 Jan 2023 07:10:38 -0500 Received: from mail-lo2gbr01on2092.outbound.protection.outlook.com ([40.107.10.92]:38242 helo=GBR01-LO2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mickey@HIDDEN>) id 1pKebr-0000xL-72 for 61043 <at> debbugs.gnu.org; Wed, 25 Jan 2023 07:10:36 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jFkilu7zLaQZ4dq5XLRRkgnY0JInVtxHP3UpI+VdYy0k/Ueay6nAl1hf60l5EOXQShA56xS/gKp0SjedXzPNTZbEW9lsQ7iBqqGCt4P3tjGy+l2rcPMNqb3yUG6fGs6vj3fYvCFU1n4BK7xL+9Ut6aCpE3d8uzp8xhZrpu9Em+L/VZM6DP3FToVyK1eAyYdlpNLj0b4jRJFmQpN7l75dY8XqvaQ5cG5IdLP+aAN4SXqpDPcBk+iuzOE0eYTAWzQ1gmwW32pf5O36yO3guCPi6XgPeLa8xl+2/OcS9PFJ0AOkp+QaFKbUaryewTv7PI+LAayWLSyzwkSBq4DNx8FwIQ== 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=a90CNDThJbxQ90+Jr6dVaAsgu96+sdG2PTBdPgB20YY=; b=gpoG0G/aa4exg/WQ9hiYkONYOMt9+Q3B1FjGEPELcKd60rj+4kpneyZWMLLZpdyO32cHsX3ULFRCPouY0+fmnukDGRNsUVhJuDkkxu0XMt1oyJZ0+vkf9WEgL4Ww73u+/UA35QWPxJU1rtJTLLDTxqB/nksBTOmWWwvJhiVqawjp/f6bgrqVNpdwF0VxSa7VDN5tobSceLZfrKmC5Ro3PmcU96gkqIILN/rzMnen77efzESc2q/30ULppLT67IqTTVG9c9oFLHQBoLrukY9YO36y6emDLZlMpBjn1dWvZnZHIry2lKNENnXypLxJOqakqlwTzqa1x58Yu/79JAhLBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=debbugs.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=a90CNDThJbxQ90+Jr6dVaAsgu96+sdG2PTBdPgB20YY=; b=R3Iya7+iQGyGU4bPj32OXkX081Jpd3O73vvar3CFsY+L4Q8L0XAQsGb2JurZGIqdMZxbItwu77nlIvZbzvjSUJtD6vW4YPIPi5vRN8Zo+E2rlBpYWRZSabCKk2uN9KXfZkgACgR9ak80cvvUVlPljAVl3+7m9wFOXCj+QWJxn44= Received: from CWLP265CA0493.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:18b::20) by CWLP265MB2562.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:a3::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 12:10:27 +0000 Received: from CWLGBR01FT023.eop-gbr01.prod.protection.outlook.com (2603:10a6:400:18b:cafe::6d) by CWLP265CA0493.outlook.office365.com (2603:10a6:400:18b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Wed, 25 Jan 2023 12:10:27 +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 CWLGBR01FT023.mail.protection.outlook.com (10.152.40.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Wed, 25 Jan 2023 12:10:27 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id 20344114002; Wed, 25 Jan 2023 12:10:27 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1674648627; bh=a90CNDThJbxQ90+Jr6dVaAsgu96+sdG2PTBdPgB20YY=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=zXN5wDxKYEG+1rqxCbnjvx86pSX6cuvCgTgWnN+a/2qY1EONeuE93NKqZWptQXIHx ah74HQhd3xpdbMSZ+q6ewXGZTMkycsIsEtDAf+0bBP+ikqBFbApYehhhLavsFftJvC g3Sh0FRZRC4NXfqt+uYR1/zPcdgfiDmLaZCyNgO8= 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 References: <87lelrwv7f.fsf@HIDDEN> <c689fc66-81cd-3475-5c41-ada50fab8a9a@HIDDEN> <87cz73vzpi.fsf@HIDDEN> <87o7qm95q8.fsf@HIDDEN> User-agent: mu4e @VERSION@; emacs 30.0.50 From: Mickey Petersen <mickey@HIDDEN> To: Theodor Thornhill <theo@HIDDEN> Subject: Re: bug#61043: 30.0.50; `json-ts-mode': invalid font lock rule Date: Wed, 25 Jan 2023 12:09:08 +0000 Organization: Mastering Emacs In-reply-to: <87o7qm95q8.fsf@HIDDEN> Message-ID: <87ilgu3jdb.fsf@HIDDEN> Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CWLGBR01FT023:EE_|CWLP265MB2562:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 078ce7c6-340a-4b82-1936-08dafecd2554 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9KTHUpBD/gqgW2SJWM/gUbdC4ExZQGWN/2uE1E87nDbnNs6js4Ip7TrfswWSS00fZ2GCO4hr9C+aGscLWL2VYaxSo6ajXpMCdYAWkJ/4AeErL3p9Jc8Itdf5lShbYP5dVufTIsQqRLn1Eh9IJQ9VPJYbGGw6qTYYzyHtyHdu4vMYdKm6bEJojgfr9ojXYBT4l63UN/6sZqau+W8/iJU+ebE0Dve4WeTh2Zks5ubPanj0JYAN4hTEFAmf8HBC2HLuZKwFfA+feT+milLCKBnBKWPN0c2w9XfRLTGrVqlEwXUuTEzN/K4pAMgTESYSWsiLBXqT7kbdY7IVfzSPh8sxBnhidaRnrO9r8yFUDXjXiqPx546jnYT3BIgVSfJ/dFVY0IvuDUfqEpTuxk7g3sBmIeApRDOv4v6qJNeQeM7jSvF7M4QA0eMPyfZysXfhMEf7qgDG7TAraGL6xAJg3Chhrj1dAPIDVy4xbjovi03vYC9TyhaK6UsiHWWzhSqJr+AEowlVybK/67NfkGlNLwSoXMhVZj68AmyVtI407cmtkPdpwLjkDQIMPGBh/cRjnE6T2ALSN4fmx16IytSOhTaT1NvRQvnfoh9VuOitNYvqOuNL4ahD0yCze8aFzTo87MMUIhcya1fhXWAOEgBlznCAjuzOmOyV53orNhrAPWuPoryeqTRKdn+3aDh+74GRCXKMXh3pzeA7djCoT4Eci5BYDkH1RC01jJ4+Uhnqu+QnqKUTxw7gvyVmFpdoErGH7U571/i9aL2Dpj7lRHQoGxr/vILpuf12Zg+GVic3dkfW47LPy08yS+2ijQgUjulyOT4XbooCH9jiPuCfOVrNGIpcAQ== 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)(376002)(39830400003)(396003)(136003)(346002)(451199018)(36840700001)(46966006)(356005)(40480700001)(7636003)(7596003)(36916002)(966005)(186003)(2906002)(82310400005)(86362001)(5660300002)(26005)(6266002)(8936002)(6862004)(36860700001)(83380400001)(6666004)(336012)(478600001)(42186006)(70206006)(316002)(36756003)(4326008)(53546011)(8676002)(70586007)(41300700001)(2616005)(47076005)(38230200001)(81973001)(23180200003)(79816003)(14776008); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 12:10:27.4006 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 078ce7c6-340a-4b82-1936-08dafecd2554 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: CWLGBR01FT023.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP265MB2562 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 61043 Cc: 61043 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Theodor Thornhill <theo@HIDDEN> writes: > Mickey Petersen <mickey@HIDDEN> writes: > >> Dmitry Gutov <dgutov@HIDDEN> writes: >> >>> On 24/01/2023 22:09, Mickey Petersen wrote: >>>> There's a comment font lock rule in `json-ts-mode'. However, that is >>>> illegal and againt the JSON spec, and indeed the search query fails >>>> because `comment' is not a valid node type. >>> >>> When you say it fails, how does that look to you? >>> >>> Here's an example of a JSON file (or, more accurately, a JSON-superset >>> file) with comments: >>> https://raw.githubusercontent.com/huytd/vscode-espresso-tutti/master/themes/Espresso%20Tutti-color-theme.json >>> >>> The JSON tree-sitter grammar seems to parse them correctly as comments >>> ("comment" node type), and json-ts-mode highlights them as comments >>> correctly as a result. >> >> It may well be my JSON grammar file that is different then. Which is >> perhaps even worse: it is easy to find yourself with one of two >> versions. > > > See [0], it seems comment is supported if I'm not mistaken. > > Theo > > [0]: https://github.com/tree-sitter/tree-sitter-json/blob/master/grammar.js#L6 I understand. But nevertheless, I do get an error for that rule as it's missing (for some inexplicable reason.) It would be better if the font lock machinery disables/ignores the rule if it encounters a validation error. That way it'll gracefully degrade.
bug-gnu-emacs@HIDDEN
:bug#61043
; Package emacs
.
Full text available.Received: (at 61043) by debbugs.gnu.org; 25 Jan 2023 12:08:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 25 07:08:34 2023 Received: from localhost ([127.0.0.1]:58516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pKeZu-0000ty-Fj for submit <at> debbugs.gnu.org; Wed, 25 Jan 2023 07:08:34 -0500 Received: from out-134.mta0.migadu.com ([91.218.175.134]:16166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <theo@HIDDEN>) id 1pKeZt-0000to-4d for 61043 <at> debbugs.gnu.org; Wed, 25 Jan 2023 07:08:33 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1674648511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jTkAISXm/PrT0jeI8ILyt6OWh/c63Bq8Xh5YURino4E=; b=oJtFmjM89Zh8DwByM5GSwBj7kC1Uiric6Sc+CZOvcpji18AO7guJ7Im/mFxV5FjVaIhabF BnjyICxet/1p9XZvTai+QSLtL8GMlX4f40jzNZeGzm2LsY1imYwahzX5HRQjnudVG7ooCv H0zDhPgdUXTURDDsHDFco6mQS3Q56UShLPKdFrv7FelspDUhM9JOY752uo9Uk0J2F/MI7y lC5bKBOMrdJNcViKwEcHNHhshp2Y5pP/b7O3a5rEpvaUQePChOzgKHvxOBNAJpvkNLRQSZ S0/KPcmdcg/d1GYTpvTLw5+bUt4xE/yNdswqbUXa49w10P19qwI6JgWzzVeUCg== From: Theodor Thornhill <theo@HIDDEN> To: Mickey Petersen <mickey@HIDDEN> Subject: Re: bug#61043: 30.0.50; `json-ts-mode': invalid font lock rule In-Reply-To: <87cz73vzpi.fsf@HIDDEN> (Mickey Petersen's message of "Wed, 25 Jan 2023 07:29:23 +0000") References: <87lelrwv7f.fsf@HIDDEN> <c689fc66-81cd-3475-5c41-ada50fab8a9a@HIDDEN> <87cz73vzpi.fsf@HIDDEN> Date: Wed, 25 Jan 2023 13:08:31 +0100 Message-ID: <87o7qm95q8.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61043 Cc: 61043 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Mickey Petersen <mickey@HIDDEN> writes: > Dmitry Gutov <dgutov@HIDDEN> writes: > >> On 24/01/2023 22:09, Mickey Petersen wrote: >>> There's a comment font lock rule in `json-ts-mode'. However, that is >>> illegal and againt the JSON spec, and indeed the search query fails >>> because `comment' is not a valid node type. >> >> When you say it fails, how does that look to you? >> >> Here's an example of a JSON file (or, more accurately, a JSON-superset >> file) with comments: >> https://raw.githubusercontent.com/huytd/vscode-espresso-tutti/master/themes/Espresso%20Tutti-color-theme.json >> >> The JSON tree-sitter grammar seems to parse them correctly as comments >> ("comment" node type), and json-ts-mode highlights them as comments >> correctly as a result. > > It may well be my JSON grammar file that is different then. Which is > perhaps even worse: it is easy to find yourself with one of two > versions. See [0], it seems comment is supported if I'm not mistaken. Theo [0]: https://github.com/tree-sitter/tree-sitter-json/blob/master/grammar.js#L6
bug-gnu-emacs@HIDDEN
:bug#61043
; Package emacs
.
Full text available.Received: (at 61043) by debbugs.gnu.org; 25 Jan 2023 07:30:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 25 02:30:23 2023 Received: from localhost ([127.0.0.1]:58140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pKaEh-0007Of-C1 for submit <at> debbugs.gnu.org; Wed, 25 Jan 2023 02:30:23 -0500 Received: from mail-ve1eur01on2138.outbound.protection.outlook.com ([40.107.14.138]:21566 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mickey@HIDDEN>) id 1pKaEf-0007OP-18 for 61043 <at> debbugs.gnu.org; Wed, 25 Jan 2023 02:30:21 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nFRMP2bd2SelrhFv5Zw+RwIerCU+jo9llU3+XWyGOoI74+lnonQnwlIwlZJo1zJql0NfJSkv0BOo7HOxeKYH5MAv4WEMB/dlGMpVp/5pbmvWbOS4xC0MnrXZFUs7jZfvmzbXeVi0jTx1lneQM+zkwotkci+hL5pdjzq9xaZc4dDtRokhVEHdwBBU2Wmxz75M/OzbxZHOSpWjxA7RN22wIV8eYdTMtMEsgczveqgxT/h258cpiIr/Qigxjxr3gEhbK9zlsv+RBESHUSUnwPgDVopfqP9EOl0fTabrc3dgaObVWVzejoX/Kyc7SfErLSG6LPB8i9Zkt073QsL/l3hpUA== 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=FPUUfpr6WIfZ+z0nll1oGEXwMAaPamvcPUNv5u2Hj6I=; b=mMEHZaUdKeBn2/7V3uxgUrUU2iaaq6iCf893/qc1E1hTIGeE/wySQbjlUrBuQ8xlcVEAx2DA/cCNgu2KW+p8P3FNMZNGMa/4OUzec+6gU90uUwVD++/uqfaJ1caoKV/0ZbgtBkEirTgLiW933mSz+Iwe+CHNVXgX3yvnWmeQR9/xY6B7fmgREosDThuqNuvDLATqoeE/JyTVaa2/Ju14SnEDebZyhbtAYZw0otYZr7k04g09pQrHHAAdYd4g1BFvVJlqQEHWGxoFIV1/kZvpmdWzKOQLCGz1+VJ4Ddc1voKe0br6Mm3784m8A2YZj/UE+t6cvsQXD4q/++535v5VVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=debbugs.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=FPUUfpr6WIfZ+z0nll1oGEXwMAaPamvcPUNv5u2Hj6I=; b=AEnpfOELtuzfjtT6qJmrQZ66nPyBKe4aVWy5l7W4+ZTkff2jZwZcEohMzcyhceAf6h39TC4v5dACIkqBp0Esnox8dqf3V1FL93ah8jHChPN7290gm5Jz3d6oHapJb/WEmBVGLSxPTVo63jAP4CWG+XET8hFaQWwkfoF8i7c3tZ4= Received: from LO2P265CA0107.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:c::23) by CWLP265MB6548.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:1e4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21; Wed, 25 Jan 2023 07:30:07 +0000 Received: from LO2GBR01FT011.eop-gbr01.prod.protection.outlook.com (2603:10a6:600:c:cafe::f1) by LO2P265CA0107.outlook.office365.com (2603:10a6:600:c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Wed, 25 Jan 2023 07:30:07 +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 LO2GBR01FT011.mail.protection.outlook.com (10.152.42.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Wed, 25 Jan 2023 07:30:06 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id 68F5F114002; Wed, 25 Jan 2023 07:30:04 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1674631804; bh=FPUUfpr6WIfZ+z0nll1oGEXwMAaPamvcPUNv5u2Hj6I=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=pkJYLUubSp/NazvlTMWiybsfgwqxdTkQU004ahcrrRk2yh7620c4mZ93XFxLz5rW/ H3OQUiL3uwAXjZYpTP4FkrHm/xuomOOcFY1JdSG15MqCo/PrqCYUcUKYRSHnc8APPu d2X/VfjeR2dx1/i7Zoz4w5hUijpEqXbXgOIcln5o= 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=unavailable autolearn_force=no version=3.4.2 References: <87lelrwv7f.fsf@HIDDEN> <c689fc66-81cd-3475-5c41-ada50fab8a9a@HIDDEN> User-agent: mu4e @VERSION@; emacs 30.0.50 From: Mickey Petersen <mickey@HIDDEN> To: Dmitry Gutov <dgutov@HIDDEN> Subject: Re: bug#61043: 30.0.50; `json-ts-mode': invalid font lock rule Date: Wed, 25 Jan 2023 07:29:23 +0000 Organization: Mastering Emacs In-reply-to: <c689fc66-81cd-3475-5c41-ada50fab8a9a@HIDDEN> Message-ID: <87cz73vzpi.fsf@HIDDEN> Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO2GBR01FT011:EE_|CWLP265MB6548:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 8c703b8f-7f7c-4d9c-d445-08dafea5fb8d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Clv1wd0pLfO02Ijye9RUFl6DehS+FioDE0EDHyLjFIPx7WcFwrsxkwCk/HzciF1RN8SIahzUp1ibJr6I9zKk3mEoV27b8Hz1YI6TcrveeUyRh2blWi0LXNxAeZOET8az3g2DOZwEkMpKio39UW+QijcpSH/SxF9YEja0GkthWywAzP393D86utVlhGqOP8TlUS0UB5IyIwnqDXQiTNPqjB5g2sQWWTnYUiq2tj1jRZxl6oiVLT5VP5uHJr/lq+55Jjhb8TfXSEDhriockK1ZRRGDumpmvGh6boSn2e+If48jj8eskdArE+8QlmZmp19u67g4v4o/gvR1qr5cF6+pmTJr6a3bgA/Md3TrLnQGTOaYG6EdXu2npNV4WmMWhRwDRDxAE5GHDpoF+a//Nz7JgaNNSv68DjeOxkZam+gyXF7gxDULMr8+SXAtWPWOyp5pem3db2nADiIDs6YpicksUYFMfGJaYw1yf6rUFqzvbGqSyvbcwnFQsznHHoy/K/GyC8uODyR4mJM+Slz4MoKXCYQuv53W4YeikDBDMcKxOnbil1JJSEh4lWgYuZ7LaRQyLh2JCkXRa9GlPjsnRSm7GkV/5xyGtnXhaOLoHO0Lt4qdhsymaYMKLx2MT5Y7nXMZQ85OkQkkhCF6crW8K+Ot9SkV3ERqzrO6cJfmQ0hzAayBL7+C569Gy9XvGFDJTlCnmBsaSluO7wZrDyXaBrivASQ9U2czFg4jsTcDNeDpLGISZuFiJTTvvXuHe5qVkwopkRsSGJWADLVU0Vj8GWKz9NUcW7QhxF9XH86Jk2tsvRPp28pWSf4ZaCRqKbyuTk41yQLrhn5RTPD3fdR8Tz+usg== 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)(376002)(346002)(39830400003)(136003)(396003)(451199018)(46966006)(36840700001)(5660300002)(186003)(316002)(2906002)(70206006)(70586007)(4326008)(8936002)(6862004)(8676002)(41300700001)(36916002)(83380400001)(478600001)(966005)(336012)(6666004)(53546011)(26005)(6266002)(2616005)(82310400005)(47076005)(7596003)(7636003)(4744005)(42186006)(356005)(86362001)(36756003)(40480700001)(36860700001)(38230200001)(81973001)(23180200003)(14776008)(79816003); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 07:30:06.7281 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8c703b8f-7f7c-4d9c-d445-08dafea5fb8d 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: LO2GBR01FT011.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP265MB6548 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 61043 Cc: 61043 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Dmitry Gutov <dgutov@HIDDEN> writes: > On 24/01/2023 22:09, Mickey Petersen wrote: >> There's a comment font lock rule in `json-ts-mode'. However, that is >> illegal and againt the JSON spec, and indeed the search query fails >> because `comment' is not a valid node type. > > When you say it fails, how does that look to you? > > Here's an example of a JSON file (or, more accurately, a JSON-superset > file) with comments: > https://raw.githubusercontent.com/huytd/vscode-espresso-tutti/master/themes/Espresso%20Tutti-color-theme.json > > The JSON tree-sitter grammar seems to parse them correctly as comments > ("comment" node type), and json-ts-mode highlights them as comments > correctly as a result. It may well be my JSON grammar file that is different then. Which is perhaps even worse: it is easy to find yourself with one of two versions.
bug-gnu-emacs@HIDDEN
:bug#61043
; Package emacs
.
Full text available.Received: (at 61043) by debbugs.gnu.org; 25 Jan 2023 07:29:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 25 02:29:39 2023 Received: from localhost ([127.0.0.1]:58136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pKaDy-0007Lh-Qm for submit <at> debbugs.gnu.org; Wed, 25 Jan 2023 02:29:39 -0500 Received: from mail-am0eur02on2099.outbound.protection.outlook.com ([40.107.247.99]:43713 helo=EUR02-AM0-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mickey@HIDDEN>) id 1pKaDw-0007LT-Dr for 61043 <at> debbugs.gnu.org; Wed, 25 Jan 2023 02:29:37 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f+bmGNdflVCoK/cRVuxSkCEy9X2kIuAyv1YEOsmYigdtXSSWs5nWu+Kgofm2KjnBG5AGdJl06JksWQO2GQ2bHROw14UTG9f4kZ0w9eJeyEhTvgmzdhZxe+y21kslHAIHYN2mrQYCE/RnT36KaHu1YV8TehViq6EAsO3wmDxVy5UPSJfBrwn6ZJWTobtvvOIzc7YvV6NQHQgHaubhaGcUL4j5T451U15IYvGGtrNhMNtQ3dVuMniUTAicMb/ZzHuR/6uBai6gN47kqpL6IqVrDj7O8KibkJKLr3DbItM/GyuTpEpFhWwCm/mFxQJMdPAEMwi3El8mrBUa1Hxfn3R06g== 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=Rddf8pA5XbXypIl/n6m7ZHoFT6E2U84M8WVn/Zscbx8=; b=cwpMKYcW+wxULgIxoDpdTSn9IcudpjEWA/p5jV5kQ0fawPRcrXfXgzvrWYFf5InVnZJRlYuV/VhmpekdTin4NN9htOgznIa+GVGjk0Q+SmQVrTwFBvvNK+Oz8CX7XpGR7zEALrI1+4QwuHJOXm1R79CLscZ2DipM9veURPtQ0iduiOIek5cfk0dLntyHJfI/Im+mUmStbumfnvMd25SHI29yhOOgFVS9ovQ/fYaqSoLIxFbeMKYcEDNiS+b72zmyJoC+3bkWQEsgKHPzNiBry4eb2Ppvd/HdOuYr3ERt8tut1lhid6w2nkmlFgQ6/870Lu2rMvGa2LLXCvWNDDDPcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=debbugs.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=Rddf8pA5XbXypIl/n6m7ZHoFT6E2U84M8WVn/Zscbx8=; b=Oeh5DYDXPr3oYcgG+/spoVEvIEwKz1FV+k0DiJzKwjjBImjBu2hB2f8MTkSFcFEpovNMsH36lG+SCOgO8b24oAVqXqm8GUfIO0Vi0aVxmZhExwqObKEosJsArPzX6vWw/xspHKuRUgHoq5SLXqpbxqNQpGJ3skiGQmI3hoWUl4E= Received: from LO4P123CA0137.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:193::16) by LO2P265MB5469.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:25c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21; Wed, 25 Jan 2023 07:29:16 +0000 Received: from CWLGBR01FT009.eop-gbr01.prod.protection.outlook.com (2603:10a6:600:193:cafe::e) by LO4P123CA0137.outlook.office365.com (2603:10a6:600:193::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.34 via Frontend Transport; Wed, 25 Jan 2023 07:29:16 +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 CWLGBR01FT009.mail.protection.outlook.com (10.152.40.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Wed, 25 Jan 2023 07:29:15 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id A36F5114002; Wed, 25 Jan 2023 07:29:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1674631753; bh=yvjMslYg1VX4UquhIdQmWe8eibAaoYYoGZrkOmVVES0=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=c8+gMRAY2gODlg2mrar7/Ax12nwKYl0Fq1uve34zTVxZ6a6L7e3A1gG9AonyYTBTX 1yMSIveGhVsCnV/JIzr45MoxdeGok3uSUQlH1xahtY7q2Q16l/n6QVRkh/sIVr7PH4 5RgaJ5pnWgO1fPXL4ei5CfpGwlFM/R13dT//cLXo= 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 References: <87lelrwv7f.fsf@HIDDEN> <SJ0PR10MB5488FAC65D2B42472922C45BF3C99@HIDDEN> User-agent: mu4e @VERSION@; emacs 30.0.50 From: Mickey Petersen <mickey@HIDDEN> To: Drew Adams <drew.adams@HIDDEN> Subject: Re: [External] : bug#61043: 30.0.50; `json-ts-mode': invalid font lock rule Date: Wed, 25 Jan 2023 07:27:46 +0000 Organization: Mastering Emacs In-reply-to: <SJ0PR10MB5488FAC65D2B42472922C45BF3C99@HIDDEN> Message-ID: <87h6wfvzqw.fsf@HIDDEN> Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CWLGBR01FT009:EE_|LO2P265MB5469:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 8443d9d6-fcbb-47d7-a6f3-08dafea5dd32 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nkBMqnsPWLCZBmMCBW0XaveBmmsYXdJCOqZ0bfUJWfL6DWiIs3mrcNypwuitiV+72E+XqvuQa9xNXEoE/v6uMnWL6qD5mQaqGuo6eFweFqaaPWO3Lp9TZ60UX0pSol03ef60EvfhR5wneB9aqFFM7tZPIotLd39dbzHiuTruKEIc6LmR4JX323lbySiPLGpLy1TqR/DBzpMj9vLZtwa5Sdado2YD9t2ebDAdyEyI6BdS6GYS8vML46ZSg4WrlOVZjKF5VPI8cY1qLmtPijUmVYUHSlc0vUVZKbI1svsekClnCxzv41a+MMjF6B7W1Me/1mxcddRwJgRgR7WLM200SUDm79bx3KL0d9+hBLVe0fHjUtsNtZpzELr8B5+STGn3ZLLTQo4XTp7HTbdtrnaQlW11zX2x8T9HGIIP+coSVWz4mJ4u6hyCCCNeevknEmJ/SH0l3fPQWMLYairVIBbt9IfWbUaewQWxZMoV2fWrMHd+jd3JOvEWqq44rpjf4GdVWUz2hSMHkIzW4wwg4vdZjgTOfDd562lFslhSEaMwpeSqZB26yJxm3y8KOeIgreQqkSyjwgv0FOTthId3C/Am2kiHMREQ8cMdfJwS6+QYqDaU8LFkN9Ojxh0IHcFxKe3UEAacAkWX+dVQ610BiqG6q+GyUBsdcAT2bG1bSO+A/YBxy5IBA6Asz0qW0Ne0rBbNv6r/YKLk/z9XLMsSpDgBhp4creaHcGnfXU98fjNAdLENiodNPrfMQrdS00Zp+Eq7wYxWJdEE6homKvGvgz4vYQ== 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)(346002)(376002)(396003)(451199018)(36840700001)(46966006)(47076005)(82310400005)(86362001)(36756003)(40480700001)(356005)(36860700001)(316002)(7636003)(7596003)(42186006)(2906002)(66899018)(41300700001)(4326008)(70206006)(70586007)(6862004)(8676002)(8936002)(5660300002)(478600001)(6266002)(26005)(186003)(83380400001)(336012)(2616005)(36916002)(6666004)(38230200001)(81973001)(14776008)(79816003); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 07:29:15.7864 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8443d9d6-fcbb-47d7-a6f3-08dafea5dd32 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: CWLGBR01FT009.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO2P265MB5469 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 61043 Cc: "61043 <at> debbugs.gnu.org" <61043 <at> debbugs.gnu.org> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Drew Adams <drew.adams@HIDDEN> writes: >> There's a comment font lock rule in `json-ts-mode'. However, that is >> illegal and againt the JSON spec, and indeed the search query fails >> because `comment' is not a valid node type. > > Caveat: Not following this thread, ignorant of > tree sitter, and probably ignorant of the use- > case context. > > JSON syntax per its spec(s) is one thing. > JSON out there in the wild is something else. > > There are zillions of JSON documents that > aren't well-formed per the specs. And lots of > apps that create and use such data. > Agreed. Sadly, the JSON grammar in TS does not support comments, and so no comment support is possible. OTOH, because it is strict, it'll catch errors like trailing commas, etc. For 'lax' JSON, the best option is Javascript. > As a result, in the real world, tools that we > expect to be useful for working with real data > need to be _able_ (optionally) to handle at > least the more common such deviations from > what the specs prescribe. > > One way to do that is to have a variable/mode > that controls the kind(s) of well-formedness > you want to enforce. E.g., have two modes: > lax and strict. Or let functions dealing with > data have an optional arg that specifies the > syntax (lax or strict) to enforce. > > And of course, we'd want to document just what > "lax" mode means: what syntax departures from > the specs our lax syntax tolerates. > > A lax syntax, for example, often reflects the > JavaScript syntax for object fields; boolean > and null values aren't case-sensitive; and > it's more permissive with respect to numerals, > whitespace, and escaping of Unicode characters > than what the JSON specs require. > > E.g., in JavaScript notation, a field name in > an object literal can be, but need not be, in > double quotation marks. And alternatively it > can be in single quotation marks. > > Other things often allowed: > > * An extra comma (,) after the last element of > an array or the last member of an object > (e.g., [a, b, c,], {a:b, c:d,}). > * Numerals with leading zeros (e.g., 0042.3). > * Fractional numerals that lack 0 before the > decimal point (e.g., .14 instead of 0.14). > * Numerals with no fractional part after the > decimal point (e.g., 342. or 1.e27). > * A plus sign (+) preceding a numeral, meaning > that the number is non-negative (e.g., +1.3). > * Treating all ASCII control chars, and the > ASCII space character, as (insignificant) > whitespace chars. > > Lax-syntax JSON data is everywhere. It's good > to have tools that enforce the strict syntax of > the standards, but it's also good to have tools > that tolerate real-world, loosey-goosey JSON. > > HTH.
bug-gnu-emacs@HIDDEN
:bug#61043
; Package emacs
.
Full text available.Received: (at 61043) by debbugs.gnu.org; 25 Jan 2023 01:28:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 24 20:28:11 2023 Received: from localhost ([127.0.0.1]:57908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pKUaB-0005Cc-Eo for submit <at> debbugs.gnu.org; Tue, 24 Jan 2023 20:28:11 -0500 Received: from mail-ej1-f41.google.com ([209.85.218.41]:33520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <raaahh@HIDDEN>) id 1pKUa8-0005CP-Fo for 61043 <at> debbugs.gnu.org; Tue, 24 Jan 2023 20:28:09 -0500 Received: by mail-ej1-f41.google.com with SMTP id tz11so43841573ejc.0 for <61043 <at> debbugs.gnu.org>; Tue, 24 Jan 2023 17:28:08 -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=CYhSmZ/Ttcr2nNAsDnFFeHjdsak4vWcufe666w3c37Y=; b=km7v2FdBcJlNt9cq+TOFSsPTbwp+uzUOHHFhpr2UNPIHQiv76xP4Y1rBL6yRry4anm lbKGkTSdWQeC6f/aZqiMoa4YDMVzsEQXmAaWVT79RGJLWE9t62AVFZoQmezPG3PEcEAO OC6i2b3MUs0MQzTjGIlWUiQK0ACAwctyUcm15Zfp7qKGxfzNxGyV6VXzQ/bk579Xpd7W pQYDu6F2H/uAIi2inEQrJYgLhrNn1poaNj1UmgwFqlSB7dyw33MMkO+P6kZAtYZtig/W xhQS4DcjHHfCwlBHpXVK5648OMHVnXFGyqcsBigeOTjJmjLmA+VVSiMkt7hcg/PyWH/W RjbA== 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=CYhSmZ/Ttcr2nNAsDnFFeHjdsak4vWcufe666w3c37Y=; b=xLGaq1kgQ0RMw1jDLFs+RhJtirsIIUWHrLbrUnsgm9h/XwBfxbBZcqkxTyxc+fWGuf UaevbnEkatCqz/WzVIWWfWrXQZf0YpqqOHDVbRuh8CBZA3AMROiaA4ZXiL397REfkwVk UDNDW+gSUjAQtlLXPVe9LIDUpHhFEgXaLJlKfhbfuHLemvbNL+92V8n1wPZg0JzI3ytq WY3qc5o2di4mr/hkVUOpyon1j0S4goSs3Et4AJhZ2WGqiRN2cxN68XJNcPAwb+jewQpM yBRnNrm+bMNTO8NbnGFx6j0sYYzZYGzHTpn2ErArBzmVXJZet/qfGAcoFf8gXlPC29mc fxng== X-Gm-Message-State: AFqh2kqyb0MkugYlmxYOsOhHWFX5YaRAqOyvXfa1++HqEs9emBJxHgnj KgkYpoxkU5JHfj00J3gCbHAVAJeS+/c= X-Google-Smtp-Source: AMrXdXtKQC3LFEZCp+UxpZPxme5ZGsJIVpkJHxHk/D3/EDbHIj5YWrZfAIiqaDwRPcs45MsYg2+bVQ== X-Received: by 2002:a17:907:961b:b0:872:8e48:3b91 with SMTP id gb27-20020a170907961b00b008728e483b91mr40297879ejc.52.1674610082410; Tue, 24 Jan 2023 17:28:02 -0800 (PST) Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id i25-20020a170906265900b007ae10525550sm1613110ejc.47.2023.01.24.17.28.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 17:28:01 -0800 (PST) Message-ID: <c689fc66-81cd-3475-5c41-ada50fab8a9a@HIDDEN> Date: Wed, 25 Jan 2023 03:28:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: bug#61043: 30.0.50; `json-ts-mode': invalid font lock rule Content-Language: en-US To: Mickey Petersen <mickey@HIDDEN>, 61043 <at> debbugs.gnu.org References: <87lelrwv7f.fsf@HIDDEN> From: Dmitry Gutov <dgutov@HIDDEN> In-Reply-To: <87lelrwv7f.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 61043 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.9 (-) On 24/01/2023 22:09, Mickey Petersen wrote: > There's a comment font lock rule in `json-ts-mode'. However, that is > illegal and againt the JSON spec, and indeed the search query fails > because `comment' is not a valid node type. When you say it fails, how does that look to you? Here's an example of a JSON file (or, more accurately, a JSON-superset file) with comments: https://raw.githubusercontent.com/huytd/vscode-espresso-tutti/master/themes/Espresso%20Tutti-color-theme.json The JSON tree-sitter grammar seems to parse them correctly as comments ("comment" node type), and json-ts-mode highlights them as comments correctly as a result.
bug-gnu-emacs@HIDDEN
:bug#61043
; Package emacs
.
Full text available.Received: (at 61043) by debbugs.gnu.org; 24 Jan 2023 21:10:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 24 16:10:52 2023 Received: from localhost ([127.0.0.1]:57733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pKQZA-0004li-8q for submit <at> debbugs.gnu.org; Tue, 24 Jan 2023 16:10:52 -0500 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:26216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1pKQZ9-0004lb-6x for 61043 <at> debbugs.gnu.org; Tue, 24 Jan 2023 16:10:51 -0500 Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30OKxix9028691; Tue, 24 Jan 2023 21:10:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=lPggOqfC5Pc4BYPdUpujL9JKcpG6ya+cuJgn/CdtDmg=; b=WAesN1W/oHLlZ9Rm3Ncdyj2ymFxVU5OG6Sa3OvdZBg4qbAac7X9qNOFzkWpGLrFluds7 ZCJKNzNAwyZ4a2P5xkb5Jgh7fDCozBnxpT7+qu9hVfDpWk8ZKL/fwATu4Tk0Af7BVomT qn+Baym5Oo3B2DjaV8w8CrdXnLurOG9FL849iMVxtbQSkptUyK1hlFrUh2P0JWKsAmuq mJm6NVD7HnxxT/C2uJSB9KMHMphhAiP5nj+UXefU8cmp/FOeQfs1wAnBR2QNqQud9Y+E l4k7WgBm+wlIbXt8MStwmr9xTi54FhhhDVI5z2CL3NhPyJvpP+vaP84YacV/3ZGA/Huc Rg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n88ktxcu9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Jan 2023 21:10:49 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30OKVpt3029476; Tue, 24 Jan 2023 21:10:48 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2109.outbound.protection.outlook.com [104.47.55.109]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3n86gbu2yn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Jan 2023 21:10:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SWSzkDIBmCMWhrJ31sIw40hqesxqqyzNLCksOCfKAwe/f9SpqitpvM+AW2mnGw65MgqUdawS93IaPD4R0VA3/FqzOf1UiI7m8whfp9FZErFhhAgnfd6xfLQw04vVb9DrqKMpoXCcFJ0w33Zf0D8rodpk3T/FgNYHKH/o2QugjGBQ/93QN/wT54izD3SyjvXlM+xfPU+QDMbMzs7SAMaOeP9HdGdcZRg687z1iDrX/irpgFNokqu79p0iCAy15THMh4o+0BaQMDiszg2LrOEsA4LrHEQWY+Lf+a2MuAwiSocFp7snDxle/B1LAWdNpel+WX077VsU1Y1S2W+YwM5img== 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=lPggOqfC5Pc4BYPdUpujL9JKcpG6ya+cuJgn/CdtDmg=; b=obT20/toJVZE0d09w2ncKnHehyUd6VtJI0AUH2T48WqTdkv6sY7NZmS1zQ7MrDQKad/KFvZt0I69RjLdUL2hb4FbZSezOwUAGtFV2Z5/ap16BdTd3mx5QBg7dUfR8dzSf5EkgYV6i+72AbtpNJpJeSRU7Wetr1Q7xUZ6QV6oUYvj5ysZWnUk4BKQnRuv6Wgm/PslE/s71Qkx9t+sJ1xOnH71cJxWJz2geyYSmVAf9J890IZL3L/M730/PurSa5x5WckGE4rISzHylpn4gCmPnrH1vD4UNy5uCRANFGT0dlOveUL1TRqDpeW8Qa7irjgVWbS7z700qdlv23AZUzOWHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lPggOqfC5Pc4BYPdUpujL9JKcpG6ya+cuJgn/CdtDmg=; b=Dc5CrgnUtWFC6AJGScA0pZONYnp1+mzFOUoGPffYdrPi7TGrVxV/StVPUdjfqWqQ3T1sOR+SorDXKZTGRQl7dd2xNBtZ2e5HEEBFdLrnrPAC27sZ6ywVphA1UUOd82Mk5TgD0WQttd6QoXhihF76DfvEncNgwaC5F4EXiNDLFmU= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SA1PR10MB6565.namprd10.prod.outlook.com (2603:10b6:806:2bd::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.16; Tue, 24 Jan 2023 21:10:46 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29%7]) with mapi id 15.20.6043.017; Tue, 24 Jan 2023 21:10:46 +0000 From: Drew Adams <drew.adams@HIDDEN> To: Drew Adams <drew.adams@HIDDEN>, Mickey Petersen <mickey@HIDDEN>, "61043 <at> debbugs.gnu.org" <61043 <at> debbugs.gnu.org> Subject: RE: [External] : bug#61043: 30.0.50; `json-ts-mode': invalid font lock rule Thread-Topic: [External] : bug#61043: 30.0.50; `json-ts-mode': invalid font lock rule Thread-Index: AQHZMC/nyIgpRuHW50GbN9aQS+Kmrq6uCUFwgAAGt5A= Date: Tue, 24 Jan 2023 21:10:45 +0000 Message-ID: <SJ0PR10MB5488627ABD97E64B29A87C96F3C99@HIDDEN> References: <87lelrwv7f.fsf@HIDDEN> <SJ0PR10MB5488FAC65D2B42472922C45BF3C99@HIDDEN> In-Reply-To: <SJ0PR10MB5488FAC65D2B42472922C45BF3C99@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|SA1PR10MB6565:EE_ x-ms-office365-filtering-correlation-id: 1150233e-8a29-475c-cd94-08dafe4f75eb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: l3WhBX8/9mynlJA4tjerwS/UlXBDY/zpRSBczSfgDDmYpNVKQXf1xkjwV0nVnoIupDZvXBRufgr8R+3Wz9QZbpd93tpJMNlw28dnKnzSZR18AQHzpjEBY2iwaxMlhu+ZazS4Yye35/BWlHZ9UPDvc5pgLgI6sBJYEc1oO/k9QlInAp+0xw88+Ev/VRV88taw9mARR5Mi/sdwMBbyT1UiHQHpbaHUqdBv0MRVUb69ziJp2Ens3p6D0XbMSWN3px5O9EpKeDg2vuEqWnuYFxkFzrwuryDwURAcKbzSbT90WtyR4PhxASc2PXmUIEE/2X+GCmtjCtn50GPk+AmpC2n3sVaKJ859hwkmyBtOhqERTIWduXz9biCx38HjDs/DNl/zsvQ4l7u2eY/z1/Bj76QqvGWLDavkjoYjnvs0jrMjBStC+QpGQPNNK4IqRApbnW4OhjkVxHkjqB+QJpHuopguJ9CtKrFDuHzZNvK2RDDDf9ZsPG124gtF+Dvq5gavM918pOWD32Blw/uPQZQC8Fu2WW9/35xDSsGqG6qQfL6qQG55KIVwYMPNRrTwlZ6GAvG1mKj1Hd2vQKDJZpTSkZbvxJBdGBS0/JEz0R0yrDQShDHi/zBDFlGYIIpx5fPTCrN+VtjdHKSQ1tzRuENllsT8/NO6w/4k/yNKCceSK5PiimdVHE2UeRRSEo3p+ZfErJVsNn51+PRsDsyazrVc2+YprPDp9Sye2ezuFHiJkRvoJjQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(396003)(366004)(376002)(136003)(39860400002)(451199018)(71200400001)(66556008)(66446008)(76116006)(316002)(2940100002)(8676002)(110136005)(64756008)(66476007)(86362001)(186003)(55016003)(26005)(66946007)(52536014)(6506007)(7696005)(9686003)(2906002)(478600001)(33656002)(38070700005)(5660300002)(122000001)(44832011)(8936002)(38100700002)(558084003)(41300700001)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TAiUhy+T/AwwbiCGC0tCo2qY/9BcZNvHoWL6GuRjdQvn4Xi2qyxDiBOECfd+?= =?us-ascii?Q?DT7DlhPsEn6k5uHQhAj4Ii0iti6/Wqkr0jnfP/yBbbwOWMSa8+4mOxL58hoP?= =?us-ascii?Q?67ApZOKfTa5P2n2NZV4C4t/wZ1lDwXVAC0ugsWvlig5eWYKircZQPLg6GezT?= =?us-ascii?Q?R27wa+47rKkgecSublyRyLD2131eZaOikAc8+9hNzPy6EWUNa6mlDKCb0SGF?= =?us-ascii?Q?+8fQUFxldwJO5yEhxl4/aBI0Kh9F/b0JyGruCwEbcOim0pBQnjwl6JDF0fr6?= =?us-ascii?Q?GAPPh/PdHvL9WpsvvfX8OpyFJcaX14appqSxl00iH6MVpC9hAqTtG9CDRhR8?= =?us-ascii?Q?e2oMnX8Ft3bZ2/gPJQVq1J2ieh+xoomLd26GIW57CVkOHbs352OSIuKV5B1U?= =?us-ascii?Q?NlwsfYF9C8r9e2ORKYYND2uNT6FHtmcItcUOwZ0Gtn+m5NFgz2m7SHNfx0rd?= =?us-ascii?Q?AqULlin21lvRZXwgYXTcEGxl+FGA9FDCo0fo0TS54HNX4AFR43fL+LF7nnuR?= =?us-ascii?Q?0hHGMxCuYtpGM3dYULvFNlRgBitgkUdhwKIQYPiRrXh0hipnKSvf9H5K1R2G?= =?us-ascii?Q?hRtw6us1mHPRtC6Ho92EVQKCOEb4kxzH/nAoNlnE3kId0qizxcXdusGANRp+?= =?us-ascii?Q?GTnxcXlg0C/pKQT0IyVVdszWru4litR93394nOj5fZFhFFkjW6a60EbHEWwW?= =?us-ascii?Q?a3qXiLgc5NAqCfNHDsu8nYSsUNfic6SBqZTIFSpBq7ewpkWPqf+2KabAZYw7?= =?us-ascii?Q?pLmjqSre9HDusRDIhVPezTOmNWy7bgl/D796Rb17suteAuBNP2htsrO3jhqL?= =?us-ascii?Q?kh64jNoYNgmQtbUAX4SsIk6fIooQrllzuy3TpdVOl/fg3WD+QLCAS3UPRwxO?= =?us-ascii?Q?ssiOLcY4lHjuX1oQEe4796aSRQ9GhF4/xVVlZH6V7LjxuOrngO3t9qltCIaz?= =?us-ascii?Q?/n3cIUhA9WxHg2/q4crrwIYJws/u0Yi8IYdbkLrYmwuj358Q1W4WzO8DsJ5S?= =?us-ascii?Q?aCEdPyzHF+RY9/y9LeCc6xiHGRQm2MBylOMmdmGivvfrzxiXbPH522wkyjyh?= =?us-ascii?Q?XHx3w1b4+mBTKH+fMKotu7Bz6ETvXxDfQbqE48JhGJjyOitlUl8RLPpujrOk?= =?us-ascii?Q?+GoEYHwlLiDHsSCJSU9tEBvoc7BsBs4eIHAsjOsVOtKLM3NGLbjo5wgALgnT?= =?us-ascii?Q?SpNbjrshWGXTocimqgyAP5hyDbyXre++CmGwPCzQuGhdmd2WXKovlJpjlJNg?= =?us-ascii?Q?M5wlC/18WNVcJBAm0UNTPwDV+nbCtzxq2lnYiLb1+n9oM9t664mTZdV4yPLM?= =?us-ascii?Q?6we4KvjEB7mVfQC6UH6L3EkQ5V+wBbwSGHGXC1lpvwjJ5wg2dZ6y5NQVAU34?= =?us-ascii?Q?Y34gm34n0Beqx+VAmy3OVUlC1kRX5na0AexkhQFo8UgTBbo5s5aJyiYPdFPY?= =?us-ascii?Q?qhk37Bw7Oc/c/qo50YSf0fEusFOKhql5+aCERcDmcwfgHq+uL4g2gIYnAc9j?= =?us-ascii?Q?YGpaGqkjQdXZ97NxMnZW0fx7eH7gYOrLbOKEFK1f9MGQT5pUPlFnOOTwwA9l?= =?us-ascii?Q?S71AiI7xQR87z+oz6lBEV80oUVk7Yz3SuhAwDF4s?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: LBa8RaenP24WtQNqEvwt5ZATmgDAI3oM1ZzEMUvnWsLJ9z5wdaQsKX5SjmKHaj8YbfZUpA5PTOPg+yuUhwE9tkKEaPmf4lje/CIh4pcsbmhqXZIgI0m7urL6Tl2A0u4jxaWdf7yp7rg3XsK7QlWQ+7qMXi9m/jLIs7EnHx0Ik6zQXPVYm4VcT1KxHpX9kX7HIm6HgSIJnfzMQdWVreUwN7t4jeZnHqcnu5mIR0axAW3lqAJnRpTeXKcnshFNAo7HxIIbJwtSRzelvtvJWzZRh174OhB+35efvgaZtwCXiHy4GD5y6QARPKbNx7+SqKlAg1sOME81tnEuRiKrZuIMrjfqwk5w0BdYGrFLWcb0h0zfkPBE0HHLloXUSUqv5o8mbVfz5NOJKONucXm8yhW+BThZGSYaBUyYQa2zqHWbpvib1VL8Qk1q3gqbzlj8azw/t+gPyr5oIQz343nqvZb/DqAeygG7C2wIAmKN/RoUdSMn7R3ynPo4cqlal4YWcFg+Ei1O+6lCgftFYPqwnECVzbY1FjoQlUIrkhsC1Q5IaJLfScldsDxAoTKDdxoVo2tejzIBuZzK+XkDCMO6KHNWZe8SEz2FJMmufnkhzI9cPQDBiUFRNwb/7GQhGRyDk4qWkxVZZRMOaXNFz40Mvm7DYhMLMp0NwIT0T2q0ofjoRL5WeYsAbY/2212yQq+vETMtvlUPHrka4IosKesixj0nxM6D8+cE3gbKaXquD8kn2EOeOJBdmcG8m2Nyqqsqu3ZxHuwCVT0ZEO7NjBQpk5ZsLyV3+zP4/W7GNgQM6Y6uWSm56Czk8BbxMkAX+UOtJo0X X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1150233e-8a29-475c-cd94-08dafe4f75eb X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2023 21:10:45.9980 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0oUcNvI+F0mFQbP1Oh0sKifLrPZEAEeC+UKzewUsRXcKn+yKKceovQn32vvZYooAQJF0UG4UnOn0wdvztJ5n+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB6565 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-24_15,2023-01-24_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxlogscore=824 adultscore=0 mlxscore=0 suspectscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301240195 X-Proofpoint-GUID: hgT9swFFw9RU_T85stb2GZg7ew0C9vdV X-Proofpoint-ORIG-GUID: hgT9swFFw9RU_T85stb2GZg7ew0C9vdV X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61043 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Meant to mention comments. ;-) There are some JSON comment syntaxes out there. Whether our "lax" syntax, if we have one, supports any is a choice.
bug-gnu-emacs@HIDDEN
:bug#61043
; Package emacs
.
Full text available.Received: (at 61043) by debbugs.gnu.org; 24 Jan 2023 21:08:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 24 16:08:17 2023 Received: from localhost ([127.0.0.1]:57728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pKQWe-0004hX-Ly for submit <at> debbugs.gnu.org; Tue, 24 Jan 2023 16:08:17 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:42860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1pKQWc-0004hO-0n for 61043 <at> debbugs.gnu.org; Tue, 24 Jan 2023 16:08:15 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30OKtN3h025722; Tue, 24 Jan 2023 21:08:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=kFD5KgmACMDP44xMsBPmZci0z87K2Cr0li7qFbuE2sw=; b=V7bXQyXAF2jr6sJ0XjMRAWJzNfm2oBCVRebGxBd9AB38xXlL+HYCtdb3K9Y3f0ddmDC0 e0/XC3N9ZGZ0PJ1E7+zcZbmQUC7rp29MKbYdtcDMXZCFtfadnCEH9GJwp9WAzWsIpAz1 A9dg4Qd6oEo+puegSZqnRdBuNeiFDgVrbmmxFvjI9x3E75XJx4SQDJ9Jv3BBuNwbCoc4 X5i73J6so+7MTL/H9KMnU3uEefC5se9Qw+PfWzr+ys3bSpjL460iqMNyPeJ7E2sFMm4A ftfLEWD5zizIXsWjrb1rEnmu5BBkN8TF9SDDppng6WTnrgVOSXm7cfF6zv0woycTX04T Rw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n86u2xjj9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Jan 2023 21:08:13 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30OKgR9A021348; Tue, 24 Jan 2023 21:08:12 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3n86g5h6dc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Jan 2023 21:08:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AbMJ43MP3wgasf4rJU06SsAh7USU/O/Q4fi8CenpxZ8VWMB0NE91G6iZUqX6hDkjhf+xo/oZ9USrMwX+4Wy6CykaHb5LzZqUNPXiLyB3HH17jxfTAriIeqLlnPXXj1LsalbA4G8DsKJDrbogSCq8Xr2OALYmHJwHP3B7Qke8pFDW2pxB3pSR76JSig0KtuXlMSJOcNGbWXQWCbYVfanIusg/u4pIJW4mz5KSmYUakzh7A8yGxzvRM2W8/DalGA1H7AMgkPiGzhKIsu4rdAn7HQLo6LVR++aiXsgGJqdFzTqKOM6twOxVGfTkschPiWxMfV4B74+HVdd1oLy5YG3aqA== 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=kFD5KgmACMDP44xMsBPmZci0z87K2Cr0li7qFbuE2sw=; b=YIbpUSuyGCkS04AZjFS2vmFbB2+bAd0GS/V4OJ7Ooc7iL8oaThXqR60rkUN9tfC2uQ2Q/A4Tu5JIwifX3bLeO2JRvu1FCGAoeFBNSlmbbUx+IVpCZvjAf9EMKo2vJnCWxOFFe6a1R5hjEwa76xYmh9lJnAUSkK8+7BwSKeOkyN5RqmTTu7ShshS4Ru3dbgNXkCY0s+LW4bMj6BkquANIZrezhwZuelKDMsYSFlKikETlbrWgyn8YfB8KRbr7JeNQMgOe7pL38f3T/1aFfNd657PAYNGaFd2RmXsENdDjOi1VHCUPhy5LyaEtBHzME+c1qI2CB5Ms7s2gJfdE0sgZ7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kFD5KgmACMDP44xMsBPmZci0z87K2Cr0li7qFbuE2sw=; b=RSQdsBsqq5Yk2qb/VgNE9fO7rstPJL0MefW3eljZx7Py4eWQijEUswGAKpdgWgadKXFCxAIICo01tv6J9ujucEilCaKakKRK7rdbYLvaLr/hxTDEgsr71TJvsvUZio4UC5EwJI9p6+NEnLG70CS7NacoJtSlXY1iJcCPoBubDt0= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by CY8PR10MB7121.namprd10.prod.outlook.com (2603:10b6:930:73::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17; Tue, 24 Jan 2023 21:08:10 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29%7]) with mapi id 15.20.6043.017; Tue, 24 Jan 2023 21:08:10 +0000 From: Drew Adams <drew.adams@HIDDEN> To: Mickey Petersen <mickey@HIDDEN>, "61043 <at> debbugs.gnu.org" <61043 <at> debbugs.gnu.org> Subject: RE: [External] : bug#61043: 30.0.50; `json-ts-mode': invalid font lock rule Thread-Topic: [External] : bug#61043: 30.0.50; `json-ts-mode': invalid font lock rule Thread-Index: AQHZMC/nyIgpRuHW50GbN9aQS+Kmrq6uCUFw Date: Tue, 24 Jan 2023 21:08:09 +0000 Message-ID: <SJ0PR10MB5488FAC65D2B42472922C45BF3C99@HIDDEN> References: <87lelrwv7f.fsf@HIDDEN> In-Reply-To: <87lelrwv7f.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|CY8PR10MB7121:EE_ x-ms-office365-filtering-correlation-id: d9de0ce7-5900-47bf-507b-08dafe4f18e2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wcdPFyJlJ+GBaO3jTzFf6c188x+16I59hkk4phN0s4o8dK2d358T4r/CZJadKioubC09gbpRPfq5zYBRmt0Y01x2rfa5pXXRXrE9c8ofShkeZ/7RwayrS+XejkBfG8EQMYRHhsugQZeNpu/rm4/wSz6dz0ImC60YVNfHQU1kx5e4o/pQRVTfwDCwsLtovo4wOfD9RTVDFWEz/pDvPgBjYOdpSzUte7hOh51zmY5nm9RawAnYVdY2cA66D/ydASSaB9nSqdN//Zg6oERgf5d2lxuzUBagpDtD1t0qc/Gk4aibglGH9vYjRc9n0u79RMlgU7T5oefa56k3OxXkGlKcIiV2PUdVasnGsomc4CAcYaSlr0RH7WrW/HNY8u0hQO2SFNNss/6wkc+FnrrbT9z/KHBAbzL/p0ALoXEXFyUIiEGe6oe0j3u//0hucIvT8ZHzwYnu9A81+SMVfwC1XxypaTDg/XmwqqqTx/JfcnCGfOwgynMDHsP+tR3CJZeD0/68Qep44NkiDG0WKj+SCHX84YXk+1rWj0pG21THzA6xgXXkOCgSYZlaKK8/g6EukQXn3zlKDZ6vKToJ+05jIS75brWGJ0+Uv6AoJNUVrHTH8yY9NioiE6mZzTJAxFSe2Dn08k8IftmCPMRp9J2AJZfS8q4P/cFu+xRT34PZhW/s6HQ4hCtT/FWWBDy3Lwg2HWaOH/8EGTqq36DOV8j6m7/v2nT9dOfhQtB3ZHmXLXkfeJI= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(366004)(396003)(136003)(376002)(346002)(39860400002)(451199018)(66899018)(86362001)(55016003)(33656002)(478600001)(7696005)(110136005)(316002)(2906002)(71200400001)(5660300002)(66556008)(76116006)(66946007)(8676002)(66476007)(64756008)(52536014)(41300700001)(66446008)(8936002)(44832011)(6506007)(38100700002)(38070700005)(122000001)(186003)(26005)(83380400001)(9686003)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Jm/ic6Gv+uQKBHUPBjnldMEOQCQRG1Zs5HfecJzZIkcykzqgU7TSDh7PTO3K?= =?us-ascii?Q?OH1tuWYe4aWuEFpBt01HodlIS7ck+XXPw1pBKV1mxpU/uYrS0Q/TDLSz5icJ?= =?us-ascii?Q?KRV7/UkvbkddOEykojdPAD+pYqC6w1F5ICujS7phjobS1XFWk7kLI99K96mb?= =?us-ascii?Q?fTxu9lRVyL1J7tdv6H2v6SOqdsITNrgT5cHUx+I+P4N2Fwt5zdT1l0mZtLSv?= =?us-ascii?Q?lc1M8+/gs1CJ4jA/E3vBF2q12IuYff/OB461yuCfrORXRtEjJo23iT1YAcHX?= =?us-ascii?Q?ul8Zlt/RaqNOW7CIaxoXSPAgzyvtt6VK9OlswpLkcVDJyj+ixp7rUJmFixr2?= =?us-ascii?Q?J1fdVedWJEnesNiEHl3xVN9RguBTV7szDXzg9v8yD+rPMAzZZoXJrSsY7pdl?= =?us-ascii?Q?UeoH4GdaOCFwr/kEDptN3peqO7IBs2TNBh6rX4A9OBAnye0TTbhCYGTMeemj?= =?us-ascii?Q?oyCZ0DDDlCE8/cCbzRRAfiJBlPjuuipo8jU6hXJyj7UrtWFbke8CfNOxpfQX?= =?us-ascii?Q?ManYSYTMVQo+pVJzxd/8oMX9w9xOHDQsL1eBe/6DKfkSdFzxhdlsVp4Pl2ji?= =?us-ascii?Q?DJlLPeWP2EU+W/s3z7UxiHMAhu+Fe1mJpZWGLE+JxWkGMjC/Wmr8bBkQ/y6w?= =?us-ascii?Q?oorXSE4o3qtoc7yM12eODy7mEQzjb5aYFR+4XbkLtAAMal3Rs0M7mXfhoSb6?= =?us-ascii?Q?zJ4u0V8aq5XoidXCjP9qwKM2qPvaSHvs1Yk14tV0jgvzx+wjoHlAFjlYjRKd?= =?us-ascii?Q?fuu7PWCUi8RZaR4opwh+sP3SQr3CLBGLNomxL+SuCtGlxcauYK/Xv44TyvCB?= =?us-ascii?Q?Yghx/rVbbNWcD4xU4BX7QlqVsC6DFNSbwkgBgB/v+5dCOvxOM2bpAcOfnm6G?= =?us-ascii?Q?qYF0tmQC+B2C7OSVahHfLbbx5QpD51J5CZp+Rd2VOSDMJGh4Al02sofW9jQG?= =?us-ascii?Q?Jugs1ISOkXd4vqeZCktocXD1NCpQQMq5Bqs6ENPjh7M9lzd+Pxx9B38XSb4Z?= =?us-ascii?Q?aQmJkmNNVTiUDzd/Q2tUcJOK/BFQUS7XeWAlH4NFUDvdO1djAQM1TSXcOggQ?= =?us-ascii?Q?K692HlMQ1nclDd+RqIPhV/AfO5aRl4hJJxxwmmyODC8R8xTfzbBr8xB3jIS9?= =?us-ascii?Q?Rw29qZik72Ql1C/+OnQzACp+fjzDQ0BldYsG1h5FzeXzVoqEdPhCHjcvMSUf?= =?us-ascii?Q?2cnW2U77nFjGk8vdf3fUHOCd86J07ofR04YUUQbNs2oVAxgt0N72c7JgwX/o?= =?us-ascii?Q?HsYd8Dqq44bbkUG3eELL83l+xDhLd/g+jxJTXMvPaBeHJpybym1jYnagaQQd?= =?us-ascii?Q?0KGbm1ExZTHsDcl7XUPWEDy3iN1UfLBjvZ6yJZL5RdJ/JH2Yy2vVRXHCmv/i?= =?us-ascii?Q?QHWB9zm2+6sPGiMMTpKtOBlIkq7c1QG4vRsADgT6QsQ29SrQhwkeQ70ZAqhK?= =?us-ascii?Q?f779NeYvLZ013I1zYFbDkgI5eBTxbPiQVeHvIlqTCAt0c6aYwyGf9cpMo/dR?= =?us-ascii?Q?PknVusFjS1Dg/VuLWajORqJZSEWS47hJCIlUe6oFPXyodIZZmVRN9CzM11tI?= =?us-ascii?Q?h+QviOqujidg7ja1xYf5FVrRBQSqwTJZlmRgEHxq?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: IqMu0f08+/JH0qKjnNJdZ1WVi5H9Pq7H6fbhIcjpz2QbGlGXYX2eK+rU4IwGddYp8hc5OR3Fct22880GAu3gqrbnQtQXBryjjcMHg4Xdlnd7mIR+dbbtVrKfpvUw57kCEwI8zZpfQ0BeLU+xBEl6mArvUhbUyprAnwB8tRpfI+z9IaFN7ymkmePC0LF4T7WmaznVGTnw7Q3aMP8yZBY817Hq6d447k3qq0ZGYupqNdDdR1v77VRfXcKsUzFynyahIVqxcQeuR/yUrSneTcfZQaSkfncsN2HL2QgPzEitXogmqX+fEWsZ3qac21Uw4Mm+BKdM/UuAdHYmzQup6BshkA2a+XoiS+vkfWjoL/oRQGKf6wmg744S9B3BuZqVCWcR9Sz61pooOhkVXYQzKNRVHddLkXyhxytDOQ9HLQYPEM8Y76UPGQWLwpbVvtGLHKDU/Cnycgie6zSSq5WO8n1vx+EUG3e6Jv0wmRRPM3X4ualwPVZIX3k2MJ/qFfQpEz/TwNodVZpBBcN3iZ0w69jA7vh3rLb7nltcPMdxONpNpytYNZ14BvgUX+1ErXWpYfaMqE/ZJx47WFZW4EdNBmy7dmoIp4Ic/ST/l5VutS+GllbSwA5HbgeS4REPpknoIK7/Dh7TNYLvjufR49lgLnm/ieXm75S8nkO0lX/A0IhQDei/WOte6Z6CpQPY9JuYmshlUrTZcY5un/P6+wxX+Gm0YtgV6ovgGogSBwsRBOIiAqyyla18nIyqgLM8PvuTfUXqt/sP8XbcQm922fbdsA9o22savFUhN1Ifxrl4w3STt92nMAikA0zSNXsLm8W2Um4m X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9de0ce7-5900-47bf-507b-08dafe4f18e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2023 21:08:09.9389 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EGSP5lGHTPqRh1gkC610/NpUjOeZ2r8RMlaRFErAuRefxrYJhC4pLgFj4H5kgV7wBbtoI3lBAMza3m6uqij24A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB7121 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-24_15,2023-01-24_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301240195 X-Proofpoint-GUID: hQ7Iee5gZMB2jMedbViYMWR2AHTu2RZh X-Proofpoint-ORIG-GUID: hQ7Iee5gZMB2jMedbViYMWR2AHTu2RZh X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61043 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > There's a comment font lock rule in `json-ts-mode'. However, that is > illegal and againt the JSON spec, and indeed the search query fails > because `comment' is not a valid node type. Caveat: Not following this thread, ignorant of tree sitter, and probably ignorant of the use- case context. JSON syntax per its spec(s) is one thing. JSON out there in the wild is something else. There are zillions of JSON documents that aren't well-formed per the specs. And lots of apps that create and use such data. As a result, in the real world, tools that we expect to be useful for working with real data need to be _able_ (optionally) to handle at least the more common such deviations from what the specs prescribe. One way to do that is to have a variable/mode that controls the kind(s) of well-formedness you want to enforce. E.g., have two modes: lax and strict. Or let functions dealing with data have an optional arg that specifies the syntax (lax or strict) to enforce. And of course, we'd want to document just what "lax" mode means: what syntax departures from the specs our lax syntax tolerates. A lax syntax, for example, often reflects the JavaScript syntax for object fields; boolean and null values aren't case-sensitive; and it's more permissive with respect to numerals, whitespace, and escaping of Unicode characters than what the JSON specs require. E.g., in JavaScript notation, a field name in an object literal can be, but need not be, in double quotation marks. And alternatively it can be in single quotation marks. Other things often allowed: * An extra comma (,) after the last element of an array or the last member of an object (e.g., [a, b, c,], {a:b, c:d,}). * Numerals with leading zeros (e.g., 0042.3). * Fractional numerals that lack 0 before the decimal point (e.g., .14 instead of 0.14). * Numerals with no fractional part after the decimal point (e.g., 342. or 1.e27). * A plus sign (+) preceding a numeral, meaning that the number is non-negative (e.g., +1.3). * Treating all ASCII control chars, and the ASCII space character, as (insignificant) whitespace chars. Lax-syntax JSON data is everywhere. It's good to have tools that enforce the strict syntax of the standards, but it's also good to have tools that tolerate real-world, loosey-goosey JSON. HTH.
bug-gnu-emacs@HIDDEN
:bug#61043
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 24 Jan 2023 20:09:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 24 15:09:54 2023 Received: from localhost ([127.0.0.1]:57699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pKPc9-000351-RC for submit <at> debbugs.gnu.org; Tue, 24 Jan 2023 15:09:54 -0500 Received: from lists.gnu.org ([209.51.188.17]:50644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mickey@HIDDEN>) id 1pKPc8-00034u-Cw for submit <at> debbugs.gnu.org; Tue, 24 Jan 2023 15:09:52 -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 <mickey@HIDDEN>) id 1pKPc7-0001J8-TU for bug-gnu-emacs@HIDDEN; Tue, 24 Jan 2023 15:09:52 -0500 Received: from mail-cwlgbr01on2108.outbound.protection.outlook.com ([40.107.11.108] 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 <mickey@HIDDEN>) id 1pKPc5-00047S-TF for bug-gnu-emacs@HIDDEN; Tue, 24 Jan 2023 15:09:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nhtfRSeGYgyrGIjOrcn0UiaON5fXbd9ahtITW3Q+UmHgbDBPYp6OkMlPlKqHR8oRxmlcS2vwTeA0+bAHrbt7ewJX6EhQx7UUgEDTsVYsJaJbQ1aYcTHxw89vSYNOuLmTmTfCop4O1dF4Z+7Knsodf/4OMN3uBb1+xyk8sJ6t0jGJPlF9iuGYWM8F9Fy4H1X/WwVGfTBb6VnZrcpHEHw2z6m8TONc7AqC/8H2xMr8SvlBk483AGk2FDrBJtKDJYzQt9RsT/2RQAcoDkTQY2b0ZLFmR1rDrSo4/Aybjix86dPIG8jGYIISlVHwJt/U+r230aJEvnbhZxnZFIdPhksVyQ== 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=yx3hlPNEOSvDQMJiyzHg9YNivpePa/zZY+JeoIvOC44=; b=YJb5XgP/ygtClVKW1AW8ZN9EvmGoRedGpdTO3XCfjMG++lpk6hlebcvfMCHXspGALBNMPaJLcy9PZQmS35EgnVYlVcxtboL0yVhsWpGpWfLwPAeDpXyRKpgPfNZ1dYvuXaWWS7P0PeqXwmp5ghENjf169JIuSh2kTJcyKJaGNWtUXqbm+wZA/T6ikJF8lRCsJJhyKviVyZHliqviOB0BbFJxnsNuyNTvvNM5Lbkk0tvqcHEkYQZoJBVnyefC6lqtwVexnnkCczIU+lk1L4UFYPYAD2OiQFJLLH8PL1Dil1cQeTroF9ZsRsg1eZoBVTZuapOsPI3WSEBGZDcPKeaYOA== 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=yx3hlPNEOSvDQMJiyzHg9YNivpePa/zZY+JeoIvOC44=; b=GtdPm1JFL2RH391RKdWk4i46JUkg1kyAOAs9GB3eJzT1hbV6bktvprCOL67UuTpBzFss4VDJ1AtufaxEjIf5Q33lcP064AsGzvXsacjsjImblXpUnDgkNAFD7eMpokhc0hLUuflS/Z3/Xg+kNAmxDGM80zc9cEVdaO8R1GboTV0= Received: from CWLP123CA0207.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:19d::9) by LO0P265MB7287.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:30d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Tue, 24 Jan 2023 20:09:46 +0000 Received: from CWLGBR01FT033.eop-gbr01.prod.protection.outlook.com (2603:10a6:400:19d:cafe::be) by CWLP123CA0207.outlook.office365.com (2603:10a6:400:19d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33 via Frontend Transport; Tue, 24 Jan 2023 20:09:46 +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 CWLGBR01FT033.mail.protection.outlook.com (10.152.40.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.16 via Frontend Transport; Tue, 24 Jan 2023 20:09:46 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id 17C8A114002; Tue, 24 Jan 2023 20:09:46 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1674590986; bh=yx3hlPNEOSvDQMJiyzHg9YNivpePa/zZY+JeoIvOC44=; h=From:To:Subject:Date:From; b=J3DLJrsNVS6dADBUVc5n5hGp3Vf7YnHFSmuytqWNldWEKKoeUQDJPPzZktR3QCCkO GsDbq1ws+eyJ8bZNPM6gvx99VEswPHUVLdU+ZAExgi9clthmd65MRbZ7TlDBT+ea1F qcWWEdV1nGdeG6iXiyG5evv+YgLcug63yiGKODqs= 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 <mickey@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 30.0.50; `json-ts-mode': invalid font lock rule Date: Tue, 24 Jan 2023 20:09:40 +0000 Message-ID: <87lelrwv7f.fsf@HIDDEN> Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CWLGBR01FT033:EE_|LO0P265MB7287:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: c200836a-7d22-4f6c-0948-08dafe46f0ab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fWB6FwY9JNEnuCL9b9ZyoyLI+dTjRuV3RUqziJINq/0p4NkMsnIrX3WR0kDvCKh5MgTGdAl5Gi8We54TrNIWN7A5CwoQ6diOl88wFyy9l6tUgaOnbcgKdiSbXuPVOTRJjZ/Dt4lvT/+iqg6vBth9n9bbzhiE6yuEv09c6fFBXIpllXZzWlr8nviVW2w5BFg5ipJsgwKWz1hoaaAmYN3bkegBuKgGtPndDLSGCHvxsYveDRGeoihmuwybWrIWhUTjKNfMTrYJnVcC4jBQcFBK+lHB6NQyD0pZntHz69yLrqR4WZTp0J0tUjpG+96cIjDDZlhxen0YpiDrM8+QhWWNYgeS1wbY1vi1MwgaTY191WEmIPySIotJ+raNeddwGcx+94kw6HA4rHcz3UhsqOVig0jrUtov9X6uyQaKpZVMktHmQH09Zc0mqW5A9NyVNKPY/QCFjKwVSWcK62ygDPZiV6oIMSZBDbYDekCjAIEkKU6FNcojrR0NfQS3gKCbwdB7+KbIM2//DbWPDekh9g2z4G3S/UvgylSb0KgUaEy4Xvc/3mQVH1IEj04Z4eAhkfOCOsIaHJMlNqaui7BbGxqGaHH6/R7lZSr27dtrtsQNc9ShLWyQiq3TuIkTuBfgXtjHzhzF2KCztByTy0ND00UxcAiihvDZs8fwBq37fErD11p6fxWVVxp0pa9bp7lCVChj9Tlgwb5Hq4wkYiQitztqNUf42D4tEEz3nLB1xOoEMEQ3rAs8A+HXwAboOg00LNw5creBLsH15O0+bAeFlluHHQ== 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)(346002)(376002)(39830400003)(136003)(396003)(451199018)(36840700001)(46966006)(356005)(36860700001)(4744005)(316002)(2616005)(6266002)(47076005)(2906002)(70206006)(336012)(42186006)(6666004)(86362001)(7596003)(70586007)(478600001)(36756003)(6916009)(8936002)(5660300002)(83380400001)(41300700001)(82310400005)(40480700001)(8676002)(26005)(186003)(7636003)(38230200001)(81973001)(79816003)(14776008); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2023 20:09:46.4784 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c200836a-7d22-4f6c-0948-08dafe46f0ab 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: CWLGBR01FT033.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO0P265MB7287 Received-SPF: pass client-ip=40.107.11.108; envelope-from=mickey@HIDDEN; 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) There's a comment font lock rule in `json-ts-mode'. However, that is illegal and againt the JSON spec, and indeed the search query fails because `comment' is not a valid node type. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-01-17 built on mickey-work Repository revision: bb383a54910c3094e5d228e0af62bf70e36203ca 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
Mickey Petersen <mickey@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#61043
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.