@@ -1,33 +1,40 @@
name = "Ruby"
grammar = "ruby"
path_suffixes = [
- "rb",
- "Gemfile",
- "rake",
- "Rakefile",
- "ru",
- "thor",
- "cap",
- "capfile",
- "Capfile",
- "jbuilder",
- "rabl",
- "rxml",
- "builder",
- "gemspec",
- "rdoc",
- "thor",
- "pryrc",
- "simplecov"
+ "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 = ";:.,=}])>"
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"] },
+ { 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 = "# ..."
+word_characters = ["_", "$", "=", "@", "!", ":", "?"]