Add missing ruby comment syntax. Add more ruby extensions

This commit is contained in:
Amr Tamimi
2017-03-30 11:20:40 +02:00
parent 98b6b4f75e
commit f87a95fdca
+5 -1
View File
@@ -1,7 +1,7 @@
filetype: ruby filetype: ruby
detect: detect:
filename: "\\.rb$|\\.gemspec$|Gemfile|config.ru|Rakefile|Capfile|Vagrantfile" filename: "\\.rb$|\\.ru|\\.rbx|\\.rake|\\.gemspec$|Gemfile|Rakefile|Capfile|Vagrantfile"
header: "^#!.*/(env +)?ruby( |$)" header: "^#!.*/(env +)?ruby( |$)"
rules: rules:
@@ -16,6 +16,10 @@ rules:
- special: "#\\{[^}]*\\}" - special: "#\\{[^}]*\\}"
- constant.string: "'([^']|(\\\\'))*'|%[qw]\\{[^}]*\\}|%[qw]\\([^)]*\\)|%[qw]<[^>]*>|%[qw]\\[[^]]*\\]|%[qw]\\$[^$]*\\$|%[qw]\\^[^^]*\\^|%[qw]![^!]*!" - constant.string: "'([^']|(\\\\'))*'|%[qw]\\{[^}]*\\}|%[qw]\\([^)]*\\)|%[qw]<[^>]*>|%[qw]\\[[^]]*\\]|%[qw]\\$[^$]*\\$|%[qw]\\^[^^]*\\^|%[qw]![^!]*!"
- comment: "#[^{].*$|#$" - comment: "#[^{].*$|#$"
- comment:
start: "=begin"
end: "=end"
rules: []
- comment.bright: "##[^{].*$|##$" - comment.bright: "##[^{].*$|##$"
- constant.macro: - constant.macro:
start: "<<-?'?EOT'?" start: "<<-?'?EOT'?"