From a74f12dc987cbd8ac619bc5a62f99f04163ba423 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 10 Feb 2017 00:44:42 +0900 Subject: [PATCH] :v: --- src/common/text/elements/code.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/text/elements/code.js b/src/common/text/elements/code.js index 4d6a6bbb8..8dc62270b 100644 --- a/src/common/text/elements/code.js +++ b/src/common/text/elements/code.js @@ -40,6 +40,7 @@ const keywords = [ 'then', 'else', 'switch', + 'match', 'case', 'for', 'each', @@ -291,7 +292,7 @@ const elements = [ const prev = source[i - 1]; if (prev != '.') return null; - const match = code.match(/^[a-zA-Z_-]+/); + const match = code.match(/^[a-zA-Z0-9_-]+/); if (!match) return null; return {