changeset 31900:e120f9c227e5 v9.0.1282

patch 9.0.1282: Ron files are not recognized Commit: https://github.com/vim/vim/commit/c8ef30bc2eaec956549510cd4b2efc96b7aee563 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Sun Feb 5 14:47:46 2023 +0000 patch 9.0.1282: Ron files are not recognized Problem: Ron files are not recognized. Solution: Recognize Ron files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/11948)
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Feb 2023 16:00:03 +0100
parents e13629a1e661
children e18577c21e54
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1717,12 +1717,15 @@ au BufNewFile,BufRead *.robot,*.resource
 " 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
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1282,
+/**/
     1281,
 /**/
     1280,