Skip to content

Commit

Permalink
Update colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Dec 13, 2019
1 parent 34c9684 commit 39f738b
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ export const ElasticsearchSqlHighlightRules = function(this: any) {

const keywordMapper = this.createKeywordMapper(
{
'support.function': builtinFunctions,
keyword: keywords,
'constant.language': builtinConstants,
'storage.type': dataTypes,
keyword: [keywords, builtinFunctions, builtinConstants, dataTypes].join('|'),
},
'identifier',
true
Expand All @@ -76,15 +73,15 @@ export const ElasticsearchSqlHighlightRules = function(this: any) {
regex: '".*?"',
},
{
token: 'string', // ' string
token: 'constant', // ' string
regex: "'.*?'",
},
{
token: 'string', // ` string (apache drill)
regex: '`.*?`',
},
{
token: 'constant.numeric', // float
token: 'entity.name.function', // float
regex: '[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b',
},
{
Expand Down

0 comments on commit 39f738b

Please sign in to comment.