For some reason Webstorm will not color the code within a Gruntfile, it opens like a standard text file, I cant seem to find the settings to make it work like a normal JS file. I don't recall changing any setting which could have effected this.
Please check if 'Gruntfile.js
' (or 'gruntfile.js
' if your file name starts with lower case) is added to text file patterns in Settings | Editor | File types -> 'Text files'
file type. Removing this pattern should solve your problem