How to reproduce:
1. Create a new HDRP project
2. In the Project window, right-click -> Create -> Shader Graph -> Any Shader Graph
3. Open the "Create Node" menu -> Expression
4. Below the "Type" field, enter any reserved HLSL keyword, for example, "float"
5. Observe the error
Expected results: The error points to the usage of the HLSL keyword
Actual results: "syntax error: unexpected token ";" at line 159" error is shown
Reproducible with: 6000.5.0b9, 6000.6.0a6
Can't test with: 6000.0.76f1, 6000.3.15f1, 6000.4.8f1 (No Expression node)
Reproducible on: macOS Tahoe 26 (M1)
Not reproducible on: No other environment tested