view runtime/compiler/gjs.vim @ 32210:012facc8e25c v9.0.1436

patch 9.0.1436: cannot compare a typed variable with v:none Commit: https://github.com/vim/vim/commit/2ed57ac3675624b9d943d7753f48855e5dbebdbb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 1 22:05:38 2023 +0100 patch 9.0.1436: cannot compare a typed variable with v:none Problem: Cannot compare a typed variable with v:none. Solution: Allow for "x is v:none" and "x isnot v:none". (issue https://github.com/vim/vim/issues/12194)
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Apr 2023 23:15:03 +0200
parents 0db0640e16e0
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:	GJS (Gnome JavaScript Bindings)
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2019 Jul 10

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

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=gjs
CompilerSet errorformat=%.%#JS\ %tRROR:\ %m\ @\ %f:%c,
		       \%E%.%#JS\ ERROR:\ %m,
		       \%Z@%f:%l:%c,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save