To: vim_dev@googlegroups.com Subject: Patch 8.2.3598 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3598 Problem: RouterOS filetype is not recognized. Solution: Add file and script patterns. (closes #9097) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.3597/runtime/filetype.vim 2021-10-16 13:44:01.208331391 +0100 --- runtime/filetype.vim 2021-11-15 21:41:21.553094796 +0000 *************** *** 1493,1498 **** --- 1493,1501 ---- " Rpcgen au BufNewFile,BufRead *.x setf rpcgen + " MikroTik RouterOS script + au BufRead,BufNewFile *.rsc setf routeros + " reStructuredText Documentation Format au BufNewFile,BufRead *.rst setf rst *** ../vim-8.2.3597/src/testdir/test_filetype.vim 2021-10-16 13:44:01.208331391 +0100 --- src/testdir/test_filetype.vim 2021-11-15 21:41:21.553094796 +0000 *************** *** 420,425 **** --- 420,426 ---- \ 'rnc': ['file.rnc'], \ 'rng': ['file.rng'], \ 'robots': ['robots.txt'], + \ 'routeros': ['file.rsc'], \ 'rpcgen': ['file.x'], \ 'rpl': ['file.rpl'], \ 'rst': ['file.rst'], *************** *** 660,665 **** --- 661,667 ---- \ 'yaml': [['%YAML 1.2']], \ 'pascal': [['#!/path/instantfpc']], \ 'fennel': [['#!/path/fennel']], + \ 'routeros': [['#!/path/rsc']], \ } " Various forms of "env" optional arguments. *** ../vim-8.2.3597/src/version.c 2021-11-15 17:13:07.342685617 +0000 --- src/version.c 2021-11-15 21:42:38.860940932 +0000 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 3598, /**/ -- ARTHUR: Then who is your lord? WOMAN: We don't have a lord. ARTHUR: What? DENNIS: I told you. We're an anarcho-syndicalist commune. We take it in turns to act as a sort of executive officer for the week. The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///