mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Ruby 1.9 compatibility for convert-grammars
This commit is contained in:
@@ -233,7 +233,7 @@ def generate_yaml(all_scopes, base)
|
||||
out[value] << key
|
||||
end
|
||||
|
||||
yaml = yaml.sort.to_h
|
||||
yaml = Hash[yaml.sort]
|
||||
yaml.each { |k, v| v.sort! }
|
||||
yaml
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user