Merge pull request #8 from amrnt/master

Add missing ruby comment syntax and more ruby extensions
This commit is contained in:
Zachary Yedidia
2017-03-30 10:34:49 -04:00
committed by GitHub
+5 -1
View File
@@ -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'?"