GNU bug report logs -
#15251
24.3.50; do-auto-fill "continues" comment from inside a string
Previous Next
Reported by: Dmitry Gutov <dgutov <at> yandex.ru>
Date: Tue, 3 Sep 2013 01:28:01 UTC
Severity: normal
Found in version 24.3.50
Fixed in version 24.4
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 02.10.2013 17:08, Andreas Röhler wrote:
> Doesn't make sense for me. In which way is a string supposed to bear
> string-face, if syntax doesn't exist?
I'm just guessing, but syntax table may have syntax entries for string
delimiters, but not for comments (e.g. because their syntax is too weird
to be adequately expressed using existing syntax table classes), so
comments may be fontified via explicit font-lock-keywords entries.
Another option is, like Stefan mentioned, if font-lock-syntax-table is
defined, it's used for fontification, and it's very different from the
actual buffer syntax table.
> That's shooting into the dark IMHO.
That code is old. I'm pretty sure nobody would've written it if there
weren't any modes in the wild at the time that benefited from it.
This bug report was last modified 11 years and 232 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.