Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Improve file types list for Ruby syntax (#7022)

Ben Hamment2a2cf45e9094
diff --git a/crates/zed/src/languages/ruby/config.toml b/crates/zed/src/languages/ruby/config.toml
index e522cd06a2f..8f2f1fab978 100644
--- a/crates/zed/src/languages/ruby/config.toml
+++ b/crates/zed/src/languages/ruby/config.toml
@@ -1,5 +1,24 @@
name = "Ruby"
-path_suffixes = ["rb", "Gemfile", "rake", "Rakefile"]
+path_suffixes = [
+ "rb",
+ "Gemfile",
+ "rake",
+ "Rakefile",
+ "ru",
+ "thor",
+ "cap",
+ "capfile",
+ "Capfile",
+ "jbuilder",
+ "rabl",
+ "rxml",
+ "builder",
+ "gemspec",
+ "rdoc",
+ "thor",
+ "pryrc",
+ "simplecov"
+]
first_line_pattern = '^#!.*\bruby\b'
line_comments = ["# "]
autoclose_before = ";:.,=}])>"