From 0e8fecff6ec64cb514624e9c34bbf7d7d4d90ce7 Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Mon, 17 Jul 2017 10:17:20 -0700 Subject: [PATCH] Add lambda to syntax highlighting --- ui/src/external/codemirror.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/external/codemirror.js b/ui/src/external/codemirror.js index 24f06cd81..0c961ee1d 100644 --- a/ui/src/external/codemirror.js +++ b/ui/src/external/codemirror.js @@ -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'},