We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(?!\G)
end
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:
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 } }
associatedtype
[good] b = c [bad]
[good] b = c # comment [bad]
Originally posted by @jtbandes in github-linguist/linguist#6668 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This would explain the following issues:
Swift
associatedtype
in GitHub jtbandes/swift-tmlanguage#8, Enums and other decls members have incorrect highlighting jtbandes/swift-tmlanguage#10, Highlighting breaks after multiple protocol inheritance and with @main jtbandes/swift-tmlanguage#12, Broken highlighting at the start of declarations jtbandes/swift-tmlanguage#13(?!\G)
used here: https://github.com/jtbandes/swift-tmlanguage/blob/f839cb6fde7c5afa1e08c38625c95b80bb05c626/Swift.tmLanguage.yaml#L880gitconfig
(?!\G)
used here: https://github.com/Alhadis/language-etc/blob/f3e265b2c155eded4a1808d4b75136ffbd6406b5/grammars/gitconfig.cson#L317TOML
(?!\G)
used here: https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage#L46-L47Originally posted by @jtbandes in github-linguist/linguist#6668 (comment)
The text was updated successfully, but these errors were encountered: