mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-04 08:07:14 -04:00
Add missing ruby comment syntax. Add more ruby extensions
This commit is contained in:
@@ -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'?"
|
||||||
|
|||||||
Reference in New Issue
Block a user