mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 07:04:04 +00:00 
			
		
		
		
	Add syntax highlighting test file for INI (#1213)
This commit is contained in:
		
				
					committed by
					
						 David Peter
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							c97aa55163
						
					
				
				
					commit
					975487f630
				
			
							
								
								
									
										18
									
								
								tests/syntax-tests/highlighted/INI/test.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								tests/syntax-tests/highlighted/INI/test.ini
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | [38;2;248;248;242m[[0m[38;2;166;226;46msection[0m[38;2;248;248;242m][0m | ||||||
|  | [38;2;249;38;114mkey[0m[38;2;248;248;242m=[0m[38;2;230;219;116mvalue[0m | ||||||
|  | [38;2;249;38;114mnumeric[0m[38;2;248;248;242m [0m[38;2;248;248;242m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m42[0m | ||||||
|  | [38;2;249;38;114mquotes[0m[38;2;248;248;242m=[0m[38;2;248;248;242m"[0m[38;2;230;219;116mthis value is quoted[0m[38;2;248;248;242m"[0m | ||||||
|  | [38;2;249;38;114mquotes2[0m[38;2;248;248;242m=[0m[38;2;248;248;242m"[0m[38;2;230;219;116mthis is not a comment ;foo[0m[38;2;248;248;242m"[0m | ||||||
|  | [38;2;249;38;114mdifferent_quotes[0m[38;2;248;248;242m=[0m[38;2;248;248;242m'[0m[38;2;230;219;116mthese are other characters[0m[38;2;248;248;242m'[0m | ||||||
|  |  | ||||||
|  | [38;2;248;248;242m[[0m[38;2;166;226;46manother one[0m[38;2;248;248;242m][0m | ||||||
|  | [38;2;249;38;114mfirst[0m[38;2;248;248;242m [0m[38;2;248;248;242m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mvalue[0m | ||||||
|  | [38;2;117;113;94m;[0m[38;2;117;113;94m comment on own line[0m | ||||||
|  | [38;2;117;113;94m;[0m[38;2;117;113;94manother one[0m | ||||||
|  | [38;2;249;38;114msecond[0m[38;2;248;248;242m=[0m[38;2;230;219;116mvalue[0m[38;2;248;248;242m [0m[38;2;117;113;94m; comment at the end of a line[0m | ||||||
|  | [38;2;249;38;114mthird[0m[38;2;248;248;242m [0m[38;2;248;248;242m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mvalue[0m[38;2;117;113;94m;another one[0m | ||||||
|  | [38;2;117;113;94m#[0m[38;2;117;113;94m is this a comment? maybe.[0m | ||||||
|  |  | ||||||
|  | [38;2;248;248;242m[[0m[38;2;166;226;46msection.with.dots[0m[38;2;248;248;242m][0m | ||||||
|  | [38;2;248;248;242m[[0m[38;2;166;226;46msection\with\backspaces[0m[38;2;248;248;242m][0m | ||||||
|  | [38;2;248;248;242m[[0m[38;2;166;226;46msection;with;semicola[0m[38;2;248;248;242m][0m | ||||||
							
								
								
									
										18
									
								
								tests/syntax-tests/source/INI/test.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								tests/syntax-tests/source/INI/test.ini
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | [section] | ||||||
|  | key=value | ||||||
|  | numeric = 42 | ||||||
|  | quotes="this value is quoted" | ||||||
|  | quotes2="this is not a comment ;foo" | ||||||
|  | different_quotes='these are other characters' | ||||||
|  |  | ||||||
|  | [another one] | ||||||
|  | first = value | ||||||
|  | ; comment on own line | ||||||
|  | ;another one | ||||||
|  | second=value ; comment at the end of a line | ||||||
|  | third = value;another one | ||||||
|  | # is this a comment? maybe. | ||||||
|  |  | ||||||
|  | [section.with.dots] | ||||||
|  | [section\with\backspaces] | ||||||
|  | [section;with;semicola] | ||||||
		Reference in New Issue
	
	Block a user