11. A system comprising: a processor; and instructions stored on a machine-readable storage medium coupled to the processor, the instructions executable by the processor to implement an incremental hierarchical parser configured to tokenize a file to form a hierarchical tree representing the file, and a modification event component configured to detect a modification of the file; wherein the incremental hierarchical parser is further configured to delete a portion of the hierarchical tree based at least in part on the modification corresponding to deleting a portion of the file; determine a last node in the deleted portion of the hierarchical tree, and populate at least one sub-tree with nodes associated with the last node in the deleted portion of the hierarchical tree; and insert the at least one sub-tree into the hierarchical tree following the deletion of the portion of the hierarchical tree.
11. A system comprising: a processor; and instructions stored on a machine-readable storage medium coupled to the processor, the instructions executable by the processor to implement an incremental hierarchical parser configured to tokenize a file to form a hierarchical tree representing the file, and a modification event component configured to detect a modification of the file; wherein the incremental hierarchical parser is further configured to delete a portion of the hierarchical tree based at least in part on the modification corresponding to deleting a portion of the file; determine a last node in the deleted portion of the hierarchical tree, and populate at least one sub-tree with nodes associated with the last node in the deleted portion of the hierarchical tree; and insert the at least one sub-tree into the hierarchical tree following the deletion of the portion of the hierarchical tree. 12. The system of claim 11 , further comprising a tree search component configured to search the hierarchical tree based on the modification.