/*
  How Properties of Mime Types are used by SQL Mode
  =================================================

  keywords:
    A list of keywords you want to be highlighted.
  builtin:
    A list of builtin types you want to be highlighted (if you want types to be of class "builtin" instead of "keyword").
  operatorChars:
    All characters that must be handled as operators.
  client:
    Commands parsed and executed by the client (not the server).
  support:
    A list of supported syntaxes which are not common, but are supported by more than 1 DBMS.
    * zerolessFloat: .1
    * decimallessFloat: 1.
    * hexNumber: X'01AF' X'01af' x'01AF' x'01af' 0x01AF 0x01af
    * binaryNumber: b'01' B'01' 0b01
    * doubleQuote: "string"
    * escapeConstant: E''
    * nCharCast: N'string'
    * charsetCast: _utf8'string'
    * commentHash: use # char for comments
    * commentSlashSlash: use // for comments
    * commentSpaceRequired: require a space after -- for comments
  atoms:
    Keywords that must be highlighted as atoms,. Some DBMS's support more atoms than others:
    UNKNOWN, INFINITY, UNDERFLOW, NaN...
  dateSQL:
    Used for date/time SQL standard syntax, because not all DBMS's support same temporal types.
*/

/***/

// "identifier"

// 'string', with char specified in quote escaped by '\'

// .1 for 0.1

// 1-line comment

// 1-line comments

// @@prefix.varName @varName

// A generic SQL Mode. It's not a standard, it just tries to support what is generally supported

// CodeMirror, copyright (c) by Marijn Haverbeke and others

// CommonJS

// Created to support specific hive keywords

// Distributed under an MIT license: https://codemirror.net/5/LICENSE

// Esper

// For PostgreSQL - https://www.postgresql.org/docs/11/sql-keywords-appendix.html

// For pl/pgsql lang - https://github.com/postgres/postgres/blob/REL_11_2/src/pl/plpgsql/src/pl_scanner.c

// Google's SQL-like query language, GQL

// Greenplum

// MySQL/MariaDB identifiers

// SQLite is weakly typed, ref: http://sqlite.org/datatype3.html. This is just a list of some common types.

// Spark SQL

// Standard SQL /SQLite identifiers

// The preferred way to escape Identifiers is using double quotes, ref: http://sqlite.org/lang_keywords.html

// Trino (formerly known as Presto)

// \N means NULL

// \g, etc

// `identifier`

// bind-parameters ref:http://sqlite.org/lang_expr.html#varparam

// bitstring

// brackets

// but it also enables 0xFF hex numbers, which Trino doesn't support.

// call hooks from the mime type

// charset casting: _utf8'str', N'str', n'str'

// commands of the official SQLite client, ref: https://www.sqlite.org/cli.html#dotcmd

// dates (standard SQL syntax)

// dates (weird ODBC syntax)

// escape constant: E'str', e'str'

// hex

// hexNumber is necessary for VARBINARY literals, e.g. X'65683F'

// http://www.espertech.com/esper/release-5.5.0/esper-reference/html/appendix_keywords.html

// https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/core/trino-main/src/main/java/io/trino/metadata/TypeRegistry.java#L131-L168

// https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/core/trino-parser/src/main/antlr4/io/trino/sql/parser/SqlBase.g4#L859-L1129

// https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/docs/src/main/sphinx/functions/list.rst

// https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/plugin/trino-geospatial/src/main/java/io/trino/plugin/geospatial/GeoPlugin.java#L37

// https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/plugin/trino-ml/src/main/java/io/trino/plugin/ml/MLPlugin.java#L35

// https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/plugin/trino-mongodb/src/main/java/io/trino/plugin/mongodb/MongoPlugin.java#L32

// https://trino.io/docs/current/functions/list.html#id1

// https://www.postgresql.org/docs/11/datatype.html

// is called Cassandra to avoid confusion with Contextual Query Language

// multi-line comments

// numbers

// operators

// placeholders

// provided by the phpLiteAdmin project - phpliteadmin.org

// punctuation

// ref: http://sqlite.org/lang_expr.html#binaryops

// ref: http://sqlite.org/lang_keywords.html

// ref: http://sqlite.org/syntax/literal-value.html

// ref: http://web.archive.org/web/20160813185132/http://savage.net.au/SQL/sql-99.bnf.html#delimited%20identifier

// ref: https://dev.mysql.com/doc/refman/8.0/en/bit-value-literals.html

// ref: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-literals.html

// ref: https://dev.mysql.com/doc/refman/8.0/en/hexadecimal-literals.html

// ref: https://dev.mysql.com/doc/refman/8.0/en/identifier-qualifiers.html

// ref: https://dev.mysql.com/doc/refman/8.0/en/mysql-commands.html

// ref: https://dev.mysql.com/doc/refman/8.0/en/null-values.html

// ref: https://dev.mysql.com/doc/refman/8.0/en/number-literals.html

// ref: https://dev.mysql.com/doc/refman/8.0/en/string-literals.html

// ref: https://dev.mysql.com/doc/refman/8.0/en/user-variables.html

// ref: https://kb.askmonty.org/en/comment-syntax/

// ref: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS-ESCAPE

// short client keyword token

// strings

// the query language used by Apache Cassandra is called CQL, but this mime type

// there is also support for backticks, ref: http://sqlite.org/lang_keywords.html

// these keywords are used by all SQL dialects (however, a mode can still overwrite it)

// this is based on Peter Raganitsch's 'plsql' mode

// turn a space-separated list into an array

// varName can be quoted with ` or ' or "

// variable token

// variables

//https://github.com/greenplum-db/gpdb/blob/master/src/include/parser/kwlist.h

//ref: http://sqlite.org/lang_keywords.html
