bug#41952: CC Mode and js-mode: Erroneous values for comment-start-skip

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

bug#41952: CC Mode and js-mode: Erroneous values for comment-start-skip

Alan Mackenzie
Hello, Emacs.

In CC Mode modes, a typical value for comment-start-skip is:

    "\\(//+\\|/\\*+\\)\\s *"

.  This is erroneous, since it includes regexp grouping parentheses, yet
the comment being matched doesn't start at (match-end 1), contravening
the definition of comment-start-skip.

This mistake is likely to lead to errors in filling, etc.

The same bug is present in js-mode.

--
Alan Mackenzie (Nuremberg, Germany).