diff options
| author | Georg Brandl <georg@python.org> | 2021-01-18 21:24:00 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2021-01-18 22:08:36 +0100 |
| commit | 2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch) | |
| tree | 809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/shexc | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/shexc')
| -rw-r--r-- | tests/lexers/shexc/example.txt | 177 |
1 files changed, 177 insertions, 0 deletions
diff --git a/tests/lexers/shexc/example.txt b/tests/lexers/shexc/example.txt new file mode 100644 index 00000000..e490212a --- /dev/null +++ b/tests/lexers/shexc/example.txt @@ -0,0 +1,177 @@ +---input--- +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX schema: <http://schema.org/> +PREFIX skos: <http://www.w3.org/2004/02/skos/core#> +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> +PREFIX ex: <http://pygments.example/#> + +ex:Lexer { + rdfs:label xsd:string; + skos:altLabel xsd:string*; + ex:filenames xsd:string+; + ex:mimetypes xsd:string+; + ex:priority xsd:decimal MinInclusive 0.0 MaxExclusive 1.0; # seems to be the de facto range of currently defined priorities + ex:lexes @ex:Language*; +} + +ex:Language { + schema:description rdf:langString*; + schema:url IRI?; +} + +---tokens--- +'PREFIX' Keyword +' ' Text +'rdf' Name.Namespace +':' Punctuation +' ' Text +'<http://www.w3.org/1999/02/22-rdf-syntax-ns#>' Name.Label +'\n' Text + +'PREFIX' Keyword +' ' Text +'rdfs' Name.Namespace +':' Punctuation +' ' Text +'<http://www.w3.org/2000/01/rdf-schema#>' Name.Label +'\n' Text + +'PREFIX' Keyword +' ' Text +'schema' Name.Namespace +':' Punctuation +' ' Text +'<http://schema.org/>' Name.Label +'\n' Text + +'PREFIX' Keyword +' ' Text +'skos' Name.Namespace +':' Punctuation +' ' Text +'<http://www.w3.org/2004/02/skos/core#>' Name.Label +'\n' Text + +'PREFIX' Keyword +' ' Text +'xsd' Name.Namespace +':' Punctuation +' ' Text +'<http://www.w3.org/2001/XMLSchema#>' Name.Label +'\n' Text + +'PREFIX' Keyword +' ' Text +'ex' Name.Namespace +':' Punctuation +' ' Text +'<http://pygments.example/#>' Name.Label +'\n\n' Text + +'ex' Name.Namespace +':' Punctuation +'Lexer' Name.Tag +' ' Text +'{' Punctuation +'\n ' Text +'rdfs' Name.Namespace +':' Punctuation +'label' Name.Tag +' ' Text +'xsd' Name.Namespace +':' Punctuation +'string' Name.Tag +';' Punctuation +'\n ' Text +'skos' Name.Namespace +':' Punctuation +'altLabel' Name.Tag +' ' Text +'xsd' Name.Namespace +':' Punctuation +'string' Name.Tag +'*' Operator +';' Punctuation +'\n ' Text +'ex' Name.Namespace +':' Punctuation +'filenames' Name.Tag +' ' Text +'xsd' Name.Namespace +':' Punctuation +'string' Name.Tag +'+' Operator +';' Punctuation +'\n ' Text +'ex' Name.Namespace +':' Punctuation +'mimetypes' Name.Tag +' ' Text +'xsd' Name.Namespace +':' Punctuation +'string' Name.Tag +'+' Operator +';' Punctuation +'\n ' Text +'ex' Name.Namespace +':' Punctuation +'priority' Name.Tag +' ' Text +'xsd' Name.Namespace +':' Punctuation +'decimal' Name.Tag +' ' Text +'MinInclusive' Keyword +' ' Text +'0.0' Literal.Number.Float +' ' Text +'MaxExclusive' Keyword +' ' Text +'1.0' Literal.Number.Float +';' Punctuation +' ' Text +'# seems to be the de facto range of currently defined priorities' Comment +'\n ' Text +'ex' Name.Namespace +':' Punctuation +'lexes' Name.Tag +' ' Text +'@' Operator +'ex' Name.Namespace +':' Punctuation +'Language' Name.Tag +'*' Operator +';' Punctuation +'\n' Text + +'}' Punctuation +'\n\n' Text + +'ex' Name.Namespace +':' Punctuation +'Language' Name.Tag +' ' Text +'{' Punctuation +'\n ' Text +'schema' Name.Namespace +':' Punctuation +'description' Name.Tag +' ' Text +'rdf' Name.Namespace +':' Punctuation +'langString' Name.Tag +'*' Operator +';' Punctuation +'\n ' Text +'schema' Name.Namespace +':' Punctuation +'url' Name.Tag +' ' Text +'IRI' Keyword +'?' Operator +';' Punctuation +'\n' Text + +'}' Punctuation +'\n' Text |
