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

34597"syn match" proposal

Expand Messages
  • Ilya Sher
    Feb 2, 2004
      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA1

      Hi all.

      INTRO:
      I was trying to fix highlighting of the following 2 lines (my .vimrc)
      map <S-F10> :syn match PreProc "^[^:]\+:"<CR>
      let html_use_css=1

      THE PROBLEM:
      1) [in vim.vim syntax file]
      syn cluster vimSynMtchGroup contains=...,vimSynRegPat
      ...
      syn region vimSynMatchRegion ... contains=@vimSynMtchGroup

      That means that "match blah-blah" may have more than
      one pattern. For example:
      (*) syn match "a" contains=x "b"
      (as to my case : "<CR>" and on is matched as if it's next pattern)
      Since i was trying to fix according to vim's behaviour i found :

      2) [vim, sources, somewhere]
      Vim excepts the line (*), uses the first pattern and silently
      discards the second (and on?) pattern.

      PROPOSAL:
      1) Give an error when several patterns to "match" given
      2) Fix the syntax file according to #1 when(if) it's agreed and fixed

      P.S.
      I'm not good at C and I am not familiar with vim's sources.
      That means that I can try #2 but not #1.

      -----BEGIN PGP SIGNATURE-----
      Version: GnuPG v1.2.2 (GNU/Linux)
      Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

      iD8DBQFAH1THKQCqGJKGZm4RAua1AKDQ8iu/hyRTuwtQG//3pXkoEBAiVACfbRxs
      n4yGGW010sBdE3oQnhOguZg=
      =GDRa
      -----END PGP SIGNATURE-----
    • Show all 5 messages in this topic