view runtime/compiler/dartdevc.vim @ 22214:efa1511a5bf3 v8.2.1656

patch 8.2.1656: Vim9: callstack wrong if :def function calls :def function Commit: https://github.com/vim/vim/commit/dfa3d5524e816c1ff7f603f9f3b7703a53a0f822 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 10 22:05:08 2020 +0200 patch 8.2.1656: Vim9: callstack wrong if :def function calls :def function Problem: Vim9: callstack wrong if :def function calls :def function. Solution: Set the line number before calling. (closes https://github.com/vim/vim/issues/6914)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Sep 2020 22:15:03 +0200
parents d4c7b3e9cd17
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:	Dart Development Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2019 May 08

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

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=dartdevc
CompilerSet errorformat=%E%f:%l:%c:\ Error:\ %m,
		       \%CTry\ %.%#,
		       \%Z\ %#^%\\+,
		       \%Z%$,
		       \%C%.%#,
		       \%E%f:\ %trror:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save