6.0.0 (2024-07-02)
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.