Add lambda to syntax highlighting

pull/1721/head
Andrew Watkins 2017-07-17 10:17:20 -07:00
parent 9f371f17c2
commit 0e8fecff6e
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ CodeMirror.defineSimpleMode('tickscript', {
// Rules are matched in the order in which they appear, so there is
// no ambiguity between this one and the one above
{
regex: /(?:function|var|return|if|for|while|else|do|this|stream|batch|influxql)\b/,
regex: /(?:var|return|if|for|while|else|do|this|stream|batch|influxql|lambda)/,
token: 'keyword',
},
{regex: /true|false|null|undefined|TRUE|FALSE/, token: 'atom'},