#include "StyleLexers.h" // ---------------------------------------------------------------------------- KEYWORDLIST KeyWords_SQL = { // Keywords "abort accessible account action active add admin after against aggregate algorithm all allocate alter always analyse analyze and any as asc ascii asensitive at attach audit authorization authors auto_increment autoextend_size autoincrement avg avg_row_length " "backup before begin between binlog block both break btree buckets by " "cache call cascade cascaded case cast catalog_name chain change changed channel charset check checksum cipher class_origin client clone close cluster coalesce code collate collation column columns column_format column_name comment commit committed compact completion component compressed compression concurrent condition conflict connect connection consistent constraint constraint_catalog constraint_name constraint_schema contains context continue contributors convert cpu create cross cube cume_dist current current_date current_path current_time current_timestamp current_user cursor cursor_name " "data database databases datafile day_hour day_microsecond day_minute day_second deallocate declare default default_auth definer definition deferrable deferred delayed delay_key_write delete dense_rank delimiter desc describe description descriptor des_key_file detach deterministic diagnostics directory disable discard disk disconnect distinct distinctrow div do drop dual dumpfile duplicate dynamic " "each else elseif empty enable enclosed encryption end ends engine engines error errors escape escaped event events every except exception exchange exclude exclusive exec execute exists exit expansion expire explain export extended extent_size external " "fail false fast faults fetch fields file file_block_size filter first first_value flush following follows for force foreign format found frac_second free from full fulltext function " "general generated get get_format get_master_public_key glob global go goto grant grants group grouping groups group_replication " "handler hash having help high_priority hold histogram history host hosts hour_microsecond hour_minute hour_second " "identity identified if ignore ignore_server_ids immediate import in inactive index indexed indexes infile initial_size initially inner innobase innodb inout insensitive insert insert_method install instance instead intersect interval into invoker io io_after_gtids io_before_gtids io_thread ipc is isnull isolation issuer iterate " "join json_table " "key keys key_block_size kill " "lag language last last_value lead leading leave leaves left less level like limit linear lines list load local localtime localtimestamp locator lock locked locks logfile logs loop low_priority " "master master_auto_position master_bind master_connect_retry master_delay master_heartbeat_period master_host master_log_file master_log_pos master_password master_port master_public_key_path master_retry_count master_server_id master_ssl master_ssl_ca master_ssl_capath master_ssl_cert master_ssl_cipher master_ssl_crl master_ssl_crlpath master_ssl_key master_ssl_verify_server_cert master_tls_version master_user match maxvalue max_connections_per_hour max_queries_per_hour max_rows max_size max_statement_time max_updates_per_hour max_user_connections medium memory merge message_text microsecond middleint migrate minute_microsecond minute_second min_rows mod mode modifies modify mutex mysql_errno " "name names national natural ndb ndbcluster nested never new next no nocase nodegroup nonblocking none not notnull nowait no_wait no_write_to_binlog nth_value ntile null nullif nulls number " "of offset old old_password on one one_shot only open optimize optimizer_costs option optional optionally options or order ordinality organization others out outer outfile over owner " "pack_keys page parser parse_gcol_expr partial partition partitioning partitions password path percent_rank persist persist_only phase plan plugin plugins plugin_dir port precedes pragma preceding precision prepare preserve prev primary prior privileges procedure process processlist profile profiles proxy public purge " "quarter query quick " "raise range rank read reads read_only read_write rebuild recover recursive redofile redo_buffer_size redundant reference references regexp reindex relay relaylog relay_log_file relay_log_pos relay_thread release reload remote remove rename reorganize repair repeat repeatable replace replicate_do_db replicate_do_table replicate_ignore_db replicate_ignore_table replicate_rewrite_db replicate_wild_do_table replicate_wild_ignore_table replication require reset resignal resource respect restart restore restrict resume result return returned_sqlstate returning returns reuse reverse revoke right rlike role rollback rollup rotate routine row rowid rows row_count row_format row_number rtree rtrim " "savepoint schedule schema schemas schema_name secondary_engine secondary_load secondary_unload second_microsecond security select sensitive separator sequence serializable server session session_user set share show shutdown signal simple size skip slave slow snapshot socket some soname sounds source spatial specific sql sql_after_gtids sql_after_mts_gaps sql_before_gtids sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sql_thread sql_tsi_day sql_tsi_frac_second sql_tsi_hour sql_tsi_minute sql_tsi_month sql_tsi_quarter sql_tsi_second sql_tsi_week sql_tsi_year sqlexception sqlstate sqlwarning srid ssl stacked start starting starts static stats_auto_recalc stats_persistent stats_sample_pages status stop storage stored straight_join string subclass_origin subject subpartition subpartitions super suspend swaps switches synonym system system_user " "table tables tablespace table_checksum table_name temp temporary temptable terminated than then thread_priority ties timestampadd timestampdiff to trailing transaction trigger triggers true truncate type types " "unbounded uncommitted undefined undo undofile undo_buffer_size unicode uninstall union unique unknown unlock until update upgrade usage use user user_resources use_frm using utc_date utc_time utc_timestamp " "vacuum validation value values variables vcpu view virtual visible " "wait warnings week weight_string when whenever where while window with within without work wrapper write " "x509 xa xid xml xor " "year_month " "zerofill", // Database Objects "", // PLDoc "", // SQL*Plus "", // User Keywords 1 "bigint binary bit blob bool boolean byte char character clob date datetime day dec decimal double enum fixed float float4 float8 hour int int1 int2 int3 int4 int8 integer json long mediumint minute month nchar native nvarchar numeric real second serial signed smallint text time timestamp tinyint unsigned varbinary varchar varcharacter varying year " // (MySQL) "tinyblob mediumblob longblob tinytext mediumtext longtext " "geometry point linestring polygon multipoint multilinestring multipolygon geomcollection geometrycollection", // User Keywords 2 "" // User Keywords 3 "", // User Keywords 4 "", "" }; EDITLEXER lexSQL = { SCLEX_SQL, IDS_LEX_SQL, L"SQL Query", L"sql; mysql; hsql", L"", &KeyWords_SQL, { { {STYLE_DEFAULT}, IDS_LEX_STR_63126, L"Default", L"", L"" }, //{ {SCE_SQL_DEFAULT}, IDS_LEX_STR_63126, L"Default", L"", L"" }, { {SCE_SQL_COMMENT}, IDS_LEX_STR_63127, L"Comment", L"fore:#505050", L"" }, { {SCE_SQL_WORD}, IDS_LEX_STR_63128, L"Keyword", L"bold; fore:#800080", L"" }, { {SCE_SQL_USER1}, IDS_LEX_STR_63286, L"Value Type", L"bold; fore:#000080", L"" }, { {MULTI_STYLE(SCE_SQL_STRING,SCE_SQL_CHARACTER,0,0)}, IDS_LEX_STR_63131, L"String", L"fore:#008000; back:#FFF1A8", L"" }, { {SCE_SQL_IDENTIFIER}, IDS_LEX_STR_63129, L"Identifier", L"fore:#800080", L"" }, { {SCE_SQL_QUOTEDIDENTIFIER}, IDS_LEX_STR_63243, L"Quoted Identifier", L"fore:#800080; back:#FFCCFF", L"" }, { {SCE_SQL_NUMBER}, IDS_LEX_STR_63130, L"Number", L"fore:#FF0000", L"" }, { {SCE_SQL_OPERATOR}, IDS_LEX_STR_63132, L"Operator", L"bold; fore:#800080", L"" }, EDITLEXER_SENTINEL } };