Unity3D-Shader
Unity3D-Shader copied to clipboard
Add highlighting for more keywords
- #if
- #define
- uniform
- POSITION
Also additional Unity specific variables
- UNITY_MATRIX_MVP
@mysteryDate could you show me examples for the other highlighting and how you want it done?
C-like languages usually have special highlighting for strings:
...and for inline functions, as well as function calls:
The above are just a unity shader with C++ syntax selected.
Here's an example of what CG highlighting does, as it knows all possible variable types (of which there are not that many, obviously there's half, fixed, half4, etc.):
..and finally highlighting for CG built in functions:
I should definitely pull the source and put some work into this myself. I'm just at work at the moment.
String highlighting is already working with the newest version.
Looking at the other stuff atm.