nim-lang / nim-mode

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

Support alist form of font-lock-maximum-decoration #229

Closed zk-phi closed 4 years ago

zk-phi commented 4 years ago

nim--set-font-lock-keywords was (incorrectly) called recursively, iff font-lock-maximum-decoration is an alist.

This patch changes the call to nim--set-font-lock-keywords to nim--get-font-lock-keywords which seems to be correct.

This fixes #228.