On 12/3/11 3:23 PM, Alan Mackenzie wrote: > I think it would be a good idea to provide a function to test for this > "half comment" state, somewhat like `syntax-ppss-toplevel-pos'. This > new defun could be called something like > `syntax-ppss-comment-half-opener' and calling it would return nil > usually, but ?/ in these circumstances. > > What do other people think? Why not just scan one character further ahead, using the previous position and parse state, to see whether you then enter a comment?