apache / apache/netbeans

Textselection rules should be context dependent

Open
#7,961 16 comments 0 reactions 0 assignees View on GitHub
Contribution welcome kind:bug
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 23

### What happened

file_js
file_php

Hello, there is a flaw from version 21 to 23 that in version 20, when selecting an identifier id # in the javascript file, it selects all text (name and #)
But if it is javascript in a php file, it only selects the text, not the #.
How can I fix

### Language / Project Type / NetBeans Component

_No response_

### How to reproduce

Hello, there is a flaw from version 21 to 23 that in version 20, when selecting an identifier id # in the javascript file, it selects all text (name and #)
But if it is javascript in a php file, it only selects the text, not the #.
How can I fix

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

windows

### JDK

jdk-22

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

Yes

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported identifier selection in standalone JavaScript and JavaScript embedded in a PHP file on NetBeans 23, comparing it with the reported NetBeans 20 behavior. Trace the editor's context-dependent selection handling; done means the selection consistently follows the intended rule in both contexts and the regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.