diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-04-20 10:33:38 +0200 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-04-20 10:33:38 +0200 |
| commit | 17c5e7aa5fb020186378f7f738e617b5743839fc (patch) | |
| tree | 3f0fb2ef044c361ab285fe6ad0f3eef48640a9e6 /rc/filetype/javascript.kak | |
| parent | 4f4c483f54d652f9ff3ded24299e6dfa176550cb (diff) | |
| parent | 4d12e750ae2b923878927eddf062851df10362e8 (diff) | |
Merge remote-tracking branch 'alexherbo2/rc-javascript-accessors'
Diffstat (limited to 'rc/filetype/javascript.kak')
| -rw-r--r-- | rc/filetype/javascript.kak | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index 4d16ee68..426ca809 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 # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ |
