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 you would use the dollar-sign at the end to anchor something to the end of the line:

        "regexp$"

-tim




Reply via email to