view runtime/compiler/zig_test.vim @ 31813:cd4065ab4503 v9.0.1239

patch 9.0.1239: cannot have a line break before an object member access Commit: https://github.com/vim/vim/commit/b149d2279673aa89ab5e35958d05cc4bcc70f82a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 24 13:03:37 2023 +0000 patch 9.0.1239: cannot have a line break before an object member access Problem: Cannot have a line break before an object member access. Solution: Check for "." in next line. (closes https://github.com/vim/vim/issues/11864)
author Bram Moolenaar <Bram@vim.org>
date Tue, 24 Jan 2023 14:15:03 +0100
parents 15c80d8bc515
children 99bf06d67e43
line wrap: on
line source

" Vim compiler file
" Compiler: Zig Compiler (zig test)
" Upstream: https://github.com/ziglang/zig.vim

if exists('current_compiler')
  finish
endif
runtime compiler/zig.vim
let current_compiler = 'zig_test'

let s:save_cpo = &cpo
set cpo&vim


if exists(':CompilerSet') != 2
  command -nargs=* CompilerSet setlocal <args>
endif

if has('patch-7.4.191')
  CompilerSet makeprg=zig\ test\ \%:S\ \$* 
else
  CompilerSet makeprg=zig\ test\ \"%\"\ \$* 
endif

let &cpo = s:save_cpo
unlet s:save_cpo
" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab