mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Fix script/convert-grammars --add
This commit is contained in:
		| @@ -250,9 +250,10 @@ def main(sources) | ||||
|  | ||||
|   all_scopes = {} | ||||
|  | ||||
|   if $options[:add] | ||||
|   if source = $options[:add] | ||||
|     Dir.mktmpdir do |tmpdir| | ||||
|       install_grammar(tmpdir, ARGV[0], all_scopes) | ||||
|       grammars = load_grammars(tmpdir, source, all_scopes) | ||||
|       install_grammars(grammars, source) if $options[:install] | ||||
|     end | ||||
|     generate_yaml(all_scopes, sources) | ||||
|   else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user