[Parser] Fixed parsing attributes. Fixes a 'sort import' bug.