highlight.js
highlight.js copied to clipboard
fixed 'foreign key' and 'primary key' do not highlight 'key'.
trafficstars
Resolves #4057
before
after
Checklist
- [x] Added markup tests, or they don't apply here because...
- [x] Updated the changelog at
CHANGES.md
Except key isn't a keyword on it's own.
To properly fix this we need a small helper function to run thru COMBOS and generate a list of separate keywords that's then would be used only for the COMBO matcher.
To properly fix this we need a small helper function to run thru COMBOS and generate a list of separate keywords that's then would be used only for the COMBO matcher. @joshgoebel i managed to make a helper funcction but i want you to look at it to see if it seems acceptable. because it does seem to work before :
result/after :