question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi-line comment breaks highlighting

See original GitHub issue

Seems to be an error with general JS multi-line comments. This breaks DocBlockr code for example.

Using ST3, with JSCustom React syntax highlighting. This issue just appeared for me today, I assume after the latest update was installed.

image

Copy-pastable code

// Normal highlighting
let x = 1;

/***/ // Should be normal highlighting
let y = 1;

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jeremytmcommented, Apr 21, 2021

The issue is resolved now (after rebuilding syntaxes). Thanks!

0reactions
Thom1729commented, Apr 21, 2021

Version 3 is supposed to be exclusive to Sublime Text 4. Obviously, things went wrong. As an immediate fix, I’ve released v3.0.2, which should be identical to v2.4.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle multi-line comments in a live syntax highlighter?
So the amount of highlighting done depends on how much code you have between multi-line comments. That is a quick overview of how...
Read more >
Single line comments break syntax highlighting #1253 - GitHub
When using single line comments i.e. -- they are not syntax highlighted and often seem to report errors on subsequent lines. /**/ multi-line...
Read more >
Highlighting of multi-line Python docstrings broken ... - GitLab
With the rollout of HighlightJS syntax highlighting in 15.2.0, the highlighting of multi-line Python docstrings is broken in the repo ...
Read more >
Highlight Multiple Lines of Comments
I'm trying to get gvim to highlight multiple lines of comment that starts with a particular word. For example, consider the word 'NOTE':...
Read more >
Multi-line comments have arrived! You can now highlight ...
Multi-line comments have arrived! You can now highlight multiple lines in a pull request diff and add a comment, all at once.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found