Fix keyword error where expressions ending in .* consumes EOL