nim-lang / nim-mode

An emacs major mode for the Nim programming language
137 stars 46 forks source link

font lock changes #226

Closed krux02 closed 5 years ago

krux02 commented 5 years ago

Initially I thought to highlight everything past a colon as a type. This worked great for my style of programming but in the Nim repository it is far too often normal code after a colon. The new heuristic is, everything starting with a capital letter is a type. Makes constants such as Pi highlighted as types as well.