mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-31 22:36:27 -04:00
Remove what remains of filetype auto-detection
This commit is contained in:
@@ -5,11 +5,6 @@ package syntax
|
||||
func init() {
|
||||
syntaxMap["ruby"] = &lazySyntax{init: func() []byte {
|
||||
return []byte(`filetype: ruby
|
||||
|
||||
detect:
|
||||
filename: "\\.rb$|\\.ru|\\.rbx|\\.rake|\\.gemspec$|Gemfile|Rakefile|Capfile|Vagrantfile"
|
||||
header: "^#!.*/(env +)?ruby( |$)"
|
||||
|
||||
rules:
|
||||
- statement: "\\b(BEGIN|END|alias|and|begin|break|case|class|def|defined\\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\\b"
|
||||
- constant: "(\\$|@|@@)?\\b[A-Z]+[0-9A-Z_a-z]*"
|
||||
|
||||
Reference in New Issue
Block a user