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

Incorrect highlighting of function parameter names for Django-specific functions #48

Open
joerick opened this issue Jul 19, 2013 · 6 comments

Comments

@joerick
Copy link

joerick commented Jul 19, 2013

When a function name is picked up as a Django function (and hence colored in blue in my theme) the parameter names are not highlighted as in normal function calls.

image

In the example above I'd expect the parameter names default and help_text in the second field to be orange like the first field.

@squ1b3r
Copy link
Owner

squ1b3r commented Jul 19, 2013

I suppose it's something about your theme. I tried a few standart themes and my custom one and all of them don't have that highlighting in the first place.

screen shot 2013-07-19 at 16 56 33

@joerick
Copy link
Author

joerick commented Jul 24, 2013

Strange. I'm using the Monokai theme in Sublime Text 2.0.2. Though it's true that none of the other themes seem to have the named argument styling.

@AdrianLC
Copy link

I confirm this happens though I hadn't really noticed until I've read this issue report :D
And yes, there are plenty of themes that have a different color for the function parameter names.
Monokai, the default theme for instance and I have more installed by me that do have it as well.

Quick sample: Sunburst, another builtin color scheme
captura de pantalla de 2013-08-13 20 13 46

@squ1b3r
Copy link
Owner

squ1b3r commented Aug 13, 2013

Thanks guys. I'll look into it a bit later.

@hlrossato
Copy link

I'm having the same problem here. I'm also using Monokai (just changed the background). When I change the syntax to "Python" (the standard one which comes with Sublime), it shows me like this:

image

However, if I change the syntax to Python (Django), I got this:

image

As far as I remember, the "correct" way of showing was a mix of both. With parameters orange and the type of the fields in blue.

Anyone has any news about it?!

@markarce
Copy link

I was just refactoring some code from using from django.db.models.fields import CharField to from django.db import models and when changing CharField to models.CharField, the syntax highlighting for the parameters disappears (it was originally in orange as @hlrossato shows above). This is on the default theme in Sublime 3; I'm curious about whether this is something that will be fixed, if this project is still being maintained anyway.

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

5 participants