fixed a lexing bug and added translation of shortcut attributes