Re: Anchoring in a regex

2006-07-17 Thread Robert Hicks
A.J.Mechelynck wrote: Tim Chase wrote: syn match tclV ttk\(\(::\)\?\([[:alnum:]_.]*::\)*\)\a[a-zA-Z0-9_.]* I only want this to work ttk at the start. I know that ^ means the start but I am not sure how to add that (I did try just adding it) to make the regex start with ttk. Just put it at

Anchoring in a regex

2006-06-29 Thread Robert Hicks
syn match tclV ttk\(\(::\)\?\([[:alnum:]_.]*::\)*\)\a[a-zA-Z0-9_.]* I only want this to work ttk at the start. I know that ^ means the start but I am not sure how to add that (I did try just adding it) to make the regex start with ttk. Robert

Re: Anchoring in a regex

2006-06-29 Thread Tim Chase
syn match tclV ttk\(\(::\)\?\([[:alnum:]_.]*::\)*\)\a[a-zA-Z0-9_.]* I only want this to work ttk at the start. I know that ^ means the start but I am not sure how to add that (I did try just adding it) to make the regex start with ttk. Just put it at the beginning: ^ttk... just as