From f87a95fdca21b9634d068e76449e5c42229cd849 Mon Sep 17 00:00:00 2001 From: Amr Tamimi Date: Thu, 30 Mar 2017 10:49:19 +0200 Subject: [PATCH] Add missing ruby comment syntax. Add more ruby extensions --- syntax_files/ruby.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax_files/ruby.yaml b/syntax_files/ruby.yaml index b0b1816..3e62e88 100644 --- a/syntax_files/ruby.yaml +++ b/syntax_files/ruby.yaml @@ -1,7 +1,7 @@ filetype: ruby detect: - filename: "\\.rb$|\\.gemspec$|Gemfile|config.ru|Rakefile|Capfile|Vagrantfile" + filename: "\\.rb$|\\.ru|\\.rbx|\\.rake|\\.gemspec$|Gemfile|Rakefile|Capfile|Vagrantfile" header: "^#!.*/(env +)?ruby( |$)" rules: @@ -16,6 +16,10 @@ rules: - special: "#\\{[^}]*\\}" - constant.string: "'([^']|(\\\\'))*'|%[qw]\\{[^}]*\\}|%[qw]\\([^)]*\\)|%[qw]<[^>]*>|%[qw]\\[[^]]*\\]|%[qw]\\$[^$]*\\$|%[qw]\\^[^^]*\\^|%[qw]![^!]*!" - comment: "#[^{].*$|#$" + - comment: + start: "=begin" + end: "=end" + rules: [] - comment.bright: "##[^{].*$|##$" - constant.macro: start: "<<-?'?EOT'?"