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

sh.vim incorrect syntax definition for #!/bin/sh

Expand Messages
  • Pawel.Veselov@Sun.COM
    Hi ! Just a small patch, if editing #!/bin/sh script, there is an inconsistency in the sh.vim. ... *************** *** 318,325 **** syn sync match shForSync
    Message 1 of 1 , Sep 28, 2001
    • 0 Attachment
      Hi !

      Just a small patch, if editing #!/bin/sh script, there is
      an inconsistency in the sh.vim.

      *** sh.vim.old Fri Sep 28 23:24:30 2001
      --- sh.vim Fri Sep 28 23:24:54 2001
      ***************
      *** 318,325 ****
      syn sync match shForSync groupthere shFor "\<in\>"
      syn sync match shIfSync grouphere shIf "\<if\>"
      syn sync match shIfSync groupthere shIf "\<fi\>"
      ! syn sync match shUntilSync grouphere shRepeat "\<until\>"
      ! syn sync match shWhileSync grouphere shRepeat "\<while\>"

      " The default highlighting.
      hi def link shArithRegion shShellVariables
      --- 318,327 ----
      syn sync match shForSync groupthere shFor "\<in\>"
      syn sync match shIfSync grouphere shIf "\<if\>"
      syn sync match shIfSync groupthere shIf "\<fi\>"
      ! if exists("b:is_kornshell") || exists("b:is_bash")
      ! syn sync match shUntilSync grouphere shRepeat "\<until\>"
      ! syn sync match shWhileSync grouphere shRepeat "\<while\>"
      ! endif

      " The default highlighting.
      hi def link shArithRegion shShellVariables

      Bye.
      -- _
      Pawel S. Veselov (software developer, Engineering Services) __ __(_) _ __
      e-mail: Pawel.Veselov@... \ V /| || ' \
      HomePage: http://www3.math.spbu.ru/~vps \_/ |_||_|_|_|
    Your message has been successfully submitted and would be delivered to recipients shortly.