To check if the cursor is within a comment or string context:
synIDattr(synID(line(.), col(.), 1), name) =~? 'comment\|string'
Syntax has to be enabled.
Thanks, Gerald,
this is exactly what I needed. Thanks also to the others, for useful hints.
-- Peter
Hello,
* On Sat, Jun 24, 2006 at 08:52:47AM +0800, Dr Bean [EMAIL PROTECTED] wrote:
On Fri, 23 Jun 2006, [EMAIL PROTECTED] wrote:
PPS: In lh-cpp.tar.gz, you will find many examples of use. The
patched, but not yet uploaded, version contains the following
context-aware mappings and