Improving RDF support in pygments syntax highlighter

25 views
Skip to first unread message

elf Pavlik

unread,
Nov 2, 2020, 6:05:43 PM11/2/20
to rdflib-dev

Hello,

I came across bug in pygments highlighting of Turtle. I don't work with python but I managed to put together a PR which hopefully will fix that issue: https://github.com/pygments/pygments/pull/1590

Pygments has lexers for SPARQL, Turtle and ShExC. They have quite a bit of duplication and Turtle appears to be written before other two.

I just wanted give shout out to RDFlib community to see if someone would be interested in improving RDF support in pygments. It is used by https://tabatkins.github.io/bikeshed/ and growing number of W3C groups uses it for drafting specs and notes.

Cheers!

Nicholas Car

unread,
Dec 27, 2020, 8:37:39 PM12/27/20
to rdfli...@googlegroups.com
Hi elf,

Thanks for identifying and fixing that Pygments bug. I'm aware of the other two lexers for SPARQL & ShEx (at least the ShEx one was written by Harold Solbrig who is on this list I think). 

What do you suggest we could do to "improve RDF support in pygments"? Are you after someone from RDFlib to check syntax highlighting created by the Turtle and other lexers or are you after downstream use of Pygments within RDFlib?

Cheers,

Nick

--
http://github.com/RDFLib
---
You received this message because you are subscribed to the Google Groups "rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdflib-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/c9c860d8-e785-4d89-8513-05ce5c141296n%40googlegroups.com.


--

______________________________________________________________________________________
kind regards
Dr Nicholas Car
Data Systems Architect at SURROUND Australia Pty Ltd
Address  Level 9, Nishi Building,
                  2 Phillip Law Street
                  New Acton Canberra 2601
Phone     +61 477 560 177 
Email       nichol...@surroundaustralia.comWebsite   https://www.surroundaustralia.com

Enhancing Intelligence Within Organisations

delivering evidence that connects decisions to outcomes


Australian-National-University-Logo-1 – ANU Centre for Water and Landscape  Dynamics

Dr Nicholas Car
Adj. Senior Lecturer

Research School of Computer Science

The Australian National University
Canberra ACT Australia

 

 https://orcid.org/0000-0002-8742-7730

https://cs.anu.edu.au/people/nicholas-car 

Reply all
Reply to author
Forward
0 new messages