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
On my page here Highlight.js is able to correctly put the highlight for one snippet, but not for the other. The failing snippet:
- (NSURLSessionDataTask *)uploadTaskWithRequest:(NSURLRequest *)request progress:(NSProgress * __autoreleasing *)progress { AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]]; __weak typeof(self) weakSelf = self; NSURLSessionUploadTask *uploadTask = [manager uploadTaskWithStreamedRequest:request progress:progress completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) { if (error) { weakSelf.isFailed = YES; } else { weakSelf.isFinished = YES; } }]; return uploadTask; }
The one that works:
- (instancetype)initWithRequest:(NSURLRequest *)request progress:(NSProgress * __autoreleasing *)progress { NSAssert(request, @"Request should be not nil"); if(self = [super init]) { self.uploadTask = [self uploadTaskWithRequest:request progress:progress]; [self setDefaultKVOValues]; } return self; }
The text was updated successfully, but these errors were encountered:
631a8bb
The first snippet is autodetecting as objective-c now in master. This will fix will most likely be in the next release.
Thank for reporting this bug.
Sorry, something went wrong.
No branches or pull requests
On my page here Highlight.js is able to correctly put the highlight for one snippet, but not for the other. The failing snippet:
The one that works:
The text was updated successfully, but these errors were encountered: