I would recommend looking into Kate Highlighting, which is also used for example by QtCreator.
I vaguely remember hearing that the Kate and QtCreator developers were actually working on a Qt syntax highlighting library using this syntax definition files.
Might be worth contacting the Kate developers
0
solved HighLighter Library Qt5/C++ for web languages