|
From: | Stefan Monnier |
Subject: | Re: Regex Problem => "overlapping words" |
Date: | Fri, 02 Dec 2005 22:04:06 -0500 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> '("\\([^][ \t\r\n{}()]+\\):[ > ]*\\(d\\(ef\\|oes\\)\\|func\\(tion\\)\\|has\\|sub?\\)\\>" (1 prepend) (2 > font-lock-keyword-face)) You want to remove the ? after `sub' (it causes your regexp to match both `sub' and `su') and you want to add a ? right after the \\(tion\\) group. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |