From b07c80adbff7d99d8c4fd73a3bc0b4f6c2ac102a Mon Sep 17 00:00:00 2001 From: Hari K T Date: Mon, 28 Feb 2022 09:52:54 +0530 Subject: [PATCH] sqlite parser update --- src/Parser/SqliteParser.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Parser/SqliteParser.php b/src/Parser/SqliteParser.php index 61bf9bf7..2806d749 100644 --- a/src/Parser/SqliteParser.php +++ b/src/Parser/SqliteParser.php @@ -17,4 +17,20 @@ */ class SqliteParser extends AbstractParser { + /** + * {@inheritDoc} + */ + protected array $split = [ + // single-quoted string + "'(?:[^'\\\\]|\\\\'?)*'", + // double-quoted string + '"(?:[^"\\\\]|\\\\"?)*"', + // backticked column names + '`(?:[^`\\\\]|\\\\`?)*`', + ]; + + /** + * {@inheritDoc} + */ + protected string $skip = '/^(\'|"|`|\:[^a-zA-Z_])/um'; }