hy-mode icon indicating copy to clipboard operation
hy-mode copied to clipboard

Missing syntax highlighting for decorated functions

Open nagy opened this issue 1 year ago • 0 comments

The new syntax introduced with https://github.com/hylang/hy/pull/2270 is not being recognized by hy-mode. For example:

(import click)

(defn
  [click.command
   (click.option "--name")]
  main [name]
  (print "Hi" name))

(when (= __name__ "__main__") (main))

Here, the defun is not highlighted correctly. The responsible part is probably this: https://github.com/hylang/hy-mode/blob/df814865a1faa8414dacdbb35b2a9029995312ec/hy-font-lock.el#L347-L352

nagy avatar Dec 18 '22 16:12 nagy