view runtime/compiler/javac.vim @ 31796:e2fa5867a7bd v9.0.1230

patch 9.0.1230: Apache thrift files are not recognized Commit: https://github.com/vim/vim/commit/f3da4c8427b1b12d7aaffa307ec085ca97ea9ad9 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Sun Jan 22 18:16:44 2023 +0000 patch 9.0.1230: Apache thrift files are not recognized Problem: Apache thrift files are not recognized. Solution: Add a pattern for thrift files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/11859)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Jan 2023 19:30:04 +0100
parents d4c7b3e9cd17
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:	Java Development Kit Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2019 Oct 21

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

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=javac
CompilerSet errorformat=%E%f:%l:\ error:\ %m,
		       \%W%f:%l:\ warning:\ %m,
		       \%-Z%p^,
		       \%-C%.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save