Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

DecimalTurn
Copy link
Contributor

Description

This PR removes remaining backreferences that were not already removed in #6897. It turns out the list was incomplete in the Go-Enry README and even if Go-Enry is no longer used for search on GitHub, rust-lang/regex also doesn't support backreferences, so we should still remove them.

Affected heuristics:

  • Bikeshed
  • FreeMarker
  • StringTemplate

Like in the previous PR, the presence of the backreference in those regex was to make sure that open and close tags were matching which is important for syntax checking, but not language identification.

Checklist:

NA

Copy link
Member

@lildude lildude left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

Important

The changes in this PR will not appear on GitHub until the next release has been made and deployed. See here for more details.

@lildude lildude added this pull request to the merge queue Feb 23, 2025
Merged via the queue into github-linguist:main with commit 282067d Feb 23, 2025
5 checks passed
@DecimalTurn DecimalTurn deleted the backreference branch February 23, 2025 13:56
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jul 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants