Incorrect bracket matching when JavaScript identifier contains $
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 65/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
- Bereich
- devtools
Rechercherichtung
Look at the bracket matching logic in the JavaScript editor, likely in a language server or syntax highlighting component. Start by searching for files handling bracket matching or tokenization for JavaScript. Reproduce the issue locally with the provided test case to confirm the bug. Check how '$' is being interpreted in identifiers and adjust the matching rules to treat it as part of an identifier, not a bracket.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
In the JavaScript editor, bracket matching incorrectly associates an opening { with a $ character instead of the corresponding closing }.
This is reproducible in a completely new, empty .js file, so it does not appear to be related to the project, existing source code, or workspace configuration.
Steps to reproduce
- Create a new empty JavaScript file, for example
test.js. - Enter the following code:
function test() {
const $this = $(this);
}
- Place the cursor on the opening
{afterfunction test().
Actual result
The $ character in $this / $(this) is highlighted as the matching character.
For example:
function test() {
const $this = $(this);
^
The $ is highlighted instead of the closing }.
Expected result
The corresponding closing brace should be highlighted:
function test() {
const $this = $(this);
}
^
The $ character is valid in JavaScript identifiers and should not be treated as a bracket or matching character.
Additional information
The problem is reproducible with a completely new JavaScript file containing only the above code.
Try removing the $s from the file and I see that NO } is highlighted
Environment
- Eclipse IDE: 4.41
- Eclipse Wild Web Developer: 1.4.1.202608181434
- Feature:
org.eclipse.wildwebdeveloper.feature.feature.group - Operating system: Windows
- Language: JavaScript
Notes
The issue also occurs in existing JavaScript source code, including code using jQuery, but jQuery itself does not appear to be relevant because the minimal example above reproduces the problem.
The problem affects only the visual bracket matching/highlighting; the JavaScript code itself is valid.
- Vorherrschende Sprache
- Java
- Sterne
- 203
- Forks
- 76
- Ø Merge
- 1 T. 5 Std.
- Gemergte PRs (30 T.)
- 30
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus eclipse-wildwebdeveloper/wildwebdeveloper
-
Markdown and Astro language servers do not start when the project path contains a non-ASCII character or a spaceEvtl. vergeben @RoiSoleil hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
eclipse-wildwebdeveloper/wildwebdeveloper#2277 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
eclipse-wildwebdeveloper/wildwebdeveloper#2177 ·
Maintainer antworten meist innerhalb von 1 Tag
-
SQL Language serverOffenenhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
eclipse-wildwebdeveloper/wildwebdeveloper#2122 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
eclipse-wildwebdeveloper/wildwebdeveloper#2070 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
ESLintLanguageServer and JSTSLanguageServer do not support node memory limits (--max-old-space-size)Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
eclipse-wildwebdeveloper/wildwebdeveloper#2027 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in eclipse-wildwebdeveloper/wildwebdeveloper
Ähnliche Issues
-
type: possible bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
-
面渣逆袭Spring事务传播机制勘误Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 80/100
itwanger/toBeBetterJavaer#218 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
johanhaleby/occurrent#1462 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
SasanLabs/VulnerableApp#912 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/build area/events area/storage area/storage/kafkasql area/storage/sql
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Apicurio/apicurio-registry#11079 ·
Maintainer antworten meist innerhalb von 1 Tag