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'?"