mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.4414: solidity files are not recognized (#17451)
Problem: Solidity files are not recognized.
Solution: Add the *.sol pattern. (Dundar Goc, closes vim/vim#9792)
97b231541d
This commit is contained in:
parent
5064ff126d
commit
36362ef0ae
@ -1791,6 +1791,9 @@ au BufNewFile,BufRead *.mib,*.my setf mib
|
||||
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
|
||||
|
||||
|
@ -598,6 +598,7 @@ local extension = {
|
||||
sl = "slang",
|
||||
ice = "slice",
|
||||
score = "slrnsc",
|
||||
sol = "solidity",
|
||||
tpl = "smarty",
|
||||
ihlp = "smcl",
|
||||
smcl = "smcl",
|
||||
|
@ -478,6 +478,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'],
|
||||
|
Loading…
Reference in New Issue
Block a user