Comments (4)
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
from vscode-kotlin.
/syntaxes/Kotlin.tmLanguage: line 829
suggests the cause is '<' being captured as generic.begin
from vscode-kotlin.
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.
from vscode-kotlin.
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
from vscode-kotlin.
Related Issues (20)
- Incorrect string interpolation parsing leaves closing quotes undetected
- Colorizing part of the variable name when it ends with "?."
- Support for imports HOT 1
- Sintax hightlight is broken when use String interpolation HOT 3
- kotlin support in markdown documents is missing HOT 2
- Customizable colors HOT 2
- Specific kotlin codeblock breaks markdown document HOT 1
- Highlighting sometimes off
- Syntax Highlight broken when quote and double-quotes are used
- Char literal syntax highlighting wrong for double-quote '"'
- The Kotlin Language Client server crashing HOT 1
- No syntax highlighting HOT 1
- won't install in devcontainer HOT 2
- Doesn't work in VS Code HOT 1
- No methods outline with this plugin HOT 1
- Safe call ("someVariable.?test()") Syntax highlighting is broken
- Why there is no problems at the corner of editor when prolem file is open?
- support install in remote machine
- Hover Provider to show docs
- Code Snippet not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-kotlin.