]> granicus.if.org Git - vim/commitdiff
patch 9.0.1282: Ron files are not recognized v9.0.1282
authorAmaan Qureshi <amaanq12@gmail.com>
Sun, 5 Feb 2023 14:47:46 +0000 (14:47 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 5 Feb 2023 14:47:46 +0000 (14:47 +0000)
Problem:    Ron files are not recognized.
Solution:   Recognize Ron files. (Amaan Qureshi, closes #11948)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index b4a95641818d0ced3dfb03ceee38d87671a5662b..c0c87ff177c4cd993bbb07a4f49bbb78c973af77 100644 (file)
@@ -1717,12 +1717,15 @@ au BufNewFile,BufRead *.robot,*.resource        setf robot
 " Robots.txt
 au BufNewFile,BufRead robots.txt               setf robots
 
-" Rpcgen
-au BufNewFile,BufRead *.x                      setf rpcgen
+" RON (Rusty Object Notation)
+au BufNewFile,BufRead *.ron                    setf ron
 
 " MikroTik RouterOS script
 au BufRead,BufNewFile *.rsc                    setf routeros
 
+" Rpcgen
+au BufNewFile,BufRead *.x                      setf rpcgen
+
 " reStructuredText Documentation Format
 au BufNewFile,BufRead *.rst                    setf rst
 
index 9cbc5852c65ef55f1778e0fbeca1b85c09486e4f..ed4a86337e6f6889063774d31d7b17786f8a0626 100644 (file)
@@ -488,6 +488,7 @@ let s:filename_checks = {
     \ 'rnoweb': ['file.rnw', 'file.snw'],
     \ 'robot': ['file.robot', 'file.resource'],
     \ 'robots': ['robots.txt'],
+    \ 'ron': ['file.ron'],
     \ 'routeros': ['file.rsc'],
     \ 'rpcgen': ['file.x'],
     \ 'rpl': ['file.rpl'],
index d1858524854ecef6a1e843c8f8233c5faca8a19e..2f5e3bffa57f438effc57c0cea9f0699a27288ec 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1282,
 /**/
     1281,
 /**/