0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

runtime(vim): Update base-syntax, improve :let-heredoc highlighting

The end marker is not required to match the indent of :let when "trim"
is specified, it may also appear without leading whitespace as normal.

closes: #15564

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2024-08-23 18:01:35 +02:00
committed by Christian Brabandt
parent cacb6693c1
commit 7884cc7418
15 changed files with 230 additions and 50 deletions

View File

@@ -13,6 +13,9 @@ line1
line2
END
" trim
let foo =<< trim END
line1
line2
@@ -114,3 +117,80 @@ END
END
END
" end marker must be vertically aligned with :let (if preceded by whitespace)
" assert_equal(foo, ["END"])
let foo =<< trim END
END
END
" assert_equal(foo, ["END"])
let foo =<< trim END
END
END
" assert_equal(foo, ["END "])
let foo =<< trim END
END
END
" assert_equal(foo, ["END"])
let foo =<< trim END
END
END
" assert_equal(foo, ["END "])
let foo =<< trim END
END
END
" assert_equal(foo, ["END"])
let foo =<< trim END
END
END
" assert_equal(foo, ["END "])
let foo =<< trim END
END
END
" assert_equal(foo, ["END "])
let foo =<< trim END
END
END
" assert_equal(foo, ["END"])
let foo =<< trim END
END
END
" assert_equal(foo, ["END"])
let foo =<< trim END
END
END
" end markers
let foo =<< !@#$%^&*()_+
line1
line2
!@#$%^&*()_+
let foo =<< 0!@#$%^&*()_+
line1
line2
0!@#$%^&*()_+
let foo =<< A!@#$%^&*()_+
line1
line2
A!@#$%^&*()_+
" error - leading lowercase character
let foo =<< a!@#$%^&*()_+
line1
line2
a!@#$%^&*()_+