From f5357ed940bd62fefdcca9791a41ca762db42599 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 15 Aug 2015 09:53:19 +0100 Subject: [PATCH] Handle \ at EOL from Daniel Hahler. --- examples/tmux.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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=/\\\@