> 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
: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.
You probably want to define matches or regions instead...
:help syn-match
:help syn-region
Brett Stahlman
>
> Any clue?
> thanks
>
> --
> View this message in context:http://old.nabble.com/Keywords-in-syntax-file-tp27313486p27313486.html
> Sent from the Vim - General mailing list archive at Nabble.com.
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment