Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add highlighting for more keywords #3

Open
petereichinger opened this issue Apr 27, 2015 · 3 comments
Open

Add highlighting for more keywords #3

petereichinger opened this issue Apr 27, 2015 · 3 comments

Comments

@petereichinger
Copy link
Owner

  • #if
  • #define
  • uniform
  • POSITION

Also additional Unity specific variables

  • UNITY_MATRIX_MVP
petereichinger added a commit that referenced this issue Apr 28, 2015
@petereichinger
Copy link
Owner Author

@mysteryDate could you show me examples for the other highlighting and how you want it done?

@mysteryDate
Copy link

C-like languages usually have special highlighting for strings:

capture

...and for inline functions, as well as function calls:

capture2

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.):

variables

..and finally highlighting for CG built in functions:

specialwords

I should definitely pull the source and put some work into this myself. I'm just at work at the moment.

@petereichinger
Copy link
Owner Author

String highlighting is already working with the newest version.

Looking at the other stuff atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants