summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaan Q <amaanq12@gmail.com>2023-01-10 19:58:35 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-10 19:58:35 +0000
commit9a9432d3a223f7fbd902a0346030422ae0a97f0e (patch)
tree4bb1b2b0c09b4786cabb42749910ff66ff7e831b
parenta47c0fb4adb43d16601e9d3bd0c2b22fdedab5b4 (diff)
downloadvim-git-9.0.1174.tar.gz
patch 9.0.1174: smali files are not recognizedv9.0.1174
Problem: Smali files are not recognized. Solution: Add a pattern for Smali files. (Amaan Qureshi, closes #11801)
-rw-r--r--runtime/filetype.vim3
-rw-r--r--src/testdir/test_filetype.vim1
-rw-r--r--src/version.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 22f6d1c41..e496b5beb 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1897,6 +1897,9 @@ au BufNewFile,BufRead *.il,*.ils,*.cdf setf skill
au BufNewFile,BufRead .slrnrc setf slrnrc
au BufNewFile,BufRead *.score setf slrnsc
+" Smali
+au BufNewFile,BufRead *.smali setf smali
+
" Smalltalk
au BufNewFile,BufRead *.st setf st
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 9dfb1a492..dc402dc6e 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -524,6 +524,7 @@ let s:filename_checks = {
\ 'slrnrc': ['.slrnrc'],
\ 'slrnsc': ['file.score'],
\ 'sm': ['sendmail.cf'],
+ \ 'smali': ['file.smali'],
\ 'smarty': ['file.tpl'],
\ 'smcl': ['file.hlp', 'file.ihlp', 'file.smcl'],
\ 'smith': ['file.smt', 'file.smith'],
diff --git a/src/version.c b/src/version.c
index ebe699f44..47ef86080 100644
--- 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 */
/**/
+ 1174,
+/**/
1173,
/**/
1172,