class_docstr: For Fantom source code.
  
  .. versionadded:: 1.5
class_docstr_tok: ["For","Fantom","source","code",".","..","versionadded",":",":","1.5"]
code: def s(str):
      return Template(str).substitute(
          dict(
              pod=r"[\"\w\.]+",
              eos=r"\n|;",
              id=r"[a-zA-Z_]\w*",
              # all chars which can be part of type definition. Starts with
              # either letter, or [ (maps), or | (funcs)
              type=r"(?:\[|[a-zA-Z_]|\|)[:\w\[\]|\->?]*?",
          )
      )
  
imports: from string import Template
  from pygments.lexer import RegexLexer, include, bygroups, using, this, default, words
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Literal
label_desc: Use image node_id 1 for calling the FantomLexer obj's underlying member method code with example usage: obj.s(str) and returns: Template