summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #2 from dlsniper/improvementsJeremy Dorn2012-09-124-627/+688
|\ | | | | Formatted source code according to PSR-1 and PSR-2. Added composer support
| * Formatted source code according to PSR-1 and PSR-2. Added composer supportFlorin Patan2012-09-104-627/+688
|/
* Merge branch 'master' of https://github.com/jdorn/sql-formatterJeremy Dorn2012-08-251-1/+1
|\
| * If a reserved word is found, it now returns it in the original case insteadJeremy Dorn2012-05-231-1/+1
| | | | | | | | of all uppercase.
* | Adding new removeComments method and using it before splitting queries.Jeremy Dorn2012-08-252-36/+229
|/ | | | Improved examples page.
* Fixed bugs with splitQuery. Updated README and examples.Jeremy Dorn2012-05-223-11/+78
| | | | Fixed undefined variable error with highlight method.
* Adding a splitQuery method that splits a query string with multiple sql ↵Jeremy Dorn2012-05-221-0/+40
| | | | statements separated by ';'.
* Adding "HAVING" to the special reserved word list.Jeremy Dorn2012-05-131-1/+1
|
* Added new method 'highlight' that only does syntax highlighting andJeremy Dorn2012-05-123-1/+78
| | | | preserves original whitespace.
* Fixing include path in examples. Added example with comments.jdorn2012-05-081-2/+9
|
* Added in support for comments (--, #, and /*...*/ all supported)jdorn2012-05-081-8/+35
|
* Added example output screenshot. Created examples directory.Jeremy Dorn2012-05-063-0/+4
|
* Fixed indentation for subselects.Jeremy Dorn2012-05-062-6/+23
| | | | | Fixed typo in error styling. Added example for unmatched parentheses.
* Added more example SQL statements.Jeremy Dorn2012-05-052-46/+98
| | | | | Moved all syntax highlighting styles to static properties that can be overwritten. Simplified and rewrote the newline/indent logic (still needs to be improved for subselects)
* Fixed bug where a reserved word at the end of the sql string would not be ↵Jeremy Dorn2012-05-011-2/+2
| | | | counted as a reserved word.
* Added htmlentities before outputting tokens to protect against html injection.Jeremy Dorn2012-04-301-17/+31
| | | | | Moved whitespace and quote list to static variables. Now, multiple whitespace characters in a row are returned as a single token.
* Added dot ('.') to the list of boundary characters so `Table`.`Column` ↵jdorn2012-04-301-2/+2
| | | | formats correctly.
* Fixed formatting bug when a special reserved word appears on a new line.Jeremy Dorn2012-04-301-0/+1
|
* initial commit of filesJeremy Dorn2012-04-303-2/+257
|
* initial commitjdorn2012-04-291-0/+4