mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	add COBOL language support
This commit is contained in:
		| @@ -235,6 +235,15 @@ Clojure: | |||||||
|   filenames: |   filenames: | ||||||
|   - riemann.config |   - riemann.config | ||||||
|  |  | ||||||
|  | COBOL: | ||||||
|  |   type: programming | ||||||
|  |   primary_extension: .cob | ||||||
|  |   extensions: | ||||||
|  |   - .cbl | ||||||
|  |   - .cpy | ||||||
|  |   - .cobol | ||||||
|  |   - .ccp | ||||||
|  |  | ||||||
| CoffeeScript: | CoffeeScript: | ||||||
|   type: programming |   type: programming | ||||||
|   ace_mode: coffee |   ace_mode: coffee | ||||||
|   | |||||||
							
								
								
									
										5
									
								
								samples/COBOL/hello_world.cbl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								samples/COBOL/hello_world.cbl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | |||||||
|  |         program-id. hello. | ||||||
|  |         procedure division. | ||||||
|  |         display "Hello, World!". | ||||||
|  |         stop run. | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								samples/COBOL/hello_world.ccp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								samples/COBOL/hello_world.ccp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | |||||||
|  |       IDENTIFICATION DIVISION. | ||||||
|  |       PROGRAM-ID. hello. | ||||||
|  |       PROCEDURE DIVISION. | ||||||
|  |       DISPLAY "Hello World, yet again.". | ||||||
|  |       STOP RUN. | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								samples/COBOL/hello_world.cob
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								samples/COBOL/hello_world.cob
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | |||||||
|  |       IDENTIFICATION DIVISION. | ||||||
|  |       PROGRAM-ID. hello. | ||||||
|  |       PROCEDURE DIVISION. | ||||||
|  |       DISPLAY "Hello World!". | ||||||
|  |       STOP RUN. | ||||||
|  |  | ||||||
							
								
								
									
										7
									
								
								samples/COBOL/simple.cpy
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								samples/COBOL/simple.cpy
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | 01 COBOL-TEST-RECORD. | ||||||
|  |   05 COBOL-TEST-USAGES. | ||||||
|  |     10 COBOL-4-COMP PIC S9(4) COMP. | ||||||
|  |     10 COBOL-8-COMP PIC S9(8) COMP. | ||||||
|  |     10 COBOL-9-COMP PIC S9(9) COMP. | ||||||
|  |     10 COBOL-4-COMP2 PIC S9(4) COMP-2. | ||||||
|  |     10 COBOL-7-COMP2 PIC 9(7) COMP-2. | ||||||
		Reference in New Issue
	
	Block a user