diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2014-07-10 01:08:01 +0200 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2014-07-10 01:40:02 +0200 |
| commit | 2aab87f28c1e46f36b44075b5614fb86b647fe92 (patch) | |
| tree | 2b0e2a1d44b5f7afea908a8c3ef970189e7383df /rc/javascript.kak | |
| parent | 9952704eafe5a6c904b7dd879d08d0ed1a4aba58 (diff) | |
fix single line comments highlighting
Diffstat (limited to 'rc/javascript.kak')
| -rw-r--r-- | rc/javascript.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/javascript.kak b/rc/javascript.kak index 810da323..c9a82279 100644 --- a/rc/javascript.kak +++ b/rc/javascript.kak @@ -15,8 +15,8 @@ hook global BufCreate .*[.](js) %{ addhl -group / multi_region -default code javascript \ double_string '"' (?<!\\)(\\\\)*" '' \ single_string "'" "'" '' \ - regex '/' (?<!\\)(\\\\)*/[gimy]* '' \ - comment '#' '$' '' + comment // '$' '' \ + regex / (?<!\\)(\\\\)*/[gimy]* '' # Regular expression flags are: g → global match, i → ignore case, m → multi-lines, y → sticky # https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
