Fixed an unexpected greedy regex, TAB Precedence and mat_tex re-copy.