Skip to content

Commit

Permalink
[sql mode] MySQL/MariaDB: add client commands \! \? \. \#
Browse files Browse the repository at this point in the history
  • Loading branch information
santec authored and marijnh committed Jun 12, 2013
1 parent 40e527c commit cf4f05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/sql/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ CodeMirror.defineMode("sql", function(config, parserConfig) {
}
// \g, etc
// ref: http://dev.mysql.com/doc/refman/5.5/en/mysql-commands.html
return stream.match(/^[a-zA-Z]\b/) ? "variable-2" : null;
return stream.match(/^[a-zA-Z.#!?]/) ? "variable-2" : null;
}

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

0 comments on commit cf4f05d

Please sign in to comment.