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/ncl | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/ncl')
| -rw-r--r-- | tests/lexers/ncl/example.txt | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/tests/lexers/ncl/example.txt b/tests/lexers/ncl/example.txt new file mode 100644 index 00000000..9693b94b --- /dev/null +++ b/tests/lexers/ncl/example.txt @@ -0,0 +1,146 @@ +---input--- +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" +begin + int_num = 1 + float_num = 0.1 + str = "A void map" + array = (/1, 2, 3, 4, 5/) + + + wks = gsn_open_wks("X11", "test_for_pygments") + + res = True + res@mpMinLonF = 90. + res@mpMaxLonF = 180. + res@mpMinLatF = 0. + res@mpMaxLatF = 90. + + plot = gsn_csm_map_ce(wks, res) +end + +---tokens--- +'load' Keyword +' ' Text +'"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"' Literal.String.Double +'\n' Text + +'load' Keyword +' ' Text +'"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"' Literal.String.Double +'\n' Text + +'load' Keyword +' ' Text +'"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"' Literal.String.Double +'\n' Text + +'begin\n ' Keyword +'int_num' Name +' ' Text +'=' Punctuation +' ' Text +'1' Literal.Number.Integer +'\n ' Text +'float_num' Name +' ' Text +'=' Punctuation +' ' Text +'0.1' Literal.Number.Float +'\n ' Text +'str' Name +' ' Text +'=' Punctuation +' ' Text +'"A void map"' Literal.String.Double +'\n ' Text +'array' Name +' ' Text +'=' Punctuation +' ' Text +'(' Punctuation +'/' Operator +'1' Literal.Number.Integer +',' Punctuation +' ' Text +'2' Literal.Number.Integer +',' Punctuation +' ' Text +'3' Literal.Number.Integer +',' Punctuation +' ' Text +'4' Literal.Number.Integer +',' Punctuation +' ' Text +'5' Literal.Number.Integer +'/' Operator +')' Punctuation +'\n\n\n ' Text +'wks' Name +' ' Text +'=' Punctuation +' ' Text +'gsn_open_wks' Name.Builtin +'(' Punctuation +'"X11"' Literal.String.Double +',' Punctuation +' ' Text +'"test_for_pygments"' Literal.String.Double +')' Punctuation +'\n\n ' Text +'res' Name +' ' Text +'=' Punctuation +' ' Text +'True\n ' Keyword +'res' Name +'@' Punctuation +'mpMinLonF' Name.Builtin +' ' Text +'=' Punctuation +' ' Text +'9' Literal.Number.Integer +'0.' Literal.Number.Float +'\n ' Text +'res' Name +'@' Punctuation +'mpMaxLonF' Name.Builtin +' ' Text +'=' Punctuation +' ' Text +'18' Literal.Number.Integer +'0.' Literal.Number.Float +'\n ' Text +'res' Name +'@' Punctuation +'mpMinLatF' Name.Builtin +' ' Text +'=' Punctuation +' ' Text +'0.' Literal.Number.Float +'\n ' Text +'res' Name +'@' Punctuation +'mpMaxLatF' Name.Builtin +' ' Text +'=' Punctuation +' ' Text +'9' Literal.Number.Integer +'0.' Literal.Number.Float +'\n\n ' Text +'plot' Name +' ' Text +'=' Punctuation +' ' Text +'gsn_csm_map_ce' Name.Builtin +'(' Punctuation +'wks' Name +',' Punctuation +' ' Text +'res' Name +')' Punctuation +'\n' Text + +'end' Keyword +'\n' Text |
