aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Token/TokenString.php
diff options
context:
space:
mode:
authorAlexander Kiryukhin <alexander@kiryukhin.su>2018-09-12 20:05:09 +0300
committerGitHub <noreply@github.com>2018-09-12 20:05:09 +0300
commit4a672cfd94c07e1821227f27fd1edd2217685136 (patch)
treec50b777d06d9e9eeff6aeb59005c389ddf9a552b /src/NXP/Classes/Token/TokenString.php
parent76d1b4b8f02d555e4b4f4fd4d641597f0f6b5f4e (diff)
parent2722a5201d326317e391ae6c0e2fa7e0c2b537b4 (diff)
Merge pull request #28 from phpfui/support_for_double_quoted_strings
Support for double quoted strings
Diffstat (limited to 'src/NXP/Classes/Token/TokenString.php')
-rw-r--r--src/NXP/Classes/Token/TokenString.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/NXP/Classes/Token/TokenString.php b/src/NXP/Classes/Token/TokenString.php
new file mode 100644
index 0000000..cab0711
--- /dev/null
+++ b/src/NXP/Classes/Token/TokenString.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * This file is part of the MathExecutor package
+ *
+ * (c) Alexander Kiryukhin
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code
+ */
+
+namespace NXP\Classes\Token;
+
+/**
+ * @author Bruce Wells <brucekwells@gmail.com>
+ */
+class TokenString extends AbstractContainerToken
+{
+ /**
+ * @return string
+ */
+ public static function getRegex()
+ {
+ return '"([^"]|"")*"';
+ }
+}