diff options
author | Jeremy Dorn <jeremy@jeremydorn.com> | 2013-03-03 11:18:19 -0800 |
---|---|---|
committer | Jeremy Dorn <jeremy@jeremydorn.com> | 2013-03-03 11:18:19 -0800 |
commit | 2efc4bb4f6f154d67125d313b1412926fe9d70ee (patch) | |
tree | dfaf57ce93efdd77df8cdf9d0e698235a18a61a9 /lib | |
parent | 3d8a97325e5894c72dd5c4d4f83dd3722d414d99 (diff) | |
download | sql-formatter-2efc4bb4f6f154d67125d313b1412926fe9d70ee.zip sql-formatter-2efc4bb4f6f154d67125d313b1412926fe9d70ee.tar.gz sql-formatter-2efc4bb4f6f154d67125d313b1412926fe9d70ee.tar.bz2 |
Fixed bug when formatting "SELECT#comment" without a space before "#".
Added PHPUnit tests and .travis integration.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SqlFormatter.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SqlFormatter.php b/lib/SqlFormatter.php index 44e6143..ae65211 100644 --- a/lib/SqlFormatter.php +++ b/lib/SqlFormatter.php @@ -9,7 +9,7 @@ * @copyright 2013 Jeremy Dorn * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://github.com/jdorn/sql-formatter - * @version 1.2.5 + * @version 1.2.6 */ class SqlFormatter { @@ -64,7 +64,7 @@ class SqlFormatter ); // Punctuation that can be used as a boundary between other tokens - protected static $boundaries = array(',', ';', ')', '(', '.', '=', '<', '>', '+', '-', '*', '/', '!', '^', '%', '|', '&'); + protected static $boundaries = array(',', ';', ')', '(', '.', '=', '<', '>', '+', '-', '*', '/', '!', '^', '%', '|', '&', '#'); // For syntax highlighting // Styles applied to different token types |