nim-lang / nim-mode

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

Indented variable names not highlighted #197

Open awr1 opened 6 years ago

awr1 commented 6 years ago
let
  x = 1
  y = 2

Names like x and y should be highlighted for variables underneath let, var, and const.

yuutayamada commented 5 years ago

I'd fix this, but as far as I remember, this was really difficult to fixing by emacs' regex based fontification.

krux02 commented 5 years ago

I think it is possible. I think Multiline Font Lock is the way to approach the problem. But I don't know specifically how to do it.