From 38e98754a556404b54d3c28b4272bcacbc3b6b0e Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 25 Nov 2023 16:06:58 +0100 Subject: vim-patch:9.0.2128: runtime(swig): add syntax and filetype plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add syntax and filetype plugins for SWIG (Simplified Wrapper Interface Generator) description files. The default syntax for .i files highlights comments in a reverse color scheme which doesn't look well. This syntax builds on vim's c++ syntax by adding highlighting for common swig directives and user defined directives. For an alternative syntax, see vimscript vim/vim#1247 (which I found after writing this). closes: vim/vim#13562 https://github.com/vim/vim/commit/2e31065a650015892179e520038bf2083a9519b6 Co-authored-by: Julien Marrec Co-authored-by: Matěj Cepl --- runtime/lua/vim/filetype.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/lua/vim/filetype.lua') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 217f673b5e..cb2656d9ba 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -984,6 +984,8 @@ local extension = { svelte = 'svelte', svg = 'svg', swift = 'swift', + swig = 'swig', + swg = 'swig', svh = 'systemverilog', sv = 'systemverilog', cmm = 'trace32', @@ -1134,7 +1136,7 @@ local extension = { web = detect.web, pl = detect.pl, pp = detect.pp, - i = detect.progress_asm, + i = detect.i, w = detect.progress_cweb, p = detect.progress_pascal, pro = detect_seq(detect.proto, 'idlang'), -- cgit