To make sure javascript blocks are properly indented.
Signed-off-by: Felipe Contreras <[email protected]>
---
runtime/indent/testdir/html.in | 8 ++++++++
runtime/indent/testdir/html.ok | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/runtime/indent/testdir/html.in b/runtime/indent/testdir/html.in
index b62c67ddb..c60ffab2a 100644
--- a/runtime/indent/testdir/html.in
+++ b/runtime/indent/testdir/html.in
@@ -11,6 +11,10 @@ div#d2 { color: green; }
<script>
var v1 = "v1";
var v2 = "v2";
+ function test() {
+ let l1;
+ }
+ test();
</script>
<div>
<div>
@@ -66,6 +70,10 @@ div#d2 { color: green; }
<script>
var v1 = "v1";
var v2 = "v2";
+ function test() {
+ let l1;
+ }
+ test();
</script>
<div
class="test"
diff --git a/runtime/indent/testdir/html.ok b/runtime/indent/testdir/html.ok
index 938e965d8..dd5ed0150 100644
--- a/runtime/indent/testdir/html.ok
+++ b/runtime/indent/testdir/html.ok
@@ -11,6 +11,10 @@ div#d2 { color: green; }
<script>
var v1 = "v1";
var v2 = "v2";
+ function test() {
+ let l1;
+ }
+ test();
</script>
<div>
<div>
@@ -66,6 +70,10 @@ div#d2 { color: green; }
<script>
var v1 = "v1";
var v2 = "v2";
+function test() {
+ let l1;
+}
+test();
</script>
<div
class="test"
--
2.37.1.225.gfa48d685d2
--
--
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/20220727150232.255407-1-felipe.contreras%40gmail.com.