aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2015-08-15 09:53:19 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2015-08-15 09:53:19 +0100
commitf5357ed940bd62fefdcca9791a41ca762db42599 (patch)
treef1394d58b2fb64984644be8132885248467d29cb /examples
parent778612d1526a7c927106609f4925da365e41c498 (diff)
downloadrtmux-f5357ed940bd62fefdcca9791a41ca762db42599.tar.gz
rtmux-f5357ed940bd62fefdcca9791a41ca762db42599.tar.bz2
rtmux-f5357ed940bd62fefdcca9791a41ca762db42599.zip
Handle \ at EOL from Daniel Hahler.
Diffstat (limited to 'examples')
-rw-r--r--examples/tmux.vim4
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