class_docstr: For Tcl source code.
  
  .. versionadded:: 0.10
class_docstr_tok: ["For","Tcl","source","code",".","..","versionadded",":",":","0.10"]
code: def _gen_command_rules(keyword_cmds_re, builtin_cmds_re, context=""):
      return [
          (keyword_cmds_re, Keyword, "params" + context),
          (builtin_cmds_re, Name.Builtin, "params" + context),
          (r"([\w.-]+)", Name.Variable, "params" + context),
          (r"#", Comment, "comment"),
      ]
  
imports: from pygments.lexer import RegexLexer, include, words
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Whitespace
  from pygments.util import shebang_matches
label_desc: Use image node_id 1 for calling the TclLexer obj's underlying member method code with example usage: obj._gen_command_rules(keyword_cmds_re, builtin_cmds_re, context) and returns: list