|
From: | Jon Dufresne |
Subject: | Re: c-mode syntax strings and regexp word boundaries |
Date: | Fri, 6 Sep 2013 07:55:08 -0700 |
> (re-search-forward "^END\\b")This changes the syntax of this "D" from "w" to "|".
> (put-text-property (1- (point)) (point)
> 'syntax-table (string-to-syntax "|"))
The char before ";" is "D" which is not a word char any more, and the
> (goto-char (point-min))
> (message "Search forward second time")
> (re-search-forward "^END\\b"))
";" is not a word char either, so the point between the two is not
a word boundary any more.
[Prev in Thread] | Current Thread | [Next in Thread] |