diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-08-15 09:53:19 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-08-15 09:53:19 +0100 |
commit | f5357ed940bd62fefdcca9791a41ca762db42599 (patch) | |
tree | f1394d58b2fb64984644be8132885248467d29cb | |
parent | 778612d1526a7c927106609f4925da365e41c498 (diff) | |
download | rtmux-f5357ed940bd62fefdcca9791a41ca762db42599.tar.gz rtmux-f5357ed940bd62fefdcca9791a41ca762db42599.tar.bz2 rtmux-f5357ed940bd62fefdcca9791a41ca762db42599.zip |
Handle \ at EOL from Daniel Hahler.
-rw-r--r-- | examples/tmux.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/tmux.vim b/examples/tmux.vim index 0e9476ec..6f85db5b 100644 --- a/examples/tmux.vim +++ b/examples/tmux.vim @@ -266,7 +266,9 @@ syn match tmuxOptions /\s-\a\+/ display syn match tmuxVariable /\w\+=/ display syn match tmuxVariableExpansion /\${\=\w\+}\=/ display -syn region tmuxComment start=/#/ end=/$/ contains=tmuxTodo display oneline +" Comments can span multiple lines, when the newline is escaped +" (with a single) backslash at the end. +syn region tmuxComment start=/#/ skip=/\\\@<!\\$/ end=/$/ contains=tmuxTodo syn region tmuxString start=/"/ end=/"/ display oneline syn region tmuxString start=/'/ end=/'/ display oneline |