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

Syntax highlighting breaks after < and <= operators #31

Closed
tormol opened this issue Nov 1, 2018 · 4 comments
Closed

Syntax highlighting breaks after < and <= operators #31

tormol opened this issue Nov 1, 2018 · 4 comments

Comments

@tormol
Copy link

tormol commented Nov 1, 2018

1 28 1 screenshot

code

vscode version: 1.28.1 built from source
kotlin-language version: 1.7.0 (from marketplace)
OS: Ubuntu 18.04

@mondique
Copy link

It seems that it thinks that < is the beginning of a scope (an opening brace). As you can see, it highlights the text after > and the original < is highlighted as the corresponding brace for the > sign.
(And by the way, the closing > sign was not shifted by me - I typed it at the beginning of the line - it was probably aligned with the line 2 containing "<")

vscode version: 1.29.1
Kotlin Language version: 1.7.0 (from marketplace)
OS: Windows 10 Pro version 1803

capture

@valen214
Copy link

valen214 commented Mar 4, 2019

/syntaxes/Kotlin.tmLanguage: line 829 suggests the cause is '<' being captured as generic.begin

@wildlava
Copy link
Contributor

wildlava commented Apr 4, 2019

I can verify that temporarily changing the symbols for "<" and ">" on lines 831 and 841 of Kotlin.tmLanguage causes the problem to go away. It might work, therefore, just to remove the detection of the generic begin/end chars (at least as a stop-gap solution). But I am not sure of the exact changes to this file that would be required to do that.

nishtahir added a commit that referenced this issue Dec 9, 2019
Fix #31 - Fix "Syntax highlighting breaks after < and <= operators"
@Mithrandir2k18
Copy link

Mithrandir2k18 commented Feb 10, 2020

Issue still present, check out this file, commit d2e703c, line 63

Kotlin v1.7.0
Windows 10 1709, 16299.1625
Code v 1.42.0

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