From fee06e88890ef915d278b04a5c387424004148d5 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 15 Dec 2015 04:38:26 +0000 Subject: [PATCH] Tweak javascript highlighting Fixes #531 --- rc/javascript.kak | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/rc/javascript.kak b/rc/javascript.kak index 86e0b9f3..325ce6fb 100644 --- a/rc/javascript.kak +++ b/rc/javascript.kak @@ -13,24 +13,23 @@ hook global BufCreate .*[.](js) %{ # ‾‾‾‾‾‾‾‾‾‾‾‾ addhl -group / regions -default code javascript \ - double_string '"' (? 0:value addhl -group /javascript/code regex "-?[0-9]*\.?[0-9]+" 0:value addhl -group /javascript/code regex \<(Array|Boolean|Date|Function|Number|Object|RegExp|String)\> 0:type +addhl -group /javascript/code regex (?<=\W)/[^\n/]+/[gimy]* 0:meta # Keywords are collected at # https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords