; Hack Assembly outline queries ; Show label declarations in the outline (label_declaration (symbol) @name) @item ; Show A-instructions with symbols as outline items (a_instruction (symbol) @name) @item ; Show A-instructions with constants as outline items (a_instruction (constant) @name) @item ; Show C-instructions with jumps as outline items (control flow) (c_instruction (jump) @name) @item ; Show comments that look like section headers (comment) @item (#match? @item "^//\\s*[A-Z].*|^//.*[Ss]ection|^//.*[Pp]art|^//.*[Ff]unction|^//.*[Ll]oop|^//.*[Ee]nd")