Hi Tim, On Sat, Jun 19, 2021 at 04:56:30PM +0200, Tim Duesterhus wrote: > GitHub uses github/linguist to determine the programming language used for > each > source file to show statistics and to power the search. In cases of unique > file > extensions this is easy, but for `.h` files the situation is less clear as > they > are used for C, C++, Objective C and more. In these cases linguist makes use > of > heuristics to determine the language. > > One of these heuristics for C++ is that the file contains a line beginning > with > `try`, only preceded by whitespace indentation. This heuristic matches the > long > comment at the bottom of `channel-t.h`, as one sentence includes the word > `try` > after a linebreak.
Well, I would say that this heuristic is totally broken because it should at least ensure there's no more word before a brace on the line. However I agree that usually we prefer to respect the comment format starting with an asterisk at the beginning of each line, so I'm OK with the change and merged the patch. Thanks! Willy

