Tuesday, November 26, 2019

highlights two patterns in same line not possible ?

Hi,

According this content:

      SPBNB _008
_008: NOP   0; 


and those highlight pattern to recognize bold words it seems this highlight just one out of both why ?

Patterns:
syn match s7JumpStatement   /^\(L*\d\+:\)*\s\+\zs\(SPA\|SPL\|SPBNB\|SPBN\|SPBB\|SPB\|SPBI\|SPBIN\|SLW\|SPO\|SPS\|SPZ\|SPN\|SPP\|SPM\|SPPZ\|SPMZ\|SPU\|LOOP\)\ze\(\w\+;\)\@!/
syn match s7JumpToLabel     /^\s\+\(SPA\|SPL\|SPBNB\|SPBN\|SPBB\|SPB\|SPBI\|SPBIN\|SLW\|SPO\|SPS\|SPZ\|SPN\|SPP\|SPM\|SPPZ\|SPMZ\|SPU\|LOOP\)\s\+\zs\w\+\ze;.*$/
    HiLink s7JumpStatement       Statement
    HiLink s7JumpToLabel         JumpLabel


Thank you
NiVa

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ab6af423-3b5b-473e-a86c-9467e9a6c093%40googlegroups.com.

No comments:

Post a Comment