1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-21 10:42:50 +03:00
Files
postgres/src/common/keywords.c
Bruce Momjian c8e1ba736b Update copyright for 2023
Backpatch-through: 11
2023-01-02 15:00:37 -05:00

49 lines
1.1 KiB
C

/*-------------------------------------------------------------------------
*
* keywords.c
* PostgreSQL's list of SQL keywords
*
*
* Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* src/common/keywords.c
*
*-------------------------------------------------------------------------
*/
#include "c.h"
#include "common/keywords.h"
/* ScanKeywordList lookup data for SQL keywords */
#include "kwlist_d.h"
/* Keyword categories for SQL keywords */
#define PG_KEYWORD(kwname, value, category, collabel) category,
const uint8 ScanKeywordCategories[SCANKEYWORDS_NUM_KEYWORDS] = {
#include "parser/kwlist.h"
};
#undef PG_KEYWORD
/* Keyword can-be-bare-label flags for SQL keywords */
#define PG_KEYWORD(kwname, value, category, collabel) collabel,
#define BARE_LABEL true
#define AS_LABEL false
const bool ScanKeywordBareLabel[SCANKEYWORDS_NUM_KEYWORDS] = {
#include "parser/kwlist.h"
};
#undef PG_KEYWORD
#undef BARE_LABEL
#undef AS_LABEL