mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-29 22:24:35 +00:00 
			
		
		
		
	Make INI syntax register as handler of .inf files
				
					
				
			We need to type `inf` and `INF` as strings in `INI.sublime-syntax`,
otherwise `yaml-rust` interprets them as real numbers ("infinity") and
they do not get registered as file extensions:
    /Users/martin/src/yaml-rust # https://github.com/chyh1990/yaml-rust
    % cargo run --example dump_yaml ~/src/bat/assets/syntaxes/02_Extra/INI.sublime-syntax
    ---
    String("name"):
        String("INI")
    String("file_extensions"):
            String("ini")
            String("INI")
            Real("inf")
            Real("INF")
    ...
Also add a regression test.
			
			
This commit is contained in:
		
							
								
								
									
										4
									
								
								assets/syntaxes/02_Extra/INI.sublime-syntax
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								assets/syntaxes/02_Extra/INI.sublime-syntax
									
									
									
									
										vendored
									
									
								
							| @@ -5,8 +5,8 @@ name: INI | ||||
| file_extensions: | ||||
|   - ini | ||||
|   - INI | ||||
|   - inf | ||||
|   - INF | ||||
|   - "inf" | ||||
|   - "INF" | ||||
|   - reg | ||||
|   - REG | ||||
|   - lng | ||||
|   | ||||
		Reference in New Issue
	
	Block a user