Ticket #6 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

`..-}' does not terminate comment

Reported by: vvv Owned by: Baughn
Priority: minor Component: other
Version: 1.6.4 Keywords:


Sequence of '..-}' within a comment breaks syntax highlighting: code that follows will be displayed in font-lock-comment-face. Highlighting works correctly is there is a space between dots and '-}'.


module Test where

{- Dot, dot, space.. -}
test1 = undefined

{- Just dot, dot..-}
test2 = undefined

Compare with c-mode:

/* Dot, dot, space.. */

/* Just dot, dot..*/

See also real world example.

Change History

Changed 8 years ago by Baughn

  • version set to 1.6.4
  • component changed from component1 to haskell-indentation

Changed 8 years ago by Baughn

  • owner changed from somebody to Baughn
  • status changed from new to assigned
  • component changed from haskell-indentation to other

Changed 8 years ago by vvv

Question mark instead of dot has the same effect. I suspect the bug to be exposable by any punctuation character.

Changed 8 years ago by Baughn

  • status changed from assigned to closed
  • resolution set to fixed

In fact, it was due to a difference in syntax inside and outside comments. Fixed by conditionalizing on that.

Note: See TracTickets for help on using tickets.