mvanhorn opened a new pull request, #9706:
URL: https://github.com/apache/netbeans/pull/9706

   ### LLMs, Commit messages and PR description:
   
   xmlIdentifierAcceptor now accepts only characters for which 
Character.isJavaIdentifierPart is true, which keeps letters, digits, and 
underscore in the word and excludes punctuation. XmlCamelCaseInterceptor is 
registered for text/xml and, when the useCamelCaseStyleNavigation preference is 
on, sets the next or previous offset to an uppercase boundary inside a TAG, 
ARGUMENT, TEXT, VALUE, PI_TARGET, PI_CONTENT, or CDATA_SECTION token, and only 
while the run up to that boundary is still an identifier. A disabled 
preference, a non-text token such as a comment, or a rejected character before 
the hump leaves the offset unset so the default word scan runs. 
XmlCamelCaseInterceptorTest covers the acceptor and those forward, backward, 
punctuation, markup, and comment offsets.
   
   In an XML buffer such as a Maven POM, Ctrl-Shift-Left and Ctrl-Shift-Right 
extend the selection across a whole element name or value. Movement does not 
stop at punctuation in values such as org.apache.maven or 
maven-compiler-plugin, or at camel-case boundaries in names such as artifactId. 
The XML identifier acceptor treated every character as part of a word except 
whitespace and the markup characters <, >, &, quotes, slash, and backslash, so 
dots and hyphens stayed inside the word. text/xml had no CamelCaseInterceptor, 
so a run of identifier characters was never split where a lowercase sequence 
meets an uppercase letter.
   
   Fixes #9664
   
   ### PR approval and merge checklist:
   
   1. [ ] Was this PR [correctly 
labeled](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=240884239#PRsandYouAreviewerGuide-PRtriggeredCIJobs(conditionalCIpipeline)),
 did the right tests run? When did they run?
   2. [ ] Is this PR 
[squashed](https://cwiki.apache.org/confluence/display/NETBEANS/git%3A+squash+and+merge)?
   3. [ ] Are author name / email address correct? Are 
[co-authors](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors#creating-co-authored-commits-on-the-command-line)
 correctly listed? Do the commit messages need updates?
   3. [ ] Does the PR title and description still fit after the Nth iteration? 
Is the description sufficient to appear in the release notes?
   
   If this PR targets the delivery branch: [don't 
merge](https://cwiki.apache.org/confluence/display/NETBEANS/Pull+requests+for+delivery).
 ([full wiki 
article](https://cwiki.apache.org/confluence/display/NETBEANS/PRs+and+You+-+A+reviewer+Guide))
   
   </details>
   
   AI was used for assistance.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to