Currently, when you type
typedef int nameInt;
nameInt is not highlighted. I would like for nameInt to be highlighted to same color as all the other types (ie, bool, int, etc.) Also, is there a way to do this with class names as well so that when you type
the word string, would be highlighted. I have looked at the C.tmLanguage file, and saw that I could add string to the list of types that would be highlighted, but that would not work for other classes such as vector. There would be too many class names to add. What would the code be like to highlight class name (string, vector, cin, cout, etc.)?
Edit: Would it be possible to add a regex that would pick the last word after typedef and add that to the list of types to be highlighted?
Edit2: How come this regex is not working