summaryrefslogtreecommitdiff
path: root/rc/base/javascript.kak
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-04-21 20:43:17 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-04-21 20:43:17 +0100
commit3f74dd2924ca02c26d3338e6ea89a749175afe19 (patch)
tree4e4832f54bc86cf1a5e4a7bf80bbb8ef6c36c251 /rc/base/javascript.kak
parentde033d2915195dea3469486fc57f4ebf93b09e9b (diff)
Remove uses of \< and \>, always use std regex compatible \b
Diffstat (limited to 'rc/base/javascript.kak')
-rw-r--r--rc/base/javascript.kak6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc/base/javascript.kak b/rc/base/javascript.kak
index 325ce6fb..2b6053cc 100644
--- a/rc/base/javascript.kak
+++ b/rc/base/javascript.kak
@@ -26,14 +26,14 @@ addhl -group /javascript/single_string fill string
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 \b(document|false|null|parent|self|this|true|undefined|window)\b 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 \b(Array|Boolean|Date|Function|Number|Object|RegExp|String)\b 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
-addhl -group /javascript/code regex \<(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)\> 0:keyword
+addhl -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
# Commands
# ‾‾‾‾‾‾‾‾