Skip to content

Commit

Permalink
Merge pull request #203 from r4ndsen/patch-2
Browse files Browse the repository at this point in the history
Update SqliteParser.php
  • Loading branch information
harikt authored Feb 27, 2022
2 parents 2fe8ad3 + dbf01a8 commit 90aa74c
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 $split = [
// single-quoted string
"'(?:[^'\\\\]|\\\\'?)*'",
// double-quoted string
'"(?:[^"\\\\]|\\\\"?)*"',
// backticked column names
'`(?:[^`\\\\]|\\\\`?)*`',
];

/**
* {@inheritDoc}
*/
protected $skip = '/^(\'|"|`|\:[^a-zA-Z_])/um';
}

0 comments on commit 90aa74c

Please sign in to comment.