mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-02-11 02:39:34 +00:00
Fix script/convert-grammars --add
This commit is contained in:
@@ -250,9 +250,10 @@ def main(sources)
|
|||||||
|
|
||||||
all_scopes = {}
|
all_scopes = {}
|
||||||
|
|
||||||
if $options[:add]
|
if source = $options[:add]
|
||||||
Dir.mktmpdir do |tmpdir|
|
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
|
end
|
||||||
generate_yaml(all_scopes, sources)
|
generate_yaml(all_scopes, sources)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user