Skip to content

testing turtle prefix names where reference starts with number#1590

Merged
Anteru merged 4 commits intopygments:masterfrom
elf-pavlik:turtle-prefixed-name
Dec 5, 2020
Merged

testing turtle prefix names where reference starts with number#1590
Anteru merged 4 commits intopygments:masterfrom
elf-pavlik:turtle-prefixed-name

Conversation

@elf-pavlik
Copy link
Contributor

closes #1553

I don't work with python myself but I hope changes here are reasonable. ShExC lexer handles prefixed names where part after : starts with number correctly. This change should only copy that part of ShExC lexer to Turtle lexer.

@Anteru
Copy link
Collaborator

Anteru commented Nov 2, 2020

Thanks for the contribution! Can you please take a look at the regexlint failures? It looks like some of your expression can be simplified.

@Anteru Anteru added this to the 2.7.3 milestone Nov 2, 2020
@elf-pavlik
Copy link
Contributor Author

I did my best trying to align Turtle lexer with SPARQL and ShExC, not the other way. I also posted on RDFlib mailing list if some python developer familiar with RDF would consider helping with those RDF lexers: https://groups.google.com/g/rdflib-dev/c/hSGFT9jV61k

In my last commit I needed to fix example.ttl which wasn't valid turtle. Now it passes validation with http://ttl.summerofcode.be/

@elf-pavlik
Copy link
Contributor Author

Please let me know if there's anything else I should do in this PR.

@Anteru Anteru merged commit 95935cc into pygments:master Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

turtle CURIE highlight differs if reference starts with number

2 participants