Tab matching for code and list items