https://github.com/vim/vim/pull/10138
(5 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Merging #10138 (bb43803) into master (6013d00) will decrease coverage by
79.96%.
The diff coverage is0.00%.
@@ Coverage Diff @@ ## master #10138 +/- ## =========================================== - Coverage 81.97% 2.00% -79.97% =========================================== Files 167 152 -15 Lines 187863 170890 -16973 Branches 42368 39537 -2831 =========================================== - Hits 153999 3432 -150567 - Misses 21517 166763 +145246 + Partials 12347 695 -11652
| Flag | Coverage Δ | |
|---|---|---|
| huge-clang-none | ? |
|
| huge-gcc-none | ? |
|
| huge-gcc-testgui | ? |
|
| huge-gcc-unittests | 2.00% <0.00%> (-0.01%) |
⬇️ |
| linux | 2.00% <0.00%> (-81.97%) |
⬇️ |
| mingw-x64-HUGE | ? |
|
| mingw-x64-HUGE-gui | ? |
|
| windows | ? |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/evalvars.c | 4.46% <0.00%> (-86.87%) |
⬇️ |
| src/userfunc.c | 0.13% <0.00%> (-89.55%) |
⬇️ |
| src/libvterm/src/rect.h | 0.00% <0.00%> (-96.78%) |
⬇️ |
| src/sha256.c | 0.00% <0.00%> (-96.45%) |
⬇️ |
| src/libvterm/src/parser.c | 0.00% <0.00%> (-95.91%) |
⬇️ |
| src/gui_gtk_f.c | 0.00% <0.00%> (-94.72%) |
⬇️ |
| src/crypt_zip.c | 0.00% <0.00%> (-94.12%) |
⬇️ |
| src/vim9compile.c | 0.00% <0.00%> (-92.42%) |
⬇️ |
| src/debugger.c | 0.00% <0.00%> (-92.23%) |
⬇️ |
| src/eval.c | 0.10% <0.00%> (-92.18%) |
⬇️ |
| ... and 155 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 6013d00...bb43803. Read the comment docs.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@yegappan pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@yegappan pushed 2 commits.
You are receiving this because you are subscribed to this thread.![]()
Let's leave this open a few days to allow for comments.
I'm not sure if we should use =expr or just expr. Compared to other places in Vim =expr would be more common,
but compared to any other language expr would be preferred.
The help is not clear: can the expression span multiple lines? So I could use
some literal text `=
expr line
expr line
` more literal text
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Let's leave this open a few days to allow for comments.
I'm not sure if we should use
=expror justexpr. Compared to other places in Vim=exprwould be more common,
but compared to any other languageexprwould be preferred.The help is not clear: can the expression span multiple lines? So I could use
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I'm not sure if we should use =expr or just expr. Compared to other places in Vim =expr would be more common,
but compared to any other language expr would be preferred.
Yes, I suggested backtick equal to be as consistent as possible with the existing syntax, but in practice I suspect it's hardly ever used. Dropping the equal sign might make it easier for people coming from other languages to assimilate this new syntax.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
I'm not sure if we should use =expr or just expr. Compared to other places in Vim =expr would be more common,
but compared to any other language expr would be preferred.Yes, I suggested
backtick equalto be as consistent as possible with the existing syntax, but in practice I suspect it's hardly ever used. Dropping the equal sign might make it easier for people coming from other languages to assimilate this new syntax.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
The help says "If the expression evaluation fails, then it is replaced with an empty string."
I think it's better to treat an error like an error and not silently use an empty string.
If you would have an assignment with a faling expression, it would also fail.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
The help says "If the expression evaluation fails, then it is replaced with an empty string."
I think it's better to treat an error like an error and not silently use an empty string.
If you would have an assignment with a faling expression, it would also fail.
I have updated the PR to fail the assignment if an expression evaluation fails.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
@yegappan pushed 1 commit.
- 3d84a66 Add support for evaluating expression in a heredoc
I have not seen comments objecting to using the "=expr" form, including the equal sign. So I guess it should be OK that way.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
When adding another test I found that this doesn't work:
var x = 'X'
code =<< eval trim END
let b = `=x`
END
This will require more work, since "x" would have to be evaluated at runtime. Let's do that in a followup change.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
I have not seen comments objecting to using the "
=expr" form, including the equal sign. So I guess it should be OK that way.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I've never use vimscript, or the = that I see around occasionally. From my perspective, whatever is consistent with what I'll see in vim9script is best; :help script explains vim9. Consistency with vim9 seems paramount. IMO, if the = is required in vim9 in situations, then OK; otherwise nuke it.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
correct the syntax highlight when with/without trim and eval as well..
// currently it is broken.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
@cecamp for the highlighting
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()