Mercurial > vim
view runtime/compiler/cm3.vim @ 25344:d1fcd9c14a93 v8.2.3209
patch 8.2.3209: Vim9: lambda doesn't find block-local variable
Commit: https://github.com/vim/vim/commit/88421d6dc812a2f3b0eab34740f174c9558cb734
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 24 14:14:52 2021 +0200
patch 8.2.3209: Vim9: lambda doesn't find block-local variable
Problem: Vim9: lambda doesn't find block-local variable.
Solution: Adjust how a script-local variable is found. (closes https://github.com/vim/vim/issues/8614)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Jul 2021 14:15:04 +0200 |
parents | 9f41bfdbc6fc |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Compiler: Critical Mass Modula-3 Compiler " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2021 Apr 08 if exists("current_compiler") finish endif let current_compiler = "cm3" if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif let s:cpo_save = &cpo set cpo&vim " TODO: better handling of Quake errors CompilerSet makeprg=cm3 CompilerSet errorformat=%D---\ building\ in\ %f\ ---, \%W\"%f\"\\,\ line\ %l:\ warning:\ %m, \%E\"%f\"\\,\ line\ %l:\ %m, \%-G%.%# let &cpo = s:cpo_save unlet s:cpo_save