This is intentional, to keep Vim from slowing down too much with huge syntax regions. If you want to override this behavior try:

    :syn sync fromstart 

In the HTML file. 


-- 
Christian J. Robinson

On Jan 18, 2024, at 1:57 PM, Srajan Dehariya <vim-dev-git...@256bit.org> wrote:



Steps to reproduce

  1. Open an HTML file with ~2000 lines of code (may include css or js)
  2. Do a multiline comment on a large part of code by enclosing it with <!-- and --> (about 700 lines)
  3. Save and close the file. ( The cursor is where the comment ends)
  4. Again open the same file, it will not detect a major part of comment as comment and show as usual HTML, CSS or Js code.

Expected behaviour

It was expected to detect the closing of comment and color the commented code as comments.

Version of Vim

9.0.1499

Environment

Operating system: Debian 12
Terminal: Konsole
Value of $TERM: xterm-256color
Shell: Bash

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/13885@github.com>

--
--
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/13885%40github.com.

--
--
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/6D1E1A6F-C796-4ADE-A28E-B2A57971FEDB%40gmail.com.

Reply via email to