From 380f6ef5fe9f8af19cd1f6b4c043eede51cbfcae Mon Sep 17 00:00:00 2001 From: Sathish Manohar Date: Sat, 15 Oct 2022 20:35:07 +0530 Subject: Map ruby syntax to Gemfile and Gemfile.lock (#133) * Map ruby syntax to Gemfile and Gemfile.lock * make syntax match to target end of file name --- plugins/language_ruby.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = { -- cgit v1.2.3