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 doesn't recognize regex delimiters other than /regex/ #1101

Closed
goober99 opened this issue Oct 10, 2018 · 2 comments
Closed

Comments

@goober99
Copy link

monaco-editor version: 0.14.3
Browser: Chromium 51
OS: Ubuntu 15.10
Steps or JS usage snippet reproducing the issue:

The Perl syntax highlighter doesn't recognize regex delimiters other than /regex/ for regular expressions. Perl allows the use of alternative delimiters such as m!regex!. This throws off the highlighting when using a character such an apostrophe (like m!can't!). The syntax highlighter thinks the apostrophe is the beginning of a single quote and highlights everything that comes after it as a string:

monaco

@goober99
Copy link
Author

I have submitted a pull request.

@alexdima
Copy link
Member

Thank you, fixed via microsoft/monaco-languages#50

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 29, 2019
arlosi pushed a commit to arlosi/monaco-editor that referenced this issue Oct 29, 2021
arlosi pushed a commit to arlosi/monaco-editor that referenced this issue Oct 29, 2021
 Added support for Perl quote-like operators to fix microsoft#1101
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants