This is exactly the code I have.
Local var are not highlighted, only the class "gmlIdent" is added.
You can see it live here: https://indieklem.com/randomize-value-in-array-with-game-maker/
JS is here: https://indieklem.com/wp-content/themes/indieklem/js/gml_highlight.js