9
9
*
10
10
*
11
11
* IDENTIFICATION
12
- * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.110 2003/08/04 02:40:02 momjian Exp $
12
+ * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.111 2003/10/09 19:13:23 petere Exp $
13
13
*
14
14
*-------------------------------------------------------------------------
15
15
*/
@@ -129,7 +129,7 @@ xhcat {quote}{whitespace_with_newline}{quote}
129
129
xnstart [nN ]{quote }
130
130
131
131
/* Extended quote
132
- * xqdouble implements SQL92 embedded quote
132
+ * xqdouble implements embedded quote
133
133
* xqcat allows strings to cross input lines
134
134
*/
135
135
quote '
@@ -166,8 +166,7 @@ xdinside [^"]+
166
166
* 2. In the operator rule, check for slash-star within the operator, and
167
167
* if found throw it back with yyless(). This handles the plus-slash-star
168
168
* problem.
169
- * SQL92-style comments, which start with dash-dash, have similar interactions
170
- * with the operator rule.
169
+ * Dash-dash comments have similar interactions with the operator rule.
171
170
*/
172
171
xcstart \/\* {op_chars }*
173
172
xcstop \* + \/
@@ -210,8 +209,8 @@ param \${integer}
210
209
* In order to make the world safe for Windows and Mac clients as well as
211
210
* Unix ones, we accept either \n or \r as a newline. A DOS-style \r\n
212
211
* sequence will be seen as two successive newlines, but that doesn't cause
213
- * any problems. SQL92-style comments, which start with -- and extend to the
214
- * next newline, are treated as equivalent to a single whitespace character.
212
+ * any problems. Comments that start with -- and extend to the next
213
+ * newline are treated as equivalent to a single whitespace character.
215
214
*
216
215
* NOTE a fine point: if there is no newline following --, we will absorb
217
216
* everything to the end of the input as a comment. This is correct. Older
@@ -231,21 +230,22 @@ comment ("--"{non_newline}*)
231
230
whitespace ({space }+ | {comment })
232
231
233
232
/*
234
- * SQL92 requires at least one newline in the whitespace separating
233
+ * SQL requires at least one newline in the whitespace separating
235
234
* string literals that are to be concatenated. Silly, but who are we
236
235
* to argue? Note that {whitespace_with_newline} should not have * after
237
236
* it, whereas {whitespace} should generally have a * after it...
238
237
*/
239
238
240
- horiz_whitespace ({horiz_space }| {comment })
241
- whitespace_with_newline ({horiz_whitespace }* {newline }{whitespace }* )
239
+ special_whitespace ({space }+ | {comment }{newline })
240
+ horiz_whitespace ({horiz_space }| {comment })
241
+ whitespace_with_newline ({horiz_whitespace }* {newline }{special_whitespace }* )
242
242
243
243
other .
244
244
245
245
/*
246
246
* Quoted strings must allow some special characters such as single-quote
247
247
* and newline.
248
- * Embedded single-quotes are implemented both in the SQL92- standard
248
+ * Embedded single-quotes are implemented both in the SQL standard
249
249
* style of two adjacent single quotes "''" and in the Postgres/Java style
250
250
* of escaped-quote "\'".
251
251
* Other embedded escaped characters are matched explicitly and the leading
@@ -448,12 +448,12 @@ other .
448
448
nchars = slashstar - yytext;
449
449
450
450
/*
451
- * For SQL92 compatibility, '+' and '-' cannot be the
451
+ * For SQL compatibility, '+' and '-' cannot be the
452
452
* last char of a multi-char operator unless the operator
453
- * contains chars that are not in SQL92 operators.
453
+ * contains chars that are not in SQL operators.
454
454
* The idea is to lex '=-' as two operators, but not
455
455
* to forbid operator names like '?-' that could not be
456
- * sequences of SQL92 operators.
456
+ * sequences of SQL operators.
457
457
*/
458
458
while (nchars > 1 &&
459
459
(yytext[nchars-1 ] == ' +' ||
@@ -547,7 +547,7 @@ other .
547
547
* if necessary.
548
548
*
549
549
* Note: here we use a locale-dependent case conversion,
550
- * which seems appropriate under SQL99 rules, whereas
550
+ * which seems appropriate under standard SQL rules, whereas
551
551
* the keyword comparison was NOT locale-dependent.
552
552
*/
553
553
ident = pstrdup (yytext);
0 commit comments