Prior to some point during this year, qbs treated this code without producing an error:
Anyone having this typo (missed colon) in the source code would see it compile just fine back then. Now, qbs does NOT treat this as a valid code and it would be helpful if it said "missing colon" instead of "Unexpected item type 'cpp'."
This mistake above is really not helping anyone who tries to understand why the project file won't load correctly and it's incredibly easy to miss the missing colon too. If qbs could better pinpoint the source of the error it would be of great help.