Hello,
Gerrit 3 and Gerrit 2 with PolyGerrit are using highlight.js for syntax highlighting. The updates are mentioned in the Gerrit release notes:
For Gerrit 2.16.22 that seems to be highlight.js 10.0.2
For Gerrit 3.2.7 it is highlight.js 10.5.0 https://www.gerritcodereview.com/3.2.html#327
I don't quite know how it maps a file to a given language. Gerrit
3.2 UI code seems to indicate it uses the file content type which
is provided by the server. I have no idea though how Gerrit
determines the file type on the server side :-\
-- Antoine "hashar" Musso Release Engineering