class Rouge::Lexers::TCL
def self.gen_command_state(name='')
def self.gen_command_state(name='') state(:"command#{name}") do mixin :word rule %r/##{NOT_CHARS[END_LINE]}+/, Comment::Single rule %r/(?=#{CHARS[END_WORD]})/ do push :"params#{name}" end rule %r/#{NOT_CHARS[END_WORD]}+/ do |m| if KEYWORDS.include? m[0] token Keyword elsif BUILTINS.include? m[0] token Name::Builtin else token Text end end mixin :whitespace end end