Enhance UDL lexer
The only pitfall I see at the moment might be that your UDL name is not ml but something else.
When you run the script, do you see any errors in the console?
I assume you copied the whole script and not just the part you mentioned here, right?
If you click on the script from the Python script menu while holding down the CTRL key, will the expected script open in Npp?