summaryrefslogtreecommitdiff
path: root/tests/lexers/ncl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lexers/ncl')
-rw-r--r--tests/lexers/ncl/example.txt146
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