From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28401 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: How improve syntax highlighter parsing for new operators ? Date: Thu, 20 May 2021 14:49:18 +0200 Message-ID: <87o8d5y3ht.fsf@zeitkraut.de> References: <63c327e2-daff-4e59-bb7f-e194f98dfd81n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13815"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRB6VWTGCQMGQEYYRJ3KQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 20 14:52:12 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f56.google.com ([209.85.221.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lji9s-0003R3-43 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 20 May 2021 14:52:12 +0200 Original-Received: by mail-wr1-f56.google.com with SMTP id v5-20020adf9e450000b029010e708f05b3sf8615891wre.6 for ; Thu, 20 May 2021 05:52:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621515131; cv=pass; d=google.com; s=arc-20160816; b=rgTnOiKIN08sX2c5BCdLzqpfT4cyfCkrSPSaC788OK9cHFczni6NLbCWR0dCvro8Xv 5PLMpt20PXM0sQaiWzMRyWLJsH+hv3POl1niFoRG1Pj9eQCVLbJeqOE69hrO0qHZZvkv QDJcjr0TDxieVMm0eCs/XobfHEjjz1rMoucuDyHafD1r2Vp8ErGMIw6DB+L5bxl2+dLo ZO4XKZn3yot95C6tt4oPXM8Y380kW3EmLoRer5cSlz0SzOYhE3HGyvoyPvt35V6eBaJg gaYohZF3l3FqzZvMhh+0+INYoKv5OaduSCriiYzdazDMlup9gAJeJfEhpX+lK9w73Jw8 AKPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:in-reply-to :message-id:date:subject:to:from:references:sender:dkim-signature; bh=RqGsQ0B4BgW0V93RA8L6Cs6BvtPDNvHoeU3xvY/xQQs=; b=EgTYSI/EB57xJoQTjSeg4mrQgXu5njoxXQfU7DYP68RIpHkU8lF3DZavB+CGylTzXl Wv4pfN9jaWZ8Zl9gjIgb0whkRbWQqOiPtR4xBB4CQpxNyzeCij5nIQvFM8ZC5D8dDNw0 X6g4ra4Ai5utz/gR3i9IAjaxNhhfoctMhS4ntcXjk9LlcbZ72YbfRmRmC6F/SCHbnVkD G+lkkfbPj53eYVb6ylxH/Z08z2SjxYk7Q8zXSMnILO7p0aa8bpwMdsD0EBBAjZDqltv+ SjZ+KRUTWv722F0bntAYykfOXmLgnIjC1Pp6Kz95b3687x6OQBa0eeiZatkUE6AuLhUc O31Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:references:from:to:subject:date:message-id:in-reply-to :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=RqGsQ0B4BgW0V93RA8L6Cs6BvtPDNvHoeU3xvY/xQQs=; b=f+uJiAHpm6YPwg8druzMmr/KZDlTT7W36QaGDIX3QbBP/TrrfPGHc5cfRzscF7htg9 2G773EfxaeASwApky8O9fk5bZcWK0KFrF2HDkgbso5l+iOJ/1lbVO/q1h1aqGKBdz5y5 YEldIPSIQ9KLlGoFNvc6OYMo6apoXciLHwM/txOiYx5o95EnRdLHFn7BZ5o8KmRoHSKJ q51xft4xaptRnyID6xUtyni6q05rl+gs6vz4g4Q/zuOwKYfS6FcbSKJE1cVEh/jFwRBe P4cGLSEWfhEJedCM6a+/v38ymA3LqCcjMkcA81S8R8M5kEfcZAbj6tyaITqHh7vSsa40 ds9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:references:from:to:subject:date :message-id:in-reply-to:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=RqGsQ0B4BgW0V93RA8L6Cs6BvtPDNvHoeU3xvY/xQQs=; b=AxQbuEchItN3QMgT6Kqc0akfv6IjHco6vsvelmiKVRtyDOvvv6cchTIJDxjVA0Gu2l eycPfEJxI3essf2SSo1Cj7FMgHLjrlaI1W0gAr9t5bSowfBdoVSs8e1VE8YKEAyCXMyn XWi8l7WeneefvZZqr7P2kxdSYRpHkxwBVlC5YyBRoziTigxW9nukTX4LlOjivFxMwQob bdZ5dIGaKRyS/Todzr6/eondvTCxWXbSDA4/AB/0dlSwWMbcHl3hBtZXUJsXcmIVfLnE rISrkAyJpOGDPdIeQmasqF7BU/zC2EXO+HSa0W/+qCjBoLsm7814GVuWZwTfwWijdAg1 HMRw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532CI9hH2uFbKw1pJbTYFgpVJriuSTZwoeBYo9ZFBY+PikKn1Rec hfmOBjDUbplKYIaOVs7Uvbo= X-Google-Smtp-Source: ABdhPJzBITicapRnqP0QZ2Ku19QDQJXleM2/17qYoy05z7Iw/eNBaey2y6mNhdU+GHYu8YSTmOaugw== X-Received: by 2002:adf:e991:: with SMTP id h17mr4091286wrm.265.1621515131852; Thu, 20 May 2021 05:52:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:2a8:: with SMTP id l8ls232326wry.1.gmail; Thu, 20 May 2021 05:52:09 -0700 (PDT) X-Received: by 2002:adf:9069:: with SMTP id h96mr4101372wrh.322.1621515129365; Thu, 20 May 2021 05:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621515129; cv=none; d=google.com; s=arc-20160816; b=pH6bHfMWBHp9Ghg7HFIkylZAhsACG1DmUSdKq+NmEhdlL/ssBq+Krnw+JSd1IPbyQH c3RuGKl9ILYF/5IgmiSZlZV3TA4ubyWSsNf/7SzSCXNTkkKdgYnb4V9vO5eDf8qs8KQT s980d879v/WZ9fRGNQ2pD3n6l0sN/WSQalQirqBh9WwiHlWF49N/5myibhf3ksPewtbr p2gEtAgDtwlGozoiGxSIrnXQC8leb6gNW1h9V2TFEZV+8VJafQrzAOY1GHFRxFYURBZh 78o+hpHhpscv4Gvh9HkpKcyRTLXVnTJhJq4NIFGyYyQ4538nMKNNXsWzYnOhjcZdaO97 7VYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:in-reply-to:message-id:date:subject:to:from:references; bh=zCNylt5HUxFDWRcWTquXy/BKeZHMipT6+FTpkR4evXU=; b=cnhPLXDYkorwxMpQC/E4+XecdsYdH4gFddyBqIKgLrKQ/Xot97WOxpsRyziLI50me5 wppFslSZoWKDpzLiygDH69ZO95cH6UV6hXh5spf9SJCki2I0EYoZ3u4pkn3y3THLHqrp i5S38ClqeUDOwmDeQjICssikh1eebLx4HtQeiu/Q+eoC7tAkfMMMxNFGknx4cVHa7Oqn rn0Vdt8QoFiucuP57Gi/oEG6AB+l3rQBRhgl8rIizGClaFqxs6cxoQa4L+3ah8Jn97gB MSIxlUdgWNZiTdojTaQpXCCTkJ/WE/Y4KQmRJIaQmhusnY/z7kOEV7GIAsjVlBQR0+12 x/Sg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org. [80.241.56.172]) by gmr-mx.google.com with ESMTPS id k10si76998wmf.1.2021.05.20.05.52.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 05:52:09 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) client-ip=80.241.56.172; Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4Fm8lD40LYzQjmg for ; Thu, 20 May 2021 14:52:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id I6h7xPJrVW25 for ; Thu, 20 May 2021 14:52:02 +0200 (CEST) In-reply-to: <63c327e2-daff-4e59-bb7f-e194f98dfd81n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Rspamd-Score: -0.18 / 15.00 / 15.00 X-Rspamd-Queue-Id: 50D7210E X-Rspamd-UID: d58f61 X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28401 Archived-At: Hi Christophe, christophe dervieux writes: > I wanted to make sure on where to report or look at in order to improve the > Pandoc block highlighting. > > Recent version of R has added new operators. These are not recognized > correctly when Pandoc is doing the highlighting. For example `|>` this is > now a single operator and not 2 tokens - Pandoc highlights the latter and > set two different classes, one for each token leading to two differents > colors. > > I understand that Pandoc highlighting mechanism lives > in https://github.com/jgm/skylighting but it seems the definition for > parser lives upstream > in https://invent.kde.org/frameworks/syntax-highlighting. I got that from > the README. > > Is that right ? Yes, that's correct. > If I want to report an improvment request, or get help to make the > improvement, should I go in skylighting or upstream and Pandoc will get the > update later on ? Going upstream first would be best, I think. A possibly interesting point is also that you won't have to wait for skylighting to update, but could ship an updated definition file with R Markdown, then feed it to pandoc via `--syntax-definition`. -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124