annotate runtime/compiler/rhino.vim @ 23529:049b1e867137 v8.2.2307

patch 8.2.2307: a shell command in the vimrc causes terminal output Commit: https://github.com/vim/vim/commit/ebbf11c1198b7aec8a1a55f7231ecb4f1a432fa0 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 7 14:45:03 2021 +0100 patch 8.2.2307: a shell command in the vimrc causes terminal output Problem: A shell command in the vimrc causes terminal output. Solution: Do not call starttermcap() after a shell command if the termcap wasn't active before.
author Bram Moolenaar <Bram@vim.org>
date Thu, 07 Jan 2021 15:00:05 +0100
parents d4c7b3e9cd17
children e1df51f68736
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22171
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim compiler file
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Compiler: Rhino Shell (JavaScript in Java)
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2019 Jul 10
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("current_compiler")
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let current_compiler = "rhino"
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 command -nargs=* CompilerSet setlocal <args>
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 endif
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 let s:cpo_save = &cpo
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 set cpo&vim
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 " CompilerSet makeprg=java\ -jar\ lib/rhino-X.X.XX.jar\ -w\ -strict
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 CompilerSet makeprg=rhino
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 CompilerSet errorformat=%-Gjs:\ %.%#Compilation\ produced%.%#,
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 \%Ejs:\ \"%f\"\\,\ line\ %l:\ %m,
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 \%Ejs:\ uncaught\ JavaScript\ runtime\ exception:\ %m,
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 \%Wjs:\ warning:\ \"%f\"\\,\ line\ %l:\ %m,
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 \%Zjs:\ %p^,
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 \%Cjs:\ %.%#,
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 \%-G%.%#
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 let &cpo = s:cpo_save
d4c7b3e9cd17 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 unlet s:cpo_save