Revert "add some new types and change the type of existing keywords"

This reverts commit fcb4023e52.
This commit is contained in:
Joshua Saxby 2015-03-27 22:11:41 +00:00
commit cc40177114
3 changed files with 6 additions and 14 deletions

View file

@ -38,7 +38,8 @@ var SqlHighlightRules = function() {
var keywords = (
"select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|" +
"when|else|end|type|left|right|join|on|outer|desc|asc|union|create|table"
"when|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|" +
"foreign|not|references|default|null"
);
var builtinConstants = (
@ -50,14 +51,15 @@ var SqlHighlightRules = function() {
);
var dataTypes = (
"int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|timestamp|" +
"money|real|number|integer|timezone|smallint"
"int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|" +
"money|real|number"
);
var keywordMapper = this.createKeywordMapper({
"support.function": builtinFunctions,
"keyword": keywords,
"constant.language": builtinConstants
"constant.language": builtinConstants,
"storage.type": dataTypes
}, "identifier", true);
this.$rules = {
@ -89,9 +91,6 @@ var SqlHighlightRules = function() {
}, {
token : "paren.rparen",
regex : "[\\)]"
}, {
token : "keyword.keyword",
regex : "(primary key)|if|(foreign key)|not|references|default|null|set|(drop database)|(drop table)"
}, {
token : "text",
regex : "\\s+"

View file

@ -1,7 +0,0 @@
define(function(require, exports, module) {
"use strict";
exports.snippetText = require("../requirejs/text!./mask.snippets");
exports.scope = "mask";
});