From fdfb65194cf82edef2e1992db1c61f309ef1b64f Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Fri, 11 Jul 2014 01:38:24 +0200 Subject: [PATCH] highlight '$' identifiers --- rc/javascript.kak | 1 + 1 file changed, 1 insertion(+) diff --git a/rc/javascript.kak b/rc/javascript.kak index ab99ba67..f83f7ea5 100644 --- a/rc/javascript.kak +++ b/rc/javascript.kak @@ -27,6 +27,7 @@ addhl -group /javascript/single_string fill string addhl -group /javascript/regex fill macro addhl -group /javascript/comment fill comment +addhl -group /javascript/code regex \$\w* 0:identifier addhl -group /javascript/code regex \<(document|false|null|parent|self|this|true|undefined|window)\> 0:value addhl -group /javascript/code regex \<(Array|Boolean|Date|Function|Number|Object|RegExp|String)\> 0:type