mirror of https://github.com/helix-editor/helix
chore: remove log statement
parent
31e2f739ee
commit
76b3e6778d
|
@ -46,7 +46,6 @@ fn find_line_comment(
|
||||||
let token_len = token.chars().count();
|
let token_len = token.chars().count();
|
||||||
|
|
||||||
for line in lines {
|
for line in lines {
|
||||||
log::error!("{line}");
|
|
||||||
let line_slice = text.line(line);
|
let line_slice = text.line(line);
|
||||||
if let Some(pos) = line_slice.first_non_whitespace_char() {
|
if let Some(pos) = line_slice.first_non_whitespace_char() {
|
||||||
let len = line_slice.len_chars();
|
let len = line_slice.len_chars();
|
||||||
|
|
|
@ -661,7 +661,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
|
||||||
indoc! {r#"\
|
indoc! {r#"\
|
||||||
<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">
|
<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();
|
foo();
|
||||||
</script>
|
</script>
|
||||||
"#},
|
"#},
|
||||||
|
@ -669,7 +669,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
|
||||||
indoc! {r#"\
|
indoc! {r#"\
|
||||||
<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">
|
<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();
|
foo();
|
||||||
</script>
|
</script>
|
||||||
"#},
|
"#},
|
||||||
|
@ -701,7 +701,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
|
||||||
indoc! {r#"\
|
indoc! {r#"\
|
||||||
<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">
|
<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();
|
foo();
|
||||||
</script>
|
</script>
|
||||||
"#},
|
"#},
|
||||||
|
@ -709,7 +709,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
|
||||||
indoc! {r#"\
|
indoc! {r#"\
|
||||||
<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">
|
<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();
|
foo();
|
||||||
</script>
|
</script>
|
||||||
"#},
|
"#},
|
||||||
|
@ -721,7 +721,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
|
||||||
indoc! {r#"\
|
indoc! {r#"\
|
||||||
<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">
|
<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();
|
foo();
|
||||||
</script>
|
</script>
|
||||||
"#},
|
"#},
|
||||||
|
@ -729,7 +729,7 @@ async fn test_injected_comment_tokens_simple() -> anyhow::Result<()> {
|
||||||
indoc! {r#"\
|
indoc! {r#"\
|
||||||
<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">
|
<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();
|
foo();
|
||||||
</script>
|
</script>
|
||||||
"#},
|
"#},
|
||||||
|
@ -835,17 +835,17 @@ async fn test_injected_comment_tokens_multiple_selections() -> anyhow::Result<()
|
||||||
// Works with block comment toggle across different layers
|
// Works with block comment toggle across different layers
|
||||||
test((
|
test((
|
||||||
indoc! {r#"\
|
indoc! {r#"\
|
||||||
<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">
|
<script type="text/javascript">
|
||||||
// Comment toggle #[|on this line ]#should use the javascript comment token(s).
|
// Comment toggle #[|on this line]# should use the javascript comment token(s).
|
||||||
foo();
|
foo();
|
||||||
</script>
|
</script>
|
||||||
"#},
|
"#},
|
||||||
":lang html<ret> C",
|
":lang html<ret> C",
|
||||||
indoc! {r#"\
|
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">
|
<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();
|
foo();
|
||||||
</script>
|
</script>
|
||||||
"#},
|
"#},
|
||||||
|
|
7
lol.html
7
lol.html
|
@ -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">
|
<script type="text/javascript">
|
||||||
// Comment toggle on this line should use the javascript comment token(s).
|
// Comment toggle on this line should use the javascript comment token(s).
|
||||||
foo();
|
foo();
|
||||||
|
css`
|
||||||
|
html {
|
||||||
|
background-color: #red;
|
||||||
|
}
|
||||||
|
`;
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue