Bug 57879 - EDITING : consider an underscore to be part of a string
Summary: EDITING : consider an underscore to be part of a string
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Macro
  Show dependency treegraph
 
Reported: 2012-12-04 13:55 UTC by Cor Nouws
Modified: 2018-11-08 01:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cor Nouws 2012-12-04 13:55:55 UTC
Underscores are frequentely used in names of procedures or variables

therefore it would be great if those are considered to be a part of the string, so that when one makes a selection by
  double click
or
  Ctrl+Shft+Left/Right
the whole string is selected in one time :-)

thanks,
Comment 1 Cor Nouws 2012-12-04 13:58:39 UTC
(feel free to send me a few pointers ;-) )
Comment 2 ababaaa 2015-02-13 16:50:04 UTC
Hello I am a beginner I would like to work on this as my first hack.
Can you guide me where should I start.
Thanks
Comment 3 Yash Patel 2015-02-15 21:37:32 UTC
Hello, I would like to take up this one. Can you please guide me the files I need to look into. Thanks
Comment 4 Cor Nouws 2015-02-16 09:22:49 UTC
@Lovekesh, @Yash,

Hi, thanks a lot for willing to look into this one!

As you see, indeed there are no code pointers here.
I fail time - alas  - to do that.

So if you have no idea yourself, from some earlier experience, maybe it's better to start with issues that _do_ have code pointers. Many of the reported easyHacks do have that.

Regards,
Cor
Comment 5 Robinson Tryon (qubit) 2015-12-10 07:20:07 UTC Comment hidden (obsolete)
Comment 6 Jim Avera 2018-11-08 01:03:15 UTC
Any progress on this?   

Problem is still there in 5.5.0.0.alpha0+ (2017-05-2).

According to the Open Office Basic guide, underscores *are* explicitly permitted in identifiers (called "markers" in the guide).   The IDE should include underscores when double-clicking on an identifier.

https://wiki.openoffice.org/w/images/c/c1/BasicGuide_OOo3.2.0.pdf
Comment 7 Jim Avera 2018-11-08 01:06:02 UTC
The OP was very polite by marking this as an "enhancement" request, but I think it is legitimately a bug because the "spec" (if we can call it that) says that underscores are supposed to be allowed in identifiers.

And they aren't fully allowed, since identifiers containing them can not be (easily) selected in the IDE