Monday, December 2, 2019

Re: hightlight syntax problem

Tried with 
syn match s7JumpsOperand    /^\s\+\zs\(SPA\|SPL\|SPBNB\|SPBN\|SPBB\|SPB\|SPBI\|SPBIN\|SLW\|SPO\|SPS\|SPZ\|SPN\|SPP\|SPM\|SPPZ\|SPMZ\|SPU\|LOOP\)\ze/ nextgroup=s7JumpLabel
syn match s7JumpsLabel      /\s\+\S\+\s\+\zs\([^;]\+\)\ze;/

do that:

Capture.PNG



Le lundi 2 décembre 2019 16:15:43 UTC+1, Christian Brabandt a écrit :

On Mo, 02 Dez 2019, Ni Va wrote:

>  i tried this 
>
> syn match s7JumpsOperand    /^\s\+\zs\(SPA\|SPL\|SPBNB\|SPBN\|SPBB\|SPB\|SPBI\|
> SPBIN\|SLW\|SPO\|SPS\|SPZ\|SPN\|SPP\|SPM\|SPPZ\|SPMZ\|SPU\|LOOP\)\ze/ nextgroup
> =s7JumpLabel
> syn match s7JumpsLabel      /^\s\+\S\+\s\+\zs\([^;]\+\)\ze;/
>
>
> It does not highlight second group s7JumLabel because of same location ... how
> to avoid this ?

Remove the anchoring at the start of the line for Label group


Mit freundlichen Grüßen
Christian
--
Man verliert die meiste Zeit damit, daß man Zeit gewinnen will.
                -- John Ernst Steinbeck

--
--
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/def55ba9-0832-4ccd-8519-4c29fad806ef%40googlegroups.com.

No comments:

Post a Comment