diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2022-12-11 19:51:01 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2022-12-11 19:51:01 +0100 |
commit | 0fe1d0c7d7c43a86b168bca739c5b04599b91d2e (patch) | |
tree | 7bafe141377688593ffbf930e7a19406a96d4792 /tests | |
parent | 15b8c091bb74435ce2bd1d59f8d235bdadf6f5fb (diff) | |
download | pygments-git-0fe1d0c7d7c43a86b168bca739c5b04599b91d2e.tar.gz |
Improve whitespace handling in XQueryLexer.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/xquery/test-3.0.xq.output | 122 | ||||
-rw-r--r-- | tests/examplefiles/xquery/test-exist-update.xq.output | 88 | ||||
-rw-r--r-- | tests/examplefiles/xquery/test.xqy.output | 152 |
3 files changed, 181 insertions, 181 deletions
diff --git a/tests/examplefiles/xquery/test-3.0.xq.output b/tests/examplefiles/xquery/test-3.0.xq.output index d373236f..300af915 100644 --- a/tests/examplefiles/xquery/test-3.0.xq.output +++ b/tests/examplefiles/xquery/test-3.0.xq.output @@ -1,5 +1,5 @@ 'xquery' Keyword.Pseudo -' ' Text +' ' Text.Whitespace 'version' Keyword.Pseudo ' ' Text.Whitespace '"3.0"' Literal.String.Double @@ -7,7 +7,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'namespace' Keyword.Declaration ' ' Text.Whitespace 'other' Name.Namespace @@ -19,9 +19,9 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'variable' Keyword.Declaration -' ' Text +' ' Text.Whitespace '$' Name.Variable 'local:straight-var1' Name ' ' Text.Whitespace @@ -32,7 +32,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace '%' Name.Decorator 'private' Name.Decorator ' ' Text @@ -48,7 +48,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace '%' Name.Decorator 'public' Name.Decorator ' ' Text @@ -64,7 +64,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace '%' Name.Decorator 'other:annotation' Name.Decorator '(' Punctuation @@ -86,9 +86,9 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'variable' Keyword.Declaration -' ' Text +' ' Text.Whitespace '$' Name.Variable 'local:straight-var2' Name ' ' Text.Whitespace @@ -104,7 +104,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:word-count' Name.Function @@ -115,12 +115,12 @@ 'as' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation '*' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'xs:integer' Keyword.Type @@ -152,7 +152,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:add' Name.Function @@ -181,7 +181,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:dispatch' Name.Function @@ -192,11 +192,11 @@ 'as' Keyword ' ' Text.Whitespace 'node' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'item' Keyword @@ -215,7 +215,7 @@ 'case' Keyword ' ' Text.Whitespace 'text' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation ' ' Text.Whitespace @@ -227,7 +227,7 @@ 'case' Keyword ' ' Text.Whitespace 'comment' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation ' ' Text.Whitespace @@ -239,7 +239,7 @@ 'case' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation 'bill' Name ')' Punctuation @@ -255,7 +255,7 @@ 'case' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation 'btitle' Name ')' Punctuation @@ -271,7 +271,7 @@ 'case' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation 'section-id' Name ')' Punctuation @@ -287,7 +287,7 @@ 'case' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation 'bill-text' Name ')' Punctuation @@ -303,7 +303,7 @@ 'case' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation 'strike' Name ')' Punctuation @@ -337,7 +337,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:noise' Name.Function @@ -349,7 +349,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'duck' Name ' ' Text.Whitespace @@ -368,14 +368,14 @@ 'return' Keyword '\n\t\t' Text.Whitespace 'switch' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation '$' Name.Variable 'animal' Name ')' Punctuation '\n\t\t\t' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '"Cow"' Literal.String.Double ' ' Text.Whitespace 'return' Keyword @@ -383,7 +383,7 @@ '"Moo"' Literal.String.Double '\n\t\t\t' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace "'Cat'" Literal.String.Single ' ' Text.Whitespace 'return' Keyword @@ -417,7 +417,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:a-to-z' Name.Function @@ -427,14 +427,14 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'data' Name ' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation '*' Punctuation @@ -526,7 +526,7 @@ '{' Punctuation '\n\t\t\t' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'item' Name ' ' Text.Whitespace @@ -600,7 +600,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:plays-by-character' Name.Function @@ -610,7 +610,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'plays' Name ' ' Text.Whitespace @@ -619,7 +619,7 @@ '(' Punctuation '\n\t\t' Text.Whitespace 'document' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '\n\t\t\t' Text.Whitespace '<' Name.Tag @@ -839,7 +839,7 @@ ',' Punctuation '\n\t\t' Text.Whitespace 'document' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '\n\t\t\t' Text.Whitespace '<' Name.Tag @@ -1036,7 +1036,7 @@ 'return' Keyword '\n\n\t\t' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'play' Name ' ' Text.Whitespace @@ -1048,7 +1048,7 @@ 'play' Name.Tag '\n\t\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'title' Name ' ' Text.Whitespace @@ -1060,7 +1060,7 @@ 'title' Name.Tag '\n\t\t' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'character' Name ' ' Text.Whitespace @@ -1132,7 +1132,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -'\n\t' Text +'\n\t' Text.Whitespace '%' Name.Decorator 'other:a' Name.Decorator '\n\t' Text @@ -1170,7 +1170,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'thing' Name ' ' Text.Whitespace @@ -1189,7 +1189,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace '%' Name.Decorator 'public' Name.Decorator ' ' Text @@ -1202,7 +1202,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'nothing' Name ' ' Text.Whitespace @@ -1222,7 +1222,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:ordered' Name.Function @@ -1232,7 +1232,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'hit' Name ' ' Text.Whitespace @@ -1256,7 +1256,7 @@ ']' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'score' Name ' ' Text.Whitespace @@ -1329,7 +1329,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:concat-expr' Name.Function @@ -1341,7 +1341,7 @@ '{' Punctuation '\n\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'concatenated' Name ' ' Text.Whitespace @@ -1371,7 +1371,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:human-units' Name.Function @@ -1383,7 +1383,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'unit' Name ' ' Text.Whitespace @@ -1499,7 +1499,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:merge-simple' Name.Function @@ -1521,7 +1521,7 @@ 'xs:string' Keyword.Type '+' Operator ')' Punctuation -' ' Text +' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'xs:string' Keyword.Type @@ -1549,7 +1549,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:apply' Name.Function @@ -1582,7 +1582,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:apply-all' Name.Function @@ -1619,7 +1619,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:apply-all-long' Name.Function @@ -1633,7 +1633,7 @@ '(' Punctuation 'xs:string' Keyword.Type ')' Punctuation -' ' Text +' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'xs:string' Keyword.Type @@ -1667,7 +1667,7 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:merge' Name.Function @@ -1710,7 +1710,7 @@ 'xs:string' Keyword.Type '+' Operator ')' Punctuation -' ' Text +' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'xs:string' Keyword.Type @@ -1735,7 +1735,7 @@ '\n\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'to-upper' Name ' ' Text.Whitespace @@ -1747,7 +1747,7 @@ '\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'to-upper-long' Name ' ' Text.Whitespace @@ -1757,7 +1757,7 @@ '(' Punctuation 'xs:string' Keyword.Type ')' Punctuation -' ' Text +' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'xs:string' Keyword.Type diff --git a/tests/examplefiles/xquery/test-exist-update.xq.output b/tests/examplefiles/xquery/test-exist-update.xq.output index 76b14694..7faf0c2d 100644 --- a/tests/examplefiles/xquery/test-exist-update.xq.output +++ b/tests/examplefiles/xquery/test-exist-update.xq.output @@ -1,5 +1,5 @@ 'xquery' Keyword.Pseudo -' ' Text +' ' Text.Whitespace 'version' Keyword.Pseudo ' ' Text.Whitespace '"3.0"' Literal.String.Double @@ -7,7 +7,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:add-log-message' Name.Function @@ -19,11 +19,11 @@ ' ' Text.Whitespace 'xs:string' Keyword.Type ')' Punctuation -' ' Text +' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'empty-sequence' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation '?' Punctuation @@ -32,7 +32,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'logfile-collection' Name ' ' Text.Whitespace @@ -41,7 +41,7 @@ '"/db/apps/exist101/log"' Literal.String.Double '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'logfile-name' Name ' ' Text.Whitespace @@ -50,7 +50,7 @@ '"exist101-log.xml"' Literal.String.Double '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'logfile-full' Name ' ' Text.Whitespace @@ -70,7 +70,7 @@ ')' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'logfile-created' Name ' ' Text.Whitespace @@ -109,7 +109,7 @@ 'return' Keyword '\n\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword '\n\t\t\t' Text.Whitespace '<' Name.Tag @@ -149,7 +149,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:insert-attributes' Name.Function @@ -159,14 +159,14 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'elm' Name ' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation ' ' Text.Whitespace @@ -184,7 +184,7 @@ '(' Punctuation '\n\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace '<' Name.Tag @@ -198,11 +198,11 @@ ',' Punctuation '\n\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'x' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -225,11 +225,11 @@ ',' Punctuation '\n\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -258,7 +258,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:insert-elem' Name.Function @@ -268,14 +268,14 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'elm' Name ' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation ' ' Text.Whitespace @@ -291,7 +291,7 @@ 'return' Keyword '\n\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace '<' Name.Tag @@ -321,7 +321,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:insert-elem2' Name.Function @@ -331,14 +331,14 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'elm' Name ' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation ' ' Text.Whitespace @@ -352,14 +352,14 @@ '*' Name.Tag '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'new-element' Name ' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation ' ' Text.Whitespace @@ -384,7 +384,7 @@ 'return' Keyword '\n\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace '$' Name.Variable @@ -401,7 +401,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:insert-single' Name.Function @@ -411,7 +411,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace '<' Name.Tag @@ -457,7 +457,7 @@ '\n\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:trim-insert' Name.Function @@ -467,7 +467,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'document' Name ' ' Text.Whitespace @@ -479,7 +479,7 @@ ')' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'newentry' Name ' ' Text.Whitespace @@ -516,7 +516,7 @@ 'return' Keyword '\n\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'delete' Keyword ' ' Text.Whitespace '$' Name.Variable @@ -554,7 +554,7 @@ 'then' Keyword '\n\t\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace '$' Name.Variable @@ -575,7 +575,7 @@ 'else' Keyword '\n\t\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace '$' Name.Variable @@ -594,7 +594,7 @@ '\n\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:attempt-document-node-insert' Name.Function @@ -610,14 +610,14 @@ ':)' Comment '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'document' Name ' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'document-node' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation ')' Punctuation ' ' Text.Whitespace @@ -636,7 +636,7 @@ 'return' Keyword '\n\t\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace '<' Name.Tag @@ -656,7 +656,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'local:attempt-attr-update-with-node' Name.Function @@ -666,7 +666,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'replace' Keyword ' ' Text.Whitespace 'doc' Name.Function @@ -705,7 +705,7 @@ '\n\n\n' Text.Whitespace '(#' Punctuation -' ' Text +' ' Text.Whitespace 'exist:batch-transaction' Name.Variable ' ' Literal '#)' Punctuation @@ -713,7 +713,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'delete' Keyword ' ' Text.Whitespace '$' Name.Variable @@ -734,7 +734,7 @@ ',' Punctuation '\n\t' Text.Whitespace 'update' Keyword -' ' Text +' ' Text.Whitespace 'insert' Keyword ' ' Text.Whitespace '$' Name.Variable diff --git a/tests/examplefiles/xquery/test.xqy.output b/tests/examplefiles/xquery/test.xqy.output index 859cdf5e..268e6919 100644 --- a/tests/examplefiles/xquery/test.xqy.output +++ b/tests/examplefiles/xquery/test.xqy.output @@ -9,7 +9,7 @@ '\n' Text.Whitespace 'xquery' Keyword.Pseudo -' ' Text +' ' Text.Whitespace 'version' Keyword.Pseudo ' ' Text.Whitespace '"1.0"' Literal.String.Double @@ -17,7 +17,7 @@ '\n\n' Text.Whitespace 'module' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'namespace' Keyword.Declaration ' ' Text.Whitespace 'xqueryexample' Name.Namespace @@ -27,7 +27,7 @@ '\n' Text.Whitespace 'import' Keyword.Pseudo -' ' Text +' ' Text.Whitespace 'module' Keyword.Pseudo ' ' Text.Whitespace 'namespace' Keyword @@ -39,13 +39,13 @@ '"http://example.com/ns/imported"' Literal.String.Double ' ' Text.Whitespace 'at' Keyword -' ' Text +' ' Text.Whitespace '"no/such/file.xqy"' Literal.String.Double ';' Punctuation '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'namespace' Keyword.Declaration ' ' Text.Whitespace 'sess' Name.Namespace @@ -57,9 +57,9 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'variable' Keyword.Declaration -' ' Text +' ' Text.Whitespace '$' Name.Variable 'amazing' Name ' ' Text.Whitespace @@ -70,16 +70,16 @@ '\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'variable' Keyword.Declaration -' ' Text +' ' Text.Whitespace '$' Name.Variable 'SESSIONS' Name ' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'element' Name.Tag -'' Text +'' Text.Whitespace '(' Punctuation 'sess:session' Name ')' Punctuation @@ -94,7 +94,7 @@ '\n\n' Text.Whitespace 'declare' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'option' Keyword.Declaration ' ' Text.Whitespace 'sess:clear' Name.Variable @@ -104,7 +104,7 @@ '\n\n' Text.Whitespace 'define' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration ' ' Text.Whitespace 'whatsit' Name.Function @@ -116,7 +116,7 @@ ' ' Text.Whitespace 'xs:string' Keyword.Type ')' Punctuation -' ' Text +' ' Text.Whitespace 'as' Keyword ' ' Text.Whitespace 'xs:string' Keyword.Type @@ -124,7 +124,7 @@ '{' Punctuation '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'var1' Name ' ' Text.Whitespace @@ -133,7 +133,7 @@ '1' Literal.Number.Integer '\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'var2' Name ' ' Text.Whitespace @@ -164,7 +164,7 @@ ')' Punctuation '\n\n\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'let' Name ' ' Text.Whitespace @@ -190,13 +190,13 @@ ':)' Comment ' ' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'element' Name.Variable ' ' Text.Whitespace '{' Punctuation '\n\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'attribute' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -207,7 +207,7 @@ ',' Punctuation '\n\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'test' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -218,7 +218,7 @@ ',' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'foo' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -268,7 +268,7 @@ '\n\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'bride' Name ' ' Text.Whitespace @@ -278,14 +278,14 @@ '\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'test' Name ' ' Text.Whitespace ':=' Operator ' ' Text.Whitespace 'validate' Keyword -' ' Text +' ' Text.Whitespace 'lax' Keyword ' ' Text.Whitespace '{' Punctuation @@ -305,14 +305,14 @@ '\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'test' Name ' ' Text.Whitespace ':=' Operator ' ' Text.Whitespace 'validate' Keyword -' ' Text +' ' Text.Whitespace 'strict' Keyword ' ' Text.Whitespace '{' Punctuation @@ -332,14 +332,14 @@ '\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'test' Name ' ' Text.Whitespace ':=' Operator ' ' Text.Whitespace 'validate' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation ' ' Text.Whitespace '<' Name.Tag @@ -357,7 +357,7 @@ '\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'test' Name ' ' Text.Whitespace @@ -380,7 +380,7 @@ '\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'test' Name ' ' Text.Whitespace @@ -397,14 +397,14 @@ '\n\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'noop' Name ' ' Text.Whitespace ':=' Operator ' ' Text.Whitespace 'ordered' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation ' ' Text.Whitespace '$' Name.Variable @@ -414,14 +414,14 @@ '\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'noop' Name ' ' Text.Whitespace ':=' Operator ' ' Text.Whitespace 'unordered' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation ' ' Text.Whitespace '$' Name.Variable @@ -431,14 +431,14 @@ '\n\n' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'noop' Name ' ' Text.Whitespace ':=' Operator '\n\t' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'version' Name ' ' Text.Whitespace @@ -455,7 +455,7 @@ 'version' Name.Tag '\n\t\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'row' Name ' ' Text.Whitespace @@ -695,13 +695,13 @@ ':)' Comment '\n\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'div' Name.Variable ' ' Text.Whitespace '{' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'id' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -712,7 +712,7 @@ ',' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'class' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -723,7 +723,7 @@ ',' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'h1' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -734,7 +734,7 @@ ',' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'p' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -746,13 +746,13 @@ ',' Punctuation '\n\t\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Variable ' ' Text.Whitespace '{' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'href' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -782,7 +782,7 @@ '{' Punctuation '\n\t\t\t\t' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'i' Name ' ' Text.Whitespace @@ -792,7 +792,7 @@ 'sessions' Name '\n\t\t\t\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'id' Name ' ' Text.Whitespace @@ -805,7 +805,7 @@ ')' Punctuation '\n\t\t\t\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'uri' Name ' ' Text.Whitespace @@ -822,7 +822,7 @@ ':)' Comment '\n\t\t\t\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'conflicting' Name ' ' Text.Whitespace @@ -838,7 +838,7 @@ ')' Punctuation '\n\t\t\t\t' Text.Whitespace 'let' Keyword -' ' Text +' ' Text.Whitespace '$' Name.Variable 'name' Name ' ' Text.Whitespace @@ -864,13 +864,13 @@ 'return' Keyword ' ' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'tr' Name.Variable ' ' Text.Whitespace '{' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'td' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -882,7 +882,7 @@ ',' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'td' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -899,7 +899,7 @@ ',' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'td' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -916,7 +916,7 @@ ',' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'td' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -933,13 +933,13 @@ ',' Punctuation '\n\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'td' Name.Variable ' ' Text.Whitespace '{' Punctuation '\n\t\t\t\t\t\t' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'empty' Name.Function '(' Punctuation @@ -956,7 +956,7 @@ 'else' Keyword '\n\t\t\t\t\t\t' Text.Whitespace 'text' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace '"by"' Literal.String.Double @@ -1001,13 +1001,13 @@ ':)' Comment '\n\t\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'input' Name.Variable ' ' Text.Whitespace '{' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'type' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1018,7 +1018,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'title' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1040,7 +1040,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'onclick' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1061,7 +1061,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'value' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1106,13 +1106,13 @@ ':)' Comment '\n\t\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'input' Name.Variable ' ' Text.Whitespace '{' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'type' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1123,7 +1123,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'title' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1134,7 +1134,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'onclick' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1155,7 +1155,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'value' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1191,13 +1191,13 @@ ':)' Comment '\n\t\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'input' Name.Variable ' ' Text.Whitespace '{' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'type' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1208,7 +1208,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'title' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1219,7 +1219,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'onclick' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1240,7 +1240,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'value' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1276,13 +1276,13 @@ ':)' Comment '\n\t\t\t\t\t\t' Text.Whitespace 'element' Keyword -' ' Text +' ' Text.Whitespace 'input' Name.Variable ' ' Text.Whitespace '{' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'type' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1293,7 +1293,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'title' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1304,7 +1304,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'onclick' Name.Variable ' ' Text.Whitespace '{' Punctuation @@ -1325,7 +1325,7 @@ ',' Punctuation '\n\t\t\t\t\t\t\t' Text.Whitespace 'attribute' Keyword -' ' Text +' ' Text.Whitespace 'value' Name.Variable ' ' Text.Whitespace '{' Punctuation |