Releases: scriptcoded/sql-highlight
Releases · scriptcoded/sql-highlight
v6.1.0
v6.0.0
6.0.0 (2024-07-02)
Note
These features were supposed to be included in the 5.0.0 release, but due to some issues with the release flow they got released separately. NPM didn't allow publishing in this case, causing two major bumps.
Bug Fixes
- improve number detection (02d459a), closes #149
- improve operator detection (183a4fb), closes #150
- typo in unknown segments (70af287), closes #148 #178 #148
Features
BREAKING CHANGES
- The
default
segment has been split intoidentifier
andwhitespace
segments. There's also a newunknown
segment that will only show up for malformed
SQL such as an unclosed string.
However, the highlight() function works largely the same as before, both normal mode and HTML mode,
except for the bug fix to stop classifying identifiers as strings. In other words, SQL like
select * from EMP where NAME="John Smith"
will get highlighted the same as before, i.e. no syntax highlighting for EMP or NAME.