class Rouge::Lexers::Hack
Public Class Methods
Source
# File lib/rouge/lexers/hack.rb, line 14 def self.detect?(text) return true if text.start_with?('<?hh') return true if text.shebang?('hhvm') return false end
Source
# File lib/rouge/lexers/hack.rb, line 21 def self.keywords @keywords ||= super.merge Set.new %w( type newtype enum as super async await Awaitable vec dict keyset void int string bool float double arraykey num Stringish ) end
Calls superclass method