Microsoft/monaco-editor

Keyword "field" is highlighted in Kotlin package names

Open

#2351 aperta il 14 feb 2021

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (1283 fork)batch import
buggrammarshelp wanted

Metriche repository

Star
 (14.836 star)
Metriche merge PR
 (Merge medio 6h 26m) (15 PR mergiate in 30 g)

Descrizione

Create Kotlin file foo.kt with content:

package com.boo.field
import com.foo.field.bar

View it it Azure DevOps web commit history, web editor or PR view (anywhere where code is displayed), notice "field" is highlighted blue. This is because "field" is keyword in Kotlin, but keywords should not apply for package names.

Note: this issue was redirected to monaco by Azure Dev Ops support: "This issue seems to be caused by Monaco-languages and not Visual Studio. Please file a ticket with that product at https://github.com/microsoft/monaco-languages" https://developercommunity2.visualstudio.com/t/DevOps-code-viewer-highlights-field-in/1299514?entry=myfeedback&space=21

Guida contributor