Ticket #6 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

`..-}' does not terminate comment

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

Description

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 '-}'.

Example:

module Test where

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

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

Compare with c-mode:

/* Dot, dot, space.. */
test1();

/* Just dot, dot..*/
test2();

See also real world example.

Change History

Changed 5 years ago by Baughn

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

Changed 5 years ago by Baughn

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

Changed 5 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 5 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.