Hello, this pull request changes the indentation level for Ruby language from 2 spaces to the most used setting in the Ruby world: 2 spaces per indentation level. This setting is mentioned in the [Ruby style guide from the Rubocop (Ruby linter and formatter) team](https://rubystyle.guide/#spaces-indentation) and/or in another popular Rubocop configuration tool - [`standardrb`](https://github.com/standardrb/standard/blob/main/config/base.yml#L233) Thanks! Release Notes: - N/A
42 lines
883 B
TOML
42 lines
883 B
TOML
name = "Ruby"
|
|
grammar = "ruby"
|
|
path_suffixes = [
|
|
"rb",
|
|
"Gemfile",
|
|
"Guardfile",
|
|
"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 = ";:.,=}])>"
|
|
brackets = [
|
|
{ start = "{", end = "}", close = true, newline = true },
|
|
{ start = "[", end = "]", close = true, newline = true },
|
|
{ start = "(", end = ")", close = true, newline = true },
|
|
{ start = "\"", end = "\"", close = true, newline = false, not_in = [
|
|
"comment",
|
|
"string",
|
|
] },
|
|
{ start = "'", end = "'", close = true, newline = false, not_in = [
|
|
"comment",
|
|
"string",
|
|
] },
|
|
]
|
|
collapsed_placeholder = "# ..."
|
|
tab_size = 2
|