Wednesday, April 20, 2016

Syntax region problem

Hi,

I would like to highlight only the word of gravity level 'Debug' in this sentence :

2016-04-18 16:57:43.207000 Debug SomeInformations


I have tried this but it highlight more than the word :


syn match Debug '\<Debug\>'
syntax region Debug matchgroup=Debug start="\d\s" end="\s" contains=@Debug
hi link Debug airline_warning



I don't want start and end will be inside highlighting, can you help me ?
Thank you



--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment