-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Highlighting of this
in property getter
#50
Comments
Format 1 may also be followed by the block. such as
Textmate does not support backtracking to previous lines, so continuation lines in the format 1 are broken, and the continuation line that operator at the end of the line is supported. In the following format, the two cases are distinguishable. |
I am not looking for workarounds - I'm not going to write my code based on whether your extension highlights Why do you need to differentiate between these cases? 99% of the time, if the variable In my scripts, you'd get it right more often by highlighting I figured out another cause - it isn't highlighted inside class A {
B() {
switch {
case 1:
return this
}
}
}
It gets highlighted in methods, and not inside global functions, or inside nested functions when What happens when the extension fails to detect the line continuation? Does it revert to assuming the expression resides directly in the class body? If so, it should still be highlighted. This should also be highlighted, and is not: class A {
a := 1
b := this.a
}
|
this
is not highlighted on the second line:but without
[z]
,this
is highlighted correctly:The text was updated successfully, but these errors were encountered: