[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#737673: incorrect comment highlighting in package descriptions



Tim Landscheidt <tim@tim-landscheidt.de> writes:

> David Bremner <bremner@debian.org> wrote:
>
>> […]
>
>> I tried the obvious-to-me fix of anchoring the regex comment-start-skip,
>> but it didn't work (like so many obvious things ;)). If anybody has a
>> better understanding of comments and font-lock, suggestions welcome.
>
> AFAIU https://stackoverflow.com/questions/25245469 and
> others, changing comment-start-skip is not enough.  Instead,
> one must define one's own syntax-propertize-function
> (cf. perl-syntax-propertize-function & Co.).

Thanks Tim! That was the clue I needed.

d


Reply to: