chore: remove log statement

pull/12759/head
Nikita Revenco 2025-02-02 03:49:39 +00:00 committed by Nik Revenco
parent 31e2f739ee
commit 76b3e6778d
3 changed files with 16 additions and 12 deletions

View File

@ -46,7 +46,6 @@ fn find_line_comment(
let token_len = token.chars().count();
for line in lines {
log::error!("{line}");
let line_slice = text.line(line);
if let Some(pos) = line_slice.first_non_whitespace_char() {
let len = line_slice.len_chars();

View File

@ -701,7 +701,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
indoc! {r#"\
<p>Comment toggle on this line should use the HTML comment token(s).</p>
<script type="text/javascript">
Comment toggle #[|on this line s]#hould use the javascript comment token(s).
// Comment toggle #[|on this line s]#hould use the javascript comment token(s).
foo();
</script>
"#},
@ -709,7 +709,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
indoc! {r#"\
<p>Comment toggle on this line should use the HTML comment token(s).</p>
<script type="text/javascript">
Comment toggle #[|/* on this line s */]#hould use the javascript comment token(s).
// Comment toggle #[|/* on this line s */]#hould use the javascript comment token(s).
foo();
</script>
"#},
@ -721,7 +721,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
indoc! {r#"\
<p>Comment toggle on this line should use the HTML comment token(s).</p>
<script type="text/javascript">
Comment toggle#[|/* on this line s*/]#hould use the javascript comment token(s).
// Comment toggle #[|/* on this line s */]#hould use the javascript comment token(s).
foo();
</script>
"#},
@ -729,7 +729,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
indoc! {r#"\
<p>Comment toggle on this line should use the HTML comment token(s).</p>
<script type="text/javascript">
Comment toggle#[| on this line s]#hould use the javascript comment token(s).
// Comment toggle #[|on this line s]#hould use the javascript comment token(s).
foo();
</script>
"#},
@ -843,9 +843,9 @@ async fn test_injected_comment_tokens_multiple_selections() -> anyhow::Result<()
"#},
":lang html<ret> C",
indoc! {r#"\
<p> C-c #(|<!-- on this line -->)# should use the HTML comment token(s). </p>
<p>Comment toggle #(|<!-- on this line -->)# should use the HTML comment token(s).</p>
<script type="text/javascript">
// C-c #[|/* on this line */]# should use the javascript comment token(s).
// Comment toggle #[|/* on this line */]# should use the javascript comment token(s).
foo();
</script>
"#},

View File

@ -1,5 +1,10 @@
<p>Comment toggle on this line should use the HTML comment token(s).</p>
<!-- <p>Comment toggle on this line should use the HTML comment token(s).</p> -->
<script type="text/javascript">
// Comment toggle on this line should use the javascript comment token(s).
foo();
css`
html {
background-color: #red;
}
`;
</script>