turtle.tmbundle icon indicating copy to clipboard operation
turtle.tmbundle copied to clipboard

Keywords are highlighted only if spelled in CAPS

Open laughedelic opened this issue 9 years ago • 1 comments

Github links to this repository regarding SPARQL syntax highlighting (on Github). I see that in files and markdown code snippets on Github (some) SPARQL keywords are highlighted only if they are spelled in CAPS. Compare

prefix taxon:   <http://purl.uniprot.org/taxonomy/>
prefix :        <http://purl.uniprot.org/core/>

select ?ancestor ?name ?rank 
where {

  ?ancestor a :Taxon ;
            :scientificName ?name ;
            :rank ?rank .
  taxon:9597 rdfs:subClassOf ?ancestor .

} order by ?rank

and

PREFIX taxon:   <http://purl.uniprot.org/taxonomy/>
PREFIX :        <http://purl.uniprot.org/core/>

SELECT ?ancestor ?name ?rank 
WHERE {

  ?ancestor a :Taxon ;
            :scientificName ?name ;
            :rank ?rank .
  taxon:9597 rdfs:subClassOf ?ancestor .

} ORDER BY ?rank

or see this file which mixes.

laughedelic avatar Oct 30 '16 20:10 laughedelic

+1

eggplants avatar Jan 03 '22 09:01 eggplants