-
-
Save 0x0dea/e5e71cbe208a1f5decfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/parse.y b/parse.y | |
index 49833e0..b0c52c1 100644 | |
--- a/parse.y | |
+++ b/parse.y | |
@@ -7983,6 +7983,13 @@ parse_ident(struct parser_params *parser, int c, int cmd_state) | |
else { | |
pushback(c); | |
} | |
+ c = nextc(); | |
+ if ((c == '!' || c == '?') && c != toklast()) { | |
+ tokadd(c); | |
+ } | |
+ else { | |
+ pushback(c); | |
+ } | |
tokfix(); | |
if (toklast() == '!' || toklast() == '?') { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment