mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00: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:
		| @@ -1791,6 +1791,9 @@ au BufNewFile,BufRead *.mib,*.my		setf mib | |||||||
| au BufNewFile,BufRead *.hog,snort.conf,vision.conf	setf hog | au BufNewFile,BufRead *.hog,snort.conf,vision.conf	setf hog | ||||||
| au BufNewFile,BufRead *.rules			call dist#ft#FTRules() | au BufNewFile,BufRead *.rules			call dist#ft#FTRules() | ||||||
|  |  | ||||||
|  | " Solidity | ||||||
|  | au BufRead,BufNewFile *.sol			setf solidity | ||||||
|  |  | ||||||
| " SPARQL queries | " SPARQL queries | ||||||
| au BufNewFile,BufRead *.rq,*.sparql		setf sparql | au BufNewFile,BufRead *.rq,*.sparql		setf sparql | ||||||
|  |  | ||||||
|   | |||||||
| @@ -598,6 +598,7 @@ local extension = { | |||||||
|   sl = "slang", |   sl = "slang", | ||||||
|   ice = "slice", |   ice = "slice", | ||||||
|   score = "slrnsc", |   score = "slrnsc", | ||||||
|  |   sol = "solidity", | ||||||
|   tpl = "smarty", |   tpl = "smarty", | ||||||
|   ihlp = "smcl", |   ihlp = "smcl", | ||||||
|   smcl = "smcl", |   smcl = "smcl", | ||||||
|   | |||||||
| @@ -478,6 +478,7 @@ let s:filename_checks = { | |||||||
|     \ 'skill': ['file.il', 'file.ils', 'file.cdf'], |     \ 'skill': ['file.il', 'file.ils', 'file.cdf'], | ||||||
|     \ 'slang': ['file.sl'], |     \ 'slang': ['file.sl'], | ||||||
|     \ 'slice': ['file.ice'], |     \ 'slice': ['file.ice'], | ||||||
|  |     \ 'solidity': ['file.sol'], | ||||||
|     \ 'solution': ['file.sln'], |     \ 'solution': ['file.sln'], | ||||||
|     \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'], |     \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'], | ||||||
|     \ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'], |     \ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'], | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christian Clason
					Christian Clason