Skip to content

(go) Fix escaped character literals#2266

Merged
joshgoebel merged 2 commits intohighlightjs:masterfrom
davidben:go-quoting
Nov 12, 2019
Merged

(go) Fix escaped character literals#2266
joshgoebel merged 2 commits intohighlightjs:masterfrom
davidben:go-quoting

Conversation

@davidben
Copy link
Copy Markdown
Contributor

Fixes #1411

Comment thread src/languages/go.js
@joshgoebel
Copy link
Copy Markdown
Member

I’ll review all these PRs more carefully tomorrow.

@joshgoebel
Copy link
Copy Markdown
Member

Any chance you have time/interest to look into the 6-7 other languages we're using this and see if they likewise suffer from the same issue?

One could imagine a language where \ wasn't valid so this MIGHT be a reasonable regex...

Copy link
Copy Markdown
Member

@joshgoebel joshgoebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add Changelog entry.

@davidben
Copy link
Copy Markdown
Contributor Author

Any chance you have time/interest to look into the 6-7 other languages we're using this and see if they likewise suffer from the same issue?

I'm traveling for the next two weeks so probably not for a bit. But maybe if I get bored on the plane.

Please add Changelog entry.

Done

@joshgoebel joshgoebel merged commit 0434ec2 into highlightjs:master Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(go) Misunderstands Backslash Character Literals

2 participants