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

Distinguish var balance and this.balance #3

Open
s-tikhomirov opened this issue Sep 8, 2017 · 2 comments
Open

Distinguish var balance and this.balance #3

s-tikhomirov opened this issue Sep 8, 2017 · 2 comments
Labels

Comments

@s-tikhomirov
Copy link
Owner

In both cases, balance is highlighted as a keyword. In reality, the former is just a variable, whereas the latter is a property of an address.

Same problem with all special properties, e.g., msg.foo, block.timestamp, etc.

@s-tikhomirov s-tikhomirov changed the title No distinguishing between var balance and this.balance Distinguish var balance and this.balance May 30, 2018
@hajduakos
Copy link

One thing that might help is to add alsoletter={.}, to \lstdefinelanguage. Then you can have this.balance as a keyword.

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

No branches or pull requests

2 participants