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/gooddata-cl | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/gooddata-cl')
| -rw-r--r-- | tests/lexers/gooddata-cl/example.txt | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/tests/lexers/gooddata-cl/example.txt b/tests/lexers/gooddata-cl/example.txt new file mode 100644 index 00000000..2d1eeb43 --- /dev/null +++ b/tests/lexers/gooddata-cl/example.txt @@ -0,0 +1,126 @@ +---input--- +# Execute the date dimension MAQL script +ExecuteMaql(maqlFile="examples/quotes/quote_date.maql"); + +# load the stock quotes data file +# the data file config has been generated +LoadCsv(csvDataFile="examples/quotes/quotes.csv", + header="true", + configFile="examples/quotes/quotes.config.xml"); + +# transfer the stock quotes data +TransferLastSnapshot(); + +LoadGoogleAnalytics(configFile="examples/ga/ga.config.xml",username="example@gmail.com",password="******",profileId="ga:7468896",dimensions="ga:date|ga:browser|ga:browserVersion|ga:country|ga:isMobile",metrics="ga:bounces|ga:newVisits|ga:pageViews|ga:visits",startDate="2008-01-01",endDate="2010-06-15"); + +---tokens--- +'# Execute the date dimension MAQL script' Comment.Single +'\n' Text + +'ExecuteMaql' Name.Function +'(' Punctuation +'maqlFile' Name.Variable +'=' Operator +'"' Literal.String +'examples/quotes/quote_date.maql' Literal.String +'"' Literal.String +')' Punctuation +';' Punctuation +'\n\n' Text + +'# load the stock quotes data file' Comment.Single +'\n' Text + +'# the data file config has been generated' Comment.Single +'\n' Text + +'LoadCsv' Name.Function +'(' Punctuation +'csvDataFile' Name.Variable +'=' Operator +'"' Literal.String +'examples/quotes/quotes.csv' Literal.String +'"' Literal.String +',' Punctuation +'\n' Text + +'\t' Text +'header' Name.Variable +'=' Operator +'"' Literal.String +'true' Literal.String +'"' Literal.String +',' Punctuation +'\n' Text + +'\t' Text +'configFile' Name.Variable +'=' Operator +'"' Literal.String +'examples/quotes/quotes.config.xml' Literal.String +'"' Literal.String +')' Punctuation +';' Punctuation +'\n\n' Text + +'# transfer the stock quotes data' Comment.Single +'\n' Text + +'TransferLastSnapshot' Name.Function +'(' Punctuation +')' Punctuation +';' Punctuation +'\n\n' Text + +'LoadGoogleAnalytics' Name.Function +'(' Punctuation +'configFile' Name.Variable +'=' Operator +'"' Literal.String +'examples/ga/ga.config.xml' Literal.String +'"' Literal.String +',' Punctuation +'username' Name.Variable +'=' Operator +'"' Literal.String +'example@gmail.com' Literal.String +'"' Literal.String +',' Punctuation +'password' Name.Variable +'=' Operator +'"' Literal.String +'******' Literal.String +'"' Literal.String +',' Punctuation +'profileId' Name.Variable +'=' Operator +'"' Literal.String +'ga:7468896' Literal.String +'"' Literal.String +',' Punctuation +'dimensions' Name.Variable +'=' Operator +'"' Literal.String +'ga:date|ga:browser|ga:browserVersion|ga:country|ga:isMobile' Literal.String +'"' Literal.String +',' Punctuation +'metrics' Name.Variable +'=' Operator +'"' Literal.String +'ga:bounces|ga:newVisits|ga:pageViews|ga:visits' Literal.String +'"' Literal.String +',' Punctuation +'startDate' Name.Variable +'=' Operator +'"' Literal.String +'2008-01-01' Literal.String +'"' Literal.String +',' Punctuation +'endDate' Name.Variable +'=' Operator +'"' Literal.String +'2010-06-15' Literal.String +'"' Literal.String +')' Punctuation +';' Punctuation +'\n' Text |
