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

Method Argument Color #15

Open
benhamill opened this issue May 10, 2013 · 1 comment
Open

Method Argument Color #15

benhamill opened this issue May 10, 2013 · 1 comment

Comments

@benhamill
Copy link
Collaborator

I noticed that un-parenthesized arguments have the same color as the line they're in normally would (see the line in the screenshot in the README that's like path = File.expand_path five_dirs_up+'/README.md'). But if the arguments are in parens, they turn white (see the line in the screenshot in the README that's like if contents = File.read(readme_path)).

Is that on purpose? If so, what is the purpose? If not, what is the cause? I'm not wishing, at the point, that it was one way or the other. Just something I noticed and wondered about.

@rking
Copy link
Owner

rking commented Jul 16, 2013

No, it is not on purpose.

Remember that detailed.vim mostly does no work - it relies on the preexisting syntax/ruby.vim to do the complicated parsing, and merely decorates that work with colors. There are a few lines of adjustment to all of that, but for the most part I let it lie as it is.

Feel free to try another approach.

Really, to do detailed.vim to the fullest, one would have to write overrides of syntax/*.vim for every language they cared about. The default parses are not rich enough in most languages, and even Ruby could use more tweaks.

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