view runtime/compiler/zsh.vim @ 33806:354e92c641ba v9.0.2119

patch 9.0.2119: remove dead-condition in ex_class Commit: https://github.com/vim/vim/commit/6b36645f07773d2b27c6662cd80a6567e07f75a0 Author: Christian Brabandt <cb@256bit.org> Date: Sun Nov 19 18:59:52 2023 +0100 patch 9.0.2119: remove dead-condition in ex_class Problem: remove dead-condition in ex_class() Solution: remove the extra condition The variable is_class must be true once we reach the ,---- | else if (has_static) `---- in line 1750, because we break out earlier if is_class is false in line 1598 of vim9class.c. And once 'has_static = TRUE', we must be in a class and there fore is_class is true. Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Nov 2023 20:15:08 +0100
parents 29c5f168c6fd
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:	Zsh
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2020 Sep 6

if exists("current_compiler")
  finish
endif
let current_compiler = "zsh"

if exists(":CompilerSet") != 2		" older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=zsh\ -n\ --\ %:S
CompilerSet errorformat=%f:\ line\ %l:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save