mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Add tm_scope to the BlobHelper
				
					
				
			This commit is contained in:
		@@ -321,6 +321,11 @@ module Linguist
 | 
			
		||||
      language ? language.lexer : Pygments::Lexer.find_by_name('Text only')
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    # Internal: Get the TextMate compatible scope for the blob
 | 
			
		||||
    def tm_scope
 | 
			
		||||
      language && language.tm_scope
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    # Public: Highlight syntax of blob
 | 
			
		||||
    #
 | 
			
		||||
    # options - A Hash of options (defaults to {})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user