summaryrefslogtreecommitdiff
path: root/tests/lexers/php/example2.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lexers/php/example2.txt')
-rw-r--r--tests/lexers/php/example2.txt76
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/lexers/php/example2.txt b/tests/lexers/php/example2.txt
new file mode 100644
index 00000000..65e7f1e3
--- /dev/null
+++ b/tests/lexers/php/example2.txt
@@ -0,0 +1,76 @@
+---input---
+<?php
+
+$x = array(0123, 0x0a, -0x0a, -0123, 12, -12);
+
+?>
+<?php
+$a = 1.234;
+$b = 1.2e3;
+$c = 7E-10;
+?>
+
+---tokens---
+'<?php' Comment.Preproc
+'\n\n' Text
+
+'$x' Name.Variable
+' ' Text
+'=' Operator
+' ' Text
+'array' Keyword
+'(' Punctuation
+'0123' Literal.Number.Oct
+',' Punctuation
+' ' Text
+'0x0a' Literal.Number.Hex
+',' Punctuation
+' ' Text
+'-' Operator
+'0x0a' Literal.Number.Hex
+',' Punctuation
+' ' Text
+'-' Operator
+'0123' Literal.Number.Oct
+',' Punctuation
+' ' Text
+'12' Literal.Number.Integer
+',' Punctuation
+' ' Text
+'-' Operator
+'12' Literal.Number.Integer
+');' Punctuation
+'\n\n' Text
+
+'?>' Comment.Preproc
+'\n' Other
+
+'<?php' Comment.Preproc
+'\n' Text
+
+'$a' Name.Variable
+' ' Text
+'=' Operator
+' ' Text
+'1.234' Literal.Number.Float
+';' Punctuation
+' \n' Text
+
+'$b' Name.Variable
+' ' Text
+'=' Operator
+' ' Text
+'1.2e3' Literal.Number.Float
+';' Punctuation
+' \n' Text
+
+'$c' Name.Variable
+' ' Text
+'=' Operator
+' ' Text
+'7E-10' Literal.Number.Float
+';' Punctuation
+'\n' Text
+
+'?>' Comment.Preproc
+'\n' Other