I think its just a bug where when it checks it misses some of the commands, cause the code you posted above is fully highlighted on mine.
edit: except for "end", it is neither highlighted or capitalized
edit: except for "end", it is neither highlighted or capitalized