summaryrefslogtreecommitdiff
path: root/src/fe_utils/psqlscan.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe_utils/psqlscan.l')
-rw-r--r--src/fe_utils/psqlscan.l9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fe_utils/psqlscan.l b/src/fe_utils/psqlscan.l
index fe74abc1a6c..73eafebefec 100644
--- a/src/fe_utils/psqlscan.l
+++ b/src/fe_utils/psqlscan.l
@@ -296,6 +296,15 @@ identifier {ident_start}{ident_cont}*
typecast "::"
dot_dot \.\.
colon_equals ":="
+
+/*
+ * These operator-like tokens (unlike the above ones) also match the {operator}
+ * rule, which means that they might be overridden by a longer match if they
+ * are followed by a comment start or a + or - character. Accordingly, if you
+ * add to this list, you must also add corresponding code to the {operator}
+ * block to return the correct token in such cases. (This is not needed in
+ * psqlscan.l since the token value is ignored there.)
+ */
equals_greater "=>"
less_equals "<="
greater_equals ">="