Loading ...
Sorry, an error occurred while loading the content.

Syntax syncing?

Expand Messages
  • Eric Arnold
    I m not having too much luck understanding syntax syncing. I have a region: syn region line_whole start=/^@/ end=/^@/me=s-1 which has various contained
    Message 1 of 1 , May 9, 2005
    • 0 Attachment
      I'm not having too much luck understanding syntax syncing. I have a
      region:

      syn region line_whole start=/^@/ end=/^@/me=s-1 '

      which has various contained items. If the start of the region,
      i.e. "@ stuff1",

      @ stuff1
      stuff2
      stuff3
      @ more stuff

      scrolls off the top of the screen, the highlighting dies between "@ stuff1"
      and "@more stuff". I've set

      syntax sync minlines=50

      and that works, but the actual number should be much larger than 50,
      (~500+) which gets pretty slow. I though I should be able to define a match
      pattern,

      syn sync match syncstart groupthere NONE /^@/
      syn sync match syncstop grouphere NONE /^@/

      or

      syn sync match syncstart groupthere line_whole /^@/

      and/or

      syn sync match syncstop grouphere line_whole /^@/

      etc. I've only been able to see any difference in behavior with maxlines,
      so I'm not getting anywhere debugging it. I haven't found enough examples
      to get a grip on what it's supposed to look like.
    Your message has been successfully submitted and would be delivered to recipients shortly.