mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Merge pull request #277 from crystal-ameba/crystal-1.6
Crystal 1.6 support
This commit is contained in:
		
						commit
						80532da357
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -123,7 +123,7 @@ module Ameba::Rule::Style | ||||||
|           break |           break | ||||||
|         when .ident? |         when .ident? | ||||||
|           next unless in_body |           next unless in_body | ||||||
|           return unless token.value == :begin |           return unless token.value == Crystal::Keyword::BEGIN | ||||||
|           return token.location |           return token.location | ||||||
|         when .op_lparen? |         when .op_lparen? | ||||||
|           in_argument_list = true |           in_argument_list = true | ||||||
|  | @ -143,7 +143,7 @@ module Ameba::Rule::Style | ||||||
|       end_loc = def_end_loc = nil |       end_loc = def_end_loc = nil | ||||||
| 
 | 
 | ||||||
|       while !(token = lexer.next_token).type.eof? |       while !(token = lexer.next_token).type.eof? | ||||||
|         next unless token.value == :end |         next unless token.value == Crystal::Keyword::END | ||||||
| 
 | 
 | ||||||
|         end_loc, def_end_loc = def_end_loc, token.location |         end_loc, def_end_loc = def_end_loc, token.location | ||||||
|       end |       end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue