Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perl syntax highlighting inside double quotes #9060

Closed
ggl opened this issue Dec 12, 2023 · 1 comment · Fixed by #11848
Closed

Perl syntax highlighting inside double quotes #9060

ggl opened this issue Dec 12, 2023 · 1 comment · Fixed by #11848
Labels
A-language-support Area: Support for programming/text languages C-bug Category: This is a bug upstream

Comments

@ggl
Copy link

ggl commented Dec 12, 2023

Summary

Perl syntax highlighting breaks inside double quotes.

Reproduction Steps

I tried this:

  1. hx test.pl

I expected this to happen:

Syntax hightliting should not break inside "".

Instead, this happened:

Syntax hightliting breaks inside "".

Screenshot from 2023-12-12 09-52-09

Helix log

~/.cache/helix/helix.log
2023-08-11T09:55:54.321 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2023-08-11T09:56:09.712 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2023-08-11T09:56:19.698 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2023-08-11T09:57:10.443 helix_view::editor [ERROR] Failed to initialize the LSP for `source.js` { cannot find binary path }
2023-08-11T09:57:25.142 helix_view::theme [WARN] Theme: malformed hexcode: light-black
2023-08-11T09:57:25.142 helix_view::theme [WARN] Theme: malformed hexcode: light-black
2023-08-11T09:57:25.142 helix_view::theme [WARN] Theme: malformed hexcode: purple
2023-08-11T09:57:25.653 helix_view::theme [WARN] Theme: malformed hexcode: light-black
2023-08-11T09:57:25.653 helix_view::theme [WARN] Theme: malformed hexcode: light-black
2023-08-11T09:57:25.653 helix_view::theme [WARN] Theme: malformed hexcode: purple
2023-08-11T09:57:54.021 helix_view::theme [WARN] Theme: malformed hexcode: light-black
2023-08-11T09:57:54.022 helix_view::theme [WARN] Theme: malformed hexcode: light-black
2023-08-11T09:57:54.022 helix_view::theme [WARN] Theme: malformed hexcode: purple
2023-08-11T09:58:10.908 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2023-08-11T09:58:15.218 helix_view::editor [ERROR] editor error: Register [@] empty
2023-08-11T09:58:19.035 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2023-08-11T09:58:38.289 helix_view::editor [ERROR] Failed to initialize the LSP for `source.python` { cannot find binary path }
2023-08-11T09:59:12.861 helix_view::editor [ERROR] Failed to initialize the LSP for `source.python` { cannot find binary path }
2023-08-11T10:00:19.157 helix_view::editor [ERROR] Failed to initialize the LSP for `source.python` { cannot find binary path }
2023-08-11T10:00:39.445 helix_view::editor [ERROR] editor error: 1 unsaved buffer(s) remaining: ["Documents/uart-loop.py"]
2023-08-11T10:00:43.429 helix_view::editor [ERROR] editor error: 1 unsaved buffer(s) remaining: ["Documents/uart-loop.py"]
2023-08-11T10:06:45.692 helix_lsp::transport [ERROR] err <- "standard-module-name-resolver: collection not found\n"
2023-08-11T10:06:45.694 helix_lsp::transport [ERROR] err <- "  for module path: (lib \"racket-langserver\")\n"
2023-08-11T10:06:45.694 helix_lsp::transport [ERROR] err <- "  collection: \"racket-langserver\"\n"
2023-08-11T10:06:45.694 helix_lsp::transport [ERROR] err <- "  in collection directories:\n"
2023-08-11T10:06:45.694 helix_lsp::transport [ERROR] err <- "   ... [166 additional linked and package directories]\n"
2023-08-11T10:06:45.695 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2023-08-11T10:06:45.695 helix_lsp::transport [ERROR] err: <- StreamClosed
2023-08-11T10:06:50.351 helix_lsp::transport [ERROR] err <- "standard-module-name-resolver: collection not found\n"
2023-08-11T10:06:50.352 helix_lsp::transport [ERROR] err <- "  for module path: (lib \"racket-langserver\")\n"
2023-08-11T10:06:50.352 helix_lsp::transport [ERROR] err <- "  collection: \"racket-langserver\"\n"
2023-08-11T10:06:50.352 helix_lsp::transport [ERROR] err <- "  in collection directories:\n"
2023-08-11T10:06:50.352 helix_lsp::transport [ERROR] err <- "   ... [166 additional linked and package directories]\n"
2023-08-11T10:06:50.353 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2023-08-11T10:06:50.353 helix_lsp::transport [ERROR] err: <- StreamClosed
2023-08-11T10:06:54.999 helix_lsp::transport [ERROR] err <- "standard-module-name-resolver: collection not found\n"
2023-08-11T10:06:55.000 helix_lsp::transport [ERROR] err <- "  for module path: (lib \"racket-langserver\")\n"
2023-08-11T10:06:55.000 helix_lsp::transport [ERROR] err <- "  collection: \"racket-langserver\"\n"
2023-08-11T10:06:55.000 helix_lsp::transport [ERROR] err <- "  in collection directories:\n"
2023-08-11T10:06:55.000 helix_lsp::transport [ERROR] err <- "   ... [166 additional linked and package directories]\n"
2023-08-11T10:06:55.001 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2023-08-11T10:06:55.001 helix_lsp::transport [ERROR] err: <- StreamClosed
2023-08-11T10:07:17.687 helix_lsp::transport [ERROR] err <- "standard-module-name-resolver: collection not found\n"
2023-08-11T10:07:17.689 helix_lsp::transport [ERROR] err <- "  for module path: (lib \"racket-langserver\")\n"
2023-08-11T10:07:17.689 helix_lsp::transport [ERROR] err <- "  collection: \"racket-langserver\"\n"
2023-08-11T10:07:17.689 helix_lsp::transport [ERROR] err <- "  in collection directories:\n"
2023-08-11T10:07:17.689 helix_lsp::transport [ERROR] err <- "   ... [166 additional linked and package directories]\n"
2023-08-11T10:07:17.689 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2023-08-11T10:07:17.689 helix_lsp::transport [ERROR] err: <- StreamClosed
2023-08-11T10:07:39.722 helix_view::editor [ERROR] Failed to initialize the LSP for `source.js` { cannot find binary path }
2023-08-11T10:09:00.539 helix_view::editor [ERROR] Failed to initialize the LSP for `source.js` { cannot find binary path }
2023-12-12T09:47:20.451 helix_view::theme [WARN] Theme: malformed ANSI: bg3
2023-12-12T09:47:58.098 helix_view::theme [WARN] Theme: malformed ANSI: bg3
2023-12-12T09:47:58.265 helix_view::editor [ERROR] Failed to initialize the language servers for `source.perl` - `perlnavigator` { cannot find binary path }
2023-12-12T09:48:02.611 helix_view::theme [WARN] Theme: malformed ANSI: bg3
2023-12-12T09:48:02.777 helix_view::editor [ERROR] Failed to initialize the language servers for `source.perl` - `perlnavigator` { cannot find binary path }

Platform

Linux 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 GNU/Linux

Terminal Emulator

GNOME Terminal 3.44.0 using VTE 0.68.0 +BIDI +GNUTLS +ICU +SYSTEMD

Installation Method

Releases page appimge

Helix Version

helix 23.10 (f6021dd)

@ggl ggl added the C-bug Category: This is a bug label Dec 12, 2023
@the-mikedavis the-mikedavis added upstream A-language-support Area: Support for programming/text languages labels Dec 12, 2023
@rabbiveesh
Copy link
Contributor

ah, the actual issue here isn't the double quotes, it's the indirob usage of print, which is supported in newer version; this'll be covered whenever the attached PR is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages C-bug Category: This is a bug upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants