Mercurial > vim
changeset 27776:addcf70c8346 v8.2.4414
patch 8.2.4414: solidity files are not recognized
Commit: https://github.com/vim/vim/commit/97b231541d4e82fbc85e51121448d95bd43c50ad
Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Date: Fri Feb 18 13:45:55 2022 +0000
patch 8.2.4414: solidity files are not recognized
Problem: Solidity files are not recognized.
Solution: Add the *.sol pattern. (Dundar Goc, closes https://github.com/vim/vim/issues/9792)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 18 Feb 2022 15:00:05 +0100 |
parents | f57ab8ad8edc |
children | 95c4f1b1421b |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1795,6 +1795,9 @@ au BufNewFile,BufRead *.mib,*.my setf m au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog au BufNewFile,BufRead *.rules call dist#ft#FTRules() +" Solidity +au BufRead,BufNewFile *.sol setf solidity + " SPARQL queries au BufNewFile,BufRead *.rq,*.sparql setf sparql
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -480,6 +480,7 @@ let s:filename_checks = { \ 'skill': ['file.il', 'file.ils', 'file.cdf'], \ 'slang': ['file.sl'], \ 'slice': ['file.ice'], + \ 'solidity': ['file.sol'], \ 'solution': ['file.sln'], \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'], \ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'],