summaryrefslogtreecommitdiff
path: root/tests/lexers/easytrieve/example2.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lexers/easytrieve/example2.txt')
-rw-r--r--tests/lexers/easytrieve/example2.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/lexers/easytrieve/example2.txt b/tests/lexers/easytrieve/example2.txt
new file mode 100644
index 00000000..2906d999
--- /dev/null
+++ b/tests/lexers/easytrieve/example2.txt
@@ -0,0 +1,45 @@
+---input---
+* Example Easytrieve macro declaration. For an example on calling this
+* macro, see example.ezt.
+MACRO FILENAME PREFIX
+&FILENAME.
+&PREFIX.-LINE 1 80 A
+&PREFIX.-KEY 1 8 A
+
+---tokens---
+'* Example Easytrieve macro declaration. For an example on calling this\n' Comment.Single
+
+'* macro, see example.ezt.\n' Comment.Single
+
+'MACRO' Keyword.Declaration
+' ' Text.Whitespace
+'FILENAME' Name.Function
+' ' Text.Whitespace
+'PREFIX' Name
+'\n' Text.Whitespace
+
+'&FILENAME.' Name.Variable
+'\n' Text.Whitespace
+
+'&PREFIX.' Name.Variable
+'-' Operator
+'LINE' Keyword.Reserved
+' ' Operator
+'1' Literal.Number.Integer
+' ' Text.Whitespace
+'80' Literal.Number.Integer
+' ' Text.Whitespace
+'A' Name
+'\n' Text.Whitespace
+
+'&PREFIX.' Name.Variable
+'-' Operator
+'KEY' Keyword.Reserved
+' ' Operator
+' ' Text.Whitespace
+'1' Literal.Number.Integer
+' ' Text.Whitespace
+'8' Literal.Number.Integer
+' ' Text.Whitespace
+'A' Name
+'\n' Text.Whitespace