Handle const modifier in getOccurrences

Fix for #1331. Const is not handled as a modifier, so add the handling for it.
I don't think this should highlight the other `const`. One is actually a modifier, one is analogous to `var`.