mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Support of the .vh file extension for SystemVerilog
This commit is contained in:
		| @@ -1660,6 +1660,7 @@ SystemVerilog: | |||||||
|   primary_extension: .sv |   primary_extension: .sv | ||||||
|   extensions: |   extensions: | ||||||
|   - .svh |   - .svh | ||||||
|  |   - .vh | ||||||
|  |  | ||||||
| TOML: | TOML: | ||||||
|   type: data |   type: data | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								samples/SystemVerilog/util.vh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								samples/SystemVerilog/util.vh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | |||||||
|  | function integer log2; | ||||||
|  |   input integer x; | ||||||
|  |   begin | ||||||
|  |     x = x-1; | ||||||
|  |     for (log2 = 0; x > 0; log2 = log2 + 1) | ||||||
|  |       x = x >> 1; | ||||||
|  |   end | ||||||
|  | endfunction | ||||||
		Reference in New Issue
	
	Block a user