fix select-option test and pattern
parser: support escaping ; by doubling it to ;;