> hi, I am trying to write my own syntax for log file of one system..
> my problem is: All the keywords contains colon (:) for example "At:" or
> "Subject:"
> but setting:
> syn keyword date At:
> doesn't work
> but:
> syn keyword date At
> works fine..
> I tried 'At:' "At:" At\: ...but no success
From ":help syn-keyword":
Don't forget that a keyword can only be recognized if all the
characters are included in the 'iskeyword' option. If one
character isn't, the keyword will never be recognized.
And from ":help iskeyword" you can see that : is not included.
I think you'll have to use "syn match" with a pattern like "\<At:"
instead.
Regards,
Gary
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment