bug fix & typo fix
This commit is contained in:
parent
d89311e596
commit
ee90854917
2 changed files with 16 additions and 9 deletions
|
|
@ -121,10 +121,12 @@ var SqlServerHighlightRules = function() {
|
|||
|
||||
// createKeywordMapper ignores case which we want because SqlServer keywords are not case sensitive which causes our keywords to get changed to lowercase.
|
||||
// However, the preferred standard for keywords is uppercase, so this transforms them back to uppercase for code completion
|
||||
// EXCEPTION: build in stored procedures are lower case
|
||||
// EXCEPTION: built in stored procedures are lower case
|
||||
builtInStoredProcedures = builtInStoredProcedures.split('|');
|
||||
for (var i = 0; i < this.$keywordList.length; i++) {
|
||||
var keyword = this.$keywordList[i];
|
||||
if (builtInStoredProcedures.indexOf(keyword) !== -1) continue;
|
||||
|
||||
this.$keywordList[i] = keyword.toUpperCase();
|
||||
}
|
||||
|
||||
|
|
@ -171,7 +173,7 @@ var SqlServerHighlightRules = function() {
|
|||
regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
||||
}, {
|
||||
token: keywordMapper,
|
||||
regex: "@{0,2}[a-zA-Z_$][a-zA-Z0-9_$]*\\b" //up to 2 @symbols for some build in functions
|
||||
regex: "@{0,2}[a-zA-Z_$][a-zA-Z0-9_$]*\\b" //up to 2 @symbols for some built in functions
|
||||
}, {
|
||||
token: "constant.class",
|
||||
regex: "@@?[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue