better rule for keyword type completion
fixed #197