Skip to content

Commit

Permalink
Merge pull request #212 from harikt/sqlite-parser
Browse files Browse the repository at this point in the history
sqlite parser update
  • Loading branch information
harikt authored Feb 28, 2022
2 parents d2d66c5 + b07c80a commit a6d9fa8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Parser/SqliteParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

0 comments on commit a6d9fa8

Please sign in to comment.