mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	clint.py: a function name starting with for is not a for statement
This commit is contained in:
		
							
								
								
									
										2
									
								
								clint.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								clint.py
									
									
									
									
									
								
							| @@ -2552,7 +2552,7 @@ def CheckBraces(filename, clean_lines, linenum, error): | |||||||
|  |  | ||||||
|     # If should always have a brace |     # If should always have a brace | ||||||
|     for blockstart in ('if', 'while', 'for'): |     for blockstart in ('if', 'while', 'for'): | ||||||
|         if Match(r'\s*{0}[^{{]*$'.format(blockstart), line): |         if Match(r'\s*{0}(?!\w)[^{{]*$'.format(blockstart), line): | ||||||
|             pos = line.find(blockstart) |             pos = line.find(blockstart) | ||||||
|             pos = line.find('(', pos) |             pos = line.find('(', pos) | ||||||
|             if pos > 0: |             if pos > 0: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Björn Linse
					Björn Linse