summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Sprague2023-05-26 08:43:15 +0000
committerGitHub2023-05-26 08:43:15 +0000
commit16375cd94ad94eb07efa5d74d4f8d03f2b205811 (patch)
treeab76742d8d29096a8424119c92e8e6e67b86859f
parent0c21c227e1ca9d5681dc7e08739b28458c346692 (diff)
Treat 'Vagrantfile' files as Ruby code (#7112)
`Vagrantfile`s are configuration files for the [vagrant](https://www.vagrantup.com/) tool, and they are written in Ruby. Even as vagrant [is ported to Go](https://www.hashicorp.com/blog/toward-vagrant-3-0), `Vagrantfile`s [will be written in Ruby](https://developer.hashicorp.com/vagrant/docs/experimental/vagrant_go) When a Vangrantfile is created, it starts with these lines: ``` ``` But since Helix (quite reasonably) doesn't change editor behavior based on file contents, adding this to `languages.toml` seems like a reasonable way to get this functionality.
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 423ade69..0b35495b 100644
--- a/languages.toml
+++ b/languages.toml
@@ -677,7 +677,7 @@ source = { git = "https://github.com/nix-community/tree-sitter-nix", rev = "1b69
name = "ruby"
scope = "source.ruby"
injection-regex = "ruby"
-file-types = ["rb", "rake", "rakefile", "irb", "gemfile", "gemspec", "Rakefile", "Gemfile", "rabl", "jbuilder", "jb", "Podfile", "podspec"]
+file-types = ["rb", "rake", "rakefile", "irb", "gemfile", "gemspec", "Rakefile", "Gemfile", "rabl", "jbuilder", "jb", "Podfile", "podspec", "Vagrantfile"]
shebangs = ["ruby"]
roots = []
comment-token = "#"