[Top][All Lists]

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

Re: forward-comment and syntax-ppss

From: Andreas Röhler
Subject: Re: forward-comment and syntax-ppss
Date: Sat, 10 Dec 2016 19:39:14 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0

On 09.12.2016 19:47, Stefan Monnier wrote:

Let's take sm-c-mode as an example: it marks CPP preprocessor elements
as being comments.  Yet, it also wants to know if there are strings
inside that "comment", so it narrows to the "comment" and then
parses the result as a chunk of C code.
[ Whether this approach is good or bad is beside the point: this
   is just an example of narrowing, where the context should not affect
   what is considered "inside a string" or not.  ]

IMHO that the kind of proceeding to avoid, unless complexity and trouble grow likewise.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]