gleam-lang / gleam-mode

🐙 Gleam support for Emacs
Apache License 2.0
81 stars 23 forks source link

Commenting does not work #14

Open marcinkoziej opened 1 year ago

marcinkoziej commented 1 year ago

I'm on Emacs GNU Emacs 29.0.60 (and Doom Emacs config package)

I can't seem to get commenting work, that is, when I

  1. start a comment // some comment
  2. press return
  3. I get a cursor at new line, but no // is added

I have all these gleam settings working:

  ;; Comment settings
  (setq-local comment-start "// ")
  (setq-local comment-end "")
  (setq-local comment-start-skip "//+ *")
  (setq-local comment-use-syntax t)
  (setq-local comment-auto-fill-only-comments t)
marcinkoziej commented 1 year ago

I did some investingation and Emacs (forward-comment 1) does not move the cursor at all.. Might be some lower level issue? (tree sitter vs syntax checking by newcomment.el ?). I can run tree-sitter-debug and see comments detected correctly.