[vim/vim] Update the heredoc support for embedded scripting languages (#5916)

19 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Apr 12, 2020, 12:40:10 PM4/12/20
to vim/vim, Subscribed

The heredoc support for the embedded scripting languages like python is
missing some of the features of the :let here document. For example,
leading indentation for the lines is not supported. This patch updates
the script heredoc support to be same as the :let command.
One difference is the script heredoc accepts '.' as the marker if the
marker is not supplied.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/5916

Commit Summary

  • Update the heredoc support for python/lua/perl/ruby/tcl/mzsch scripts to be same as the :let command

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Yegappan Lakshmanan

unread,
Apr 12, 2020, 12:56:51 PM4/12/20
to vim/vim, Push

@yegappan pushed 1 commit.


You are receiving this because you are subscribed to this thread.

View it on GitHub or unsubscribe.

Yegappan Lakshmanan

unread,
Apr 12, 2020, 1:45:21 PM4/12/20
to vim/vim, Push

@yegappan pushed 1 commit.


You are receiving this because you are subscribed to this thread.

Bram Moolenaar

unread,
Apr 13, 2020, 2:01:44 PM4/13/20
to vim/vim, Subscribed

Supporting "trim" for the interfaces is lacking tests.

Yegappan Lakshmanan

unread,
Apr 13, 2020, 3:24:42 PM4/13/20
to vim/vim, Push

@yegappan pushed 1 commit.

  • b8060a6 Update the tests for various embedded language scripts to use the new heredoc syntax


You are receiving this because you are subscribed to this thread.

Yegappan Lakshmanan

unread,
Apr 13, 2020, 5:21:46 PM4/13/20
to vim/vim, Push

@yegappan pushed 1 commit.


You are receiving this because you are subscribed to this thread.

Codecov

unread,
Apr 13, 2020, 5:47:35 PM4/13/20
to vim/vim, Subscribed

Codecov Report

Merging #5916 into master will increase coverage by 0.03%.
The diff coverage is 96.00%.

Impacted file tree graph

@@            Coverage Diff             @@

##           master    #5916      +/-   ##

==========================================

+ Coverage   86.24%   86.27%   +0.03%     

==========================================

  Files         136      140       +4     

  Lines      155482   155846     +364     

==========================================

+ Hits       134088   134451     +363     

- Misses      21394    21395       +1     
Impacted Files Coverage Δ
src/ex_getln.c 91.43% <90.00%> (-0.08%) ⬇️
src/evalvars.c 94.95% <100.00%> (+<0.01%) ⬆️
src/userfunc.c 92.75% <100.00%> (+0.02%) ⬆️
src/vim9compile.c 94.86% <100.00%> (ø)
src/netbeans.c 27.20% <0.00%> (-0.23%) ⬇️
src/gui.c 63.85% <0.00%> (-0.16%) ⬇️
src/terminal.c 82.92% <0.00%> (-0.04%) ⬇️
src/window.c 88.98% <0.00%> (-0.04%) ⬇️
src/gui_gtk_x11.c 57.78% <0.00%> (ø)
src/memfile_test.c 100.00% <0.00%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a1637f...df5f6b8. Read the comment docs.

Yegappan Lakshmanan

unread,
Apr 13, 2020, 10:54:32 PM4/13/20
to vim/vim, Push

@yegappan pushed 1 commit.

  • c6dbd37 Add heredoc test for various embedded languges


You are receiving this because you are subscribed to this thread.

Yegappan Lakshmanan

unread,
Apr 13, 2020, 11:24:03 PM4/13/20
to vim/vim, Push

@yegappan pushed 1 commit.


You are receiving this because you are subscribed to this thread.

Yegappan Lakshmanan

unread,
Apr 14, 2020, 12:35:03 AM4/14/20
to vim_dev, reply+ACY5DGHZVIRVOH7EEV...@reply.github.com, vim/vim, Subscribed
Hi Bram,

On Mon, Apr 13, 2020 at 11:01 AM Bram Moolenaar <vim-dev...@256bit.org> wrote:

Supporting "trim" for the interfaces is lacking tests.



I have updated the PR with new heredoc tests for all the embedded languages. 
I have also updated the existing heredoc usage in the test scripts.

- Yegappan

vim-dev ML

unread,
Apr 14, 2020, 12:35:19 AM4/14/20
to vim/vim, vim-dev ML, Your activity

Bram Moolenaar

unread,
Apr 14, 2020, 2:16:23 PM4/14/20
to vim/vim, vim-dev ML, Comment

Closed #5916 via 6c2b7b8.


You are receiving this because you commented.

Reply all
Reply to author
Forward
0 new messages