From 4d12e750ae2b923878927eddf062851df10362e8 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Fri, 19 Apr 2019 12:31:39 +0200 Subject: [PATCH] Highlight JavaScript accessors --- rc/filetype/javascript.kak | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index 4d16ee68a..426ca8090 100644 --- a/rc/filetype/javascript.kak +++ b/rc/filetype/javascript.kak @@ -86,7 +86,9 @@ define-command -hidden init-javascript-filetype -params 1 %~ # Keywords are collected at # https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords - add-highlighter "shared/%arg{1}/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|static|super|switch|throw|try|typeof|var|void|while|with|yield)\b 0:keyword + # https://developer.mozilla.org/docs/Web/JavaScript/Reference/Functions/get + # https://developer.mozilla.org/docs/Web/JavaScript/Reference/Functions/set + add-highlighter "shared/%arg{1}/code/" regex \b(async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|export|extends|finally|for|function|get|if|import|in|instanceof|let|new|of|return|set|static|super|switch|throw|try|typeof|var|void|while|with|yield)\b 0:keyword # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾