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