Felipe -
> In issue #3205 a monkey patch was mentioned, but it wasn't the proper
> fix, the proper fix is in GetJavascriptIndent(), which was done in
> 2018 [1].
>
> The monkey patch screwed all indentation inside blocks, like:
>
> <script>
> function test() {
> let v1;
> }
> test();
> </script>
>
> We need to remove the monkey patch, and include the correct fix. I've
> agregated a few fixes from Chris Paul and this is the resulting patch.
>
> [1] https://github.com/pangloss/vim-javascript/commit/e110653
When I include this then the tests passes.
Perhaps you can also add some more in the indent test, to make sure
there is no regression.
- Bram
--
hundred-and-one symptoms of being an internet addict:
146. You experience ACTUAL physical withdrawal symptoms when away
from your 'puter and the net.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220727093537.B37A21C07D4%40moolenaar.net.