aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_ruby.lua
diff options
context:
space:
mode:
authorSathish Manohar <design.sathish@gmail.com>2022-10-15 20:35:07 +0530
committerGitHub <noreply@github.com>2022-10-15 17:05:07 +0200
commit380f6ef5fe9f8af19cd1f6b4c043eede51cbfcae (patch)
tree440ac3871b102d6b461afd49982f4829cacdbb2c /plugins/language_ruby.lua
parentd4b4452e7cd8c75a98c655c8d6c7f18ae2c404fa (diff)
downloadlite-xl-plugins-380f6ef5fe9f8af19cd1f6b4c043eede51cbfcae.tar.gz
lite-xl-plugins-380f6ef5fe9f8af19cd1f6b4c043eede51cbfcae.zip
Map ruby syntax to Gemfile and Gemfile.lock (#133)2.0
* Map ruby syntax to Gemfile and Gemfile.lock * make syntax match to target end of file name
Diffstat (limited to 'plugins/language_ruby.lua')
-rw-r--r--plugins/language_ruby.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/language_ruby.lua b/plugins/language_ruby.lua
index 3651fb5..85717fe 100644
--- a/plugins/language_ruby.lua
+++ b/plugins/language_ruby.lua
@@ -3,7 +3,7 @@ local syntax = require "core.syntax"
syntax.add {
name = "Ruby",
- files = { "%.rb", "%.gemspec" },
+ files = { "%.rb$", "%.gemspec$", "^Gemfile$", "^Gemfile%.lock$" },
headers = "^#!.*[ /]ruby",
comment = "#",
patterns = {