summaryrefslogtreecommitdiff
path: root/rc/base/javascript.kak
diff options
context:
space:
mode:
authorDelapouite <delapouite@gmail.com>2017-03-05 19:25:15 +0100
committerDelapouite <delapouite@gmail.com>2017-03-05 19:25:15 +0100
commitcdb076603c9818a23323190f2217f8bae511c5c8 (patch)
tree62d5d5ec157a6fe867f57f7432c4e5c3f59f1cd3 /rc/base/javascript.kak
parentcc88b0f5861254cd9a95e7289f843e68fb7edbc1 (diff)
Add Symbol, async and await highlighting for javascript.kak
Diffstat (limited to 'rc/base/javascript.kak')
-rw-r--r--rc/base/javascript.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/base/javascript.kak b/rc/base/javascript.kak
index 39c7e1c5..b1983694 100644
--- a/rc/base/javascript.kak
+++ b/rc/base/javascript.kak
@@ -30,11 +30,11 @@ add-highlighter -group /javascript/literal regex \${.*?} 0:value
add-highlighter -group /javascript/code regex \$\w* 0:variable
add-highlighter -group /javascript/code regex \b(document|false|null|parent|self|this|true|undefined|window)\b 0:value
add-highlighter -group /javascript/code regex "-?[0-9]*\.?[0-9]+" 0:value
-add-highlighter -group /javascript/code regex \b(Array|Boolean|Date|Function|Number|Object|RegExp|String)\b 0:type
+add-highlighter -group /javascript/code regex \b(Array|Boolean|Date|Function|Number|Object|RegExp|String|Symbol)\b 0:type
# Keywords are collected at
# https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords
-add-highlighter -group /javascript/code regex \b(break|case|catch|class|const|continue|debugger|default|delete|do|else|export|extends|finally|for|function|if|import|in|instanceof|let|new|of|return|super|switch|throw|try|typeof|var|void|while|with|yield)\b 0:keyword
+add-highlighter -group /javascript/code regex \b(async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|export|extends|finally|for|function|if|import|in|instanceof|let|new|of|return|super|switch|throw|try|typeof|var|void|while|with|yield)\b 0:keyword
# Commands
# ‾‾‾‾‾‾‾‾