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

After looking into the reported examples a bit, I believe one possible root cause of these issues is that (?!\G) is not working in end patterns. #1

Open
WILY12424 opened this issue Jan 8, 2024 · 0 comments

Comments

@WILY12424
Copy link
Owner

          After looking into the reported examples a bit, I believe one possible root cause of these issues is that `(?!\G)` is not working in `end` patterns.

This would explain the following issues:

Swift

class A: B {
  let x: Int
}
protocol Foo {
  associatedtype T: Equatable
  var x: String { get }
}
protocol Foo {
  associatedtype T = Int
  var x: String { get }
}
protocol Foo {
  associatedtype T: Equatable = Int
  var x: String { get }
}

gitconfig

[good]
b = c
[bad]

TOML

[good]
b = c  # comment
[bad]

Originally posted by @jtbandes in github-linguist/linguist#6668 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant