From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28400 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: christophe dervieux Newsgroups: gmane.text.pandoc Subject: How improve syntax highlighter parsing for new operators ? Date: Thu, 20 May 2021 05:29:18 -0700 (PDT) Message-ID: <63c327e2-daff-4e59-bb7f-e194f98dfd81n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_448_145970059.1621513758640" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12565"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDDJDKUZ7QORBH5MTGCQMGQEA462UTA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 20 14:29:22 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ljhnm-000347-7A for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 20 May 2021 14:29:22 +0200 Original-Received: by mail-ot1-f58.google.com with SMTP id f16-20020a0568301c30b0290332c8d61b47sf2965827ote.19 for ; Thu, 20 May 2021 05:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=H4UwdinB02BvxxuJbjELr1895ejGzLtAMWQeLxnHEDs=; b=XuAF3RCAzdNqQDq7vfkTBtSRHAZu7w6dTYgwC4h2YI+ZC7TPj7gemhPWaPjQOMCshc /UOnZ0MK8E/cgCRT4pJg+laqe6/NRiZ1pWBK68G3MehFyN9T6GITlcl74Gi4ehJ4na6o D3miW0sjZxYUl4pmzTWrCbM7Njv5VAVXlsdYwVyWyQOxMUYnWzRjAdB6eDMx77unww+4 PW68RwloKB/O+TPSE8TGY61SYuf5iZliHbFCLsUVuXkkfhmbXoVPbhLjtsVjdOGizrvT uADGxSEa5q8NNmbNyX6MNiM29hVuSsgNLOq9Ut53dliBi227NS3Wk3He7RSG0X4ZTmtb PcPg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=H4UwdinB02BvxxuJbjELr1895ejGzLtAMWQeLxnHEDs=; b=mFXAMPGdHSAGPF3wo7oRak9m9qCNvkwLEJBpeHI1iSf9AwemNa6qv6l3EjbVoRw6CP v+Zkto2SPktSNND7Nwo2QKq37bA3aSK47AIgM50Hk1hm3V9oUc/l2PHWKYti8zovNdSu JO7ulorQo/mmRek3HFKTdfsLGkE6p0dQ5M9Aw7pvHLjVC6I/MWQ3/AI0hAyeEJGpfniS xAODYwqIPsx5WgKkTxfb0xWNiJ5JetG8zt61htP/vggCc5ZK4zeeArz2O4I0r07qNBEU /cHwkEC5Z/1O17eYyeNnS6FdoFOdQnEauQifAaUlGpl3KLwQlrcaDYJwZnqcaqqUgQ+a H4sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=H4UwdinB02BvxxuJbjELr1895ejGzLtAMWQeLxnHEDs=; b=D+Es2wDLy3tkVmI6JQ0fMqzQgixmTsSkykWHrfBn7TlB9p6jLSjyJztfVh23IKwSBN Gf1TVflByS41/GuvtqUewrdL93htrUNO6d3IDxRcIWcsK11LfTD+p/D2nVuyyZwzuShx HDNR1m7E53ah/SA/DMaob37de0CB6J/0aLXEEKHRav+irywmTa4gO7N5ZOq2EqbVeakU cLZVFtFYvXYdf6+UtGYib4i0oz8t2ayR8H19LKfhnjy3KMW62W8I2WpKAQAs1I6/fcB9 hdIcr6HdAHFW0n+HLSy3P85LBrLAC/7GXhYpuCMgP73Aa4lD9w4M9iNRMAqENNu9rN+R acqg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532Dy+hCaT47JDLr8xfQ32hHfZ+dGwj+nYeQn15m/kBC1IBtiJ3L nG2ntPsK/02KTv+akxXvDvc= X-Google-Smtp-Source: ABdhPJwAs6lVeun0dwZZrChqEl6rgQjd/6JkG9okSNnu1/VwaVwxvoUQRaIu8z/PY0jMaGj3kQfTCQ== X-Received: by 2002:a9d:630e:: with SMTP id q14mr3641130otk.69.1621513761278; Thu, 20 May 2021 05:29:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:68ca:: with SMTP id i10ls841656oto.8.gmail; Thu, 20 May 2021 05:29:19 -0700 (PDT) X-Received: by 2002:a05:6830:1d64:: with SMTP id l4mr3536000oti.95.1621513759382; Thu, 20 May 2021 05:29:19 -0700 (PDT) X-Original-Sender: christophe.dervieux-Re5JQEeQqe8AvxtiuMwx3w@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:28400 Archived-At: ------=_Part_448_145970059.1621513758640 Content-Type: multipart/alternative; boundary="----=_Part_449_113519081.1621513758640" ------=_Part_449_113519081.1621513758640 Content-Type: text/plain; charset="UTF-8" Hi, 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 ? 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 ? Thanks for your help and advices. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/63c327e2-daff-4e59-bb7f-e194f98dfd81n%40googlegroups.com. ------=_Part_449_113519081.1621513758640 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, 

I wanted to make sure on where to report or lo= ok at in order to improve the Pandoc block highlighting. 

Recen= t version of R has added new operators. These are not recognized correctly = when Pandoc is doing the highlighting. For example `|>` this is now a si= ngle operator and not 2 tokens - Pandoc highlights the latter and set two d= ifferent classes, one for each token leading to two differents colors. = ;

I understand that Pandoc highlighting mechanism lives in http= s://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 ?&nb= sp;

If I want to report an improvment request, or = get help to make the improvement, should I go in skylighting or upstream an= d Pandoc will get the update later on ? 

Than= ks for your help and advices.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/63c327e2-daff-4e59-bb7f-e194f98dfd81n%40googlegroups.= com.
------=_Part_449_113519081.1621513758640-- ------=_Part_448_145970059.1621513758640--