emacs-devel
[Top][All Lists]
Advanced

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

Re: How do you check if the current point is in a comment or a string? (


From: Kaushal Modi
Subject: Re: How do you check if the current point is in a comment or a string? (Was Re: Problems with syntax-ppss: Was [... Apply `comment-depth' text properties when calling `back_comment'.])
Date: Wed, 9 Mar 2016 14:19:29 -0500

You are correct; it does not work if the point is before the first comment character.  That makes sense if you visualize syntax-ppss to look at the chars ONLY up to the point. I never faced this case in my application.

May be have a combination of looking-at comment-start or double quote (") and syntax-ppss?


reply via email to

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