Remove what remains of filetype auto-detection

This commit is contained in:
2025-06-14 14:06:10 -04:00
parent c884c602e3
commit 732f94c3cf
46 changed files with 2 additions and 220 deletions
-5
View File
@@ -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]*"