highlight.js icon indicating copy to clipboard operation
highlight.js copied to clipboard

fixed 'foreign key' and 'primary key' do not highlight 'key'.

Open Dxuian opened this issue 1 year ago • 2 comments
trafficstars

Resolves #4057 before image

after image

Checklist

  • [x] Added markup tests, or they don't apply here because...
  • [x] Updated the changelog at CHANGES.md

Dxuian avatar Aug 27 '24 02:08 Dxuian

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.

joshgoebel avatar Aug 27 '24 03:08 joshgoebel

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 : image

result/after : image

Dxuian avatar Aug 27 '24 21:08 Dxuian