mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-30 22:54:07 +00:00 
			
		
		
		
	#1213 added very basic test file for D
This commit is contained in:
		
				
					committed by
					
						 David Peter
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							3729aefb6f
						
					
				
				
					commit
					5e0a608ea6
				
			
							
								
								
									
										23
									
								
								tests/syntax-tests/highlighted/D/test.d
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								tests/syntax-tests/highlighted/D/test.d
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mstd[0m[38;2;248;248;242m.[0m[38;2;255;255;255mstdio[0m[38;2;248;248;242m;[0m | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mstd[0m[38;2;248;248;242m.[0m[38;2;255;255;255malgorithm[0m[38;2;248;248;242m;[0m | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mstd[0m[38;2;248;248;242m.[0m[38;2;255;255;255mrange[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;117;113;94m/*[0m[38;2;117;113;94m a multiline comment[0m | ||||
| [38;2;117;113;94m*[0m | ||||
| [38;2;117;113;94m*/[0m | ||||
| [3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;166;226;46mthe_ultimate_answer[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m	[0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;190;132;255m42[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;166;226;46mmain[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m | ||||
| [38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m function call with string literal[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello World![0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m an int array declaration[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m[[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;255;255;255marr1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a double[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m [0m[38;2;255;255;255md1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;190;132;255m.[0m[38;2;190;132;255m14[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m another function call [0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242mwritefln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m"[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255marr1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255md1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242mthe_ultimate_answer[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m}[0m | ||||
		Reference in New Issue
	
	Block a user