class Rouge::Lexers::Shell
Constants
- BUILTINS
- KEYWORDS
Public Class Methods
detect?(text)
click to toggle source
# File lib/rouge/lexers/shell.rb, line 20 def self.detect?(text) return true if text.shebang?(/(ba|z|k)?sh/) return true if text.start_with?('#compdef', '#autoload') end