mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Merge pull request #3095 from larsbrinkhoff/gcc-md
GCC machine descriptions
This commit is contained in:
		| @@ -239,6 +239,14 @@ module Linguist | ||||
|       end | ||||
|     end | ||||
|  | ||||
|     disambiguate ".md" do |data| | ||||
|       if /^[-a-z0-9=#!\*\[|]/i.match(data) | ||||
|         Language["Markdown"] | ||||
|       elsif /^(;;|\(define_)/.match(data) | ||||
|         Language["GCC machine description"] | ||||
|       end | ||||
|     end | ||||
|  | ||||
|     disambiguate ".ml" do |data| | ||||
|       if /(^\s*module)|let rec |match\s+(\S+\s)+with/.match(data) | ||||
|         Language["OCaml"] | ||||
|   | ||||
| @@ -1191,6 +1191,13 @@ GAS: | ||||
|   tm_scope: source.assembly | ||||
|   ace_mode: assembly_x86 | ||||
|  | ||||
| GCC Machine Description: | ||||
|   type: programming | ||||
|   extensions: | ||||
|   - .md | ||||
|   tm_scope: source.lisp | ||||
|   ace_mode: lisp | ||||
|  | ||||
| GDScript: | ||||
|   type: programming | ||||
|   extensions: | ||||
|   | ||||
							
								
								
									
										6665
									
								
								samples/GCC Machine Description/pdp10.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6665
									
								
								samples/GCC Machine Description/pdp10.md
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user