summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJeremy Dorn <jeremy@jeremydorn.com>2013-03-03 11:18:19 -0800
committerJeremy Dorn <jeremy@jeremydorn.com>2013-03-03 11:18:19 -0800
commit2efc4bb4f6f154d67125d313b1412926fe9d70ee (patch)
treedfaf57ce93efdd77df8cdf9d0e698235a18a61a9 /lib
parent3d8a97325e5894c72dd5c4d4f83dd3722d414d99 (diff)
downloadsql-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.php4
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