Similar to how "current documentation" is parsed, I added a "current function" mechanic to the parser and call add_var on both lines with "var" and "local" as their first keyword.