components/prism-sql.js


Log

Author Commit Date CI Message
Michael Schmidt 42d119a2 2018-08-23T16:47:45 SQL Quoted variables are now greedy (#1510) Behavior with quoted variables was incorrect for SQL. This fixes that issue by introducing a new regex for variables and making the current regex greedy. Fixes #1509.
Michael Schmidt a59a7926 2018-08-19T16:47:52 Added support for quote escapes to SQL strings (#1500) Fixes #1454. Quotes that are escaped by using the same quote twice (e.g. 'It''s me') are now supported.
Golmote 238b1952 2018-04-05T08:33:59 SQL: Add missing keywords. Fix #1374 UNLOCK, PREPARE, LOOP, ITERATE, REPEAT, LEAVE, RESIGNAL
Golmote 12c0b20a 2018-03-08T22:19:01 Decouple minus sign from number pattern in most languages. Close #1110
Golmote de29d4a3 2018-03-07T08:50:40 SQL: Add missing keywords and functions, fix numbers
Golmote a6244a40 2017-10-22T15:27:29 SQL: Regexp optimisation
Valtteri Laitinen 8aa2cc4a 2017-05-08T13:56:50 Replace [\w\W] with [\s\S] and [0-9] with \d in regexes (#1107) * Replace [\w\W] with [^] and [0-9] with \d in regexes * Replace [\s\S] with [^] * Replace [^] with [\s\S]
Golmote 7549eccb 2017-02-08T23:23:24 Add missing greedy config in APL, AutoIt, Dart, Elixir, Erlang, F#, Go, Haxe, Icon, Inform7, J, Makefile, Mel, Nim, Nix, NSIS, OCaml, Oz, Pari/GP, Parser, Pascal, Perl, Prolog, Pure, Qore, R, Rip, Ruby, Rust, SAS, Scheme, SQL, Stylus, Tcl and Verilog
Noah Kaplan a9ef24e3 2016-05-25T11:50:45 add delimeter keywords to sql
Noah Kaplan caea2afe 2016-05-15T20:38:26 add auto_increment and date sql keywords
Golmote d49fec0a 2015-08-30T23:50:04 SQL: Simplified regexp + fixed keywords and operators + add CHARSET keyword
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Lea Verou f2984edb 2014-09-11T18:40:27 Added SQL variable support
Lea Verou 13d69762 2014-09-11T03:37:35 SQL improvements: Added TEMP keyword
Lea Verou 94a8fd1b 2014-09-10T04:01:25 SQL improvements: added function token (perhaps should be `aggregate` and aliased to function), improved operators a bit, converted regex groups to non capturing
MathieuAlphamosa 069fa6d8 2014-06-30T11:17:22 Update prism-sql.js Faster and more reliable http://jsperf.com/javascript-multiline-regexp-workarounds
MathieuAlphamosa 42ab9b44 2014-06-27T11:11:22 SQL : Multi lines strings 'string' regex modified to accept line breaks as SQL strings can use them.
Jeroen Visser 9fdcf0b3 2014-03-23T13:38:52 Added support for MySQL single line comment Added an extra hash to support MySQL single line comments
dorfire 0df2df06 2013-05-14T11:44:17 deleted the duplicate occurrence of the "AS" keyword
Petros Kyladitis 86ab8b7d 2013-02-08T02:09:30 add SQL syntax highlighters, update code.js, cut 2 bytes from python.min.js