Incorrect bracket matching when JavaScript identifier contains $
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- devtools
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 203
- フォーク
- 76
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 30
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-wildwebdeveloper/wildwebdeveloper のほかの issue
-
Markdown and Astro language servers do not start when the project path contains a non-ASCII character or a space対応中かも @RoiSoleil が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eclipse-wildwebdeveloper/wildwebdeveloper#2277 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
eclipse-wildwebdeveloper/wildwebdeveloper#2177 ·
メンテナーはふだん 1 日以内に返信
-
SQL Language serverオープンenhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
eclipse-wildwebdeveloper/wildwebdeveloper#2122 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
eclipse-wildwebdeveloper/wildwebdeveloper#2070 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
ESLintLanguageServer and JSTSLanguageServer do not support node memory limits (--max-old-space-size)オープン
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
eclipse-wildwebdeveloper/wildwebdeveloper#2027 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
eclipse-wildwebdeveloper/wildwebdeveloper の issue をすべて見る
似ている issue
-
面渣逆袭Spring事务传播机制勘误オープン
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
itwanger/toBeBetterJavaer#218 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
johanhaleby/occurrent#1462 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
SasanLabs/VulnerableApp#912 ·
メンテナーはふだん 1 日以内に返信
-
area/build area/events area/storage area/storage/kafkasql area/storage/sql
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Apicurio/apicurio-registry#11079 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
OpenAEV-Platform/openaev#9139 ·
メンテナーはふだん 1 日以内に返信