From 7dd4e6ecee3365ff790b45b296313131d4ead142 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 10 Feb 2017 01:11:06 +0900 Subject: [PATCH] Add some keywords --- src/common/text/elements/code.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/text/elements/code.js b/src/common/text/elements/code.js index 6f3fc669f2..5056bd137d 100644 --- a/src/common/text/elements/code.js +++ b/src/common/text/elements/code.js @@ -42,6 +42,7 @@ const keywords = [ 'switch', 'match', 'case', + 'default', 'for', 'each', 'in', @@ -52,6 +53,11 @@ const keywords = [ 'do', 'goto', 'end', + 'throw', + 'try', + 'catch', + 'finally', + 'enum', 'function', 'func', 'fn', @@ -59,6 +65,7 @@ const keywords = [ 'async', 'await', 'require', + 'include', 'import', 'export', 'from', @@ -66,7 +73,9 @@ const keywords = [ 'use', 'module', 'struct', + 'union', 'new', + 'delete', 'this', 'super', 'base',