match comments before everything else
Source code to formatted text converter
Brought to you by:
saalen
in JS, regexes are delimited by //, but also comments start with //, so if you have / character in a comment (e.g. a link) then the highlighting is not correct.
example: http://cgit.alxu.ca/uoft-artsci-exam-filter.git/tree/uoft-artsci-exam-filter.user.js
apparently fixed in newer version
That was fixed in 3.26 ;)