diff options
author | Bruce Wells <brucekwells@gmail.com> | 2019-01-12 05:45:29 +0300 |
---|---|---|
committer | Bruce Wells <brucekwells@gmail.com> | 2019-01-12 05:45:29 +0300 |
commit | 145a0a136fc41dc59a78637a8e84f1c8952ecc31 (patch) | |
tree | e65b68200d122f4c8afbf772203dc63002ad3c7f /src/NXP/Classes/Token/TokenStringSingleQuoted.php | |
parent | 9684cfd1d0e61a6bfcf1a46f322f99e7b6559df5 (diff) | |
parent | 18b12aeeff34c8ac9a350165ae36f08f4138dc9c (diff) |
Merge branch 'master' of https://github.com/phpfui/MathExecutor
# Conflicts:
# src/NXP/Classes/Lexer.php
Diffstat (limited to 'src/NXP/Classes/Token/TokenStringSingleQuoted.php')
-rw-r--r-- | src/NXP/Classes/Token/TokenStringSingleQuoted.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/NXP/Classes/Token/TokenStringSingleQuoted.php b/src/NXP/Classes/Token/TokenStringSingleQuoted.php new file mode 100644 index 0000000..7a7ab92 --- /dev/null +++ b/src/NXP/Classes/Token/TokenStringSingleQuoted.php @@ -0,0 +1,26 @@ +<?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> + * @author Alexander Kiryukhin <a.kiryukhin@mail.ru> + */ +class TokenStringSingleQuoted extends AbstractContainerToken +{ + /** + * @return string + */ + public static function getRegex() + { + return "'([^']|'')*'"; + } +} |