Skip to content

v5.0.0-beta.2

@scriptsbot scriptsbot tagged this 24 Oct 14:12
# [5.0.0-beta.2](https://github.com/scriptcoded/sql-highlight/compare/v5.0.0-beta.1...v5.0.0-beta.2) (2023-10-24)

### Features

* add way to style identifiers ([01df1cd](https://github.com/scriptcoded/sql-highlight/commit/01df1cdf531a7e3631186390204bd0c6ee2bdf81)), closes [#147](https://github.com/scriptcoded/sql-highlight/issues/147)

### BREAKING CHANGES

* The `default` segment has been split into `identifier` and `whitespace`
segments.  There's also a new `unknown` 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.
Assets 2
Loading