Bug 166487 - "&H8000&" must be highlighted up to the last "&" as a number
Summary: "&H8000&" must be highlighted up to the last "&" as a number
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-06 23:34 UTC by nobu
Modified: 2025-05-22 10:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
IDE hilight (10.52 KB, image/png)
2025-05-09 09:17 UTC, fpy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nobu 2025-05-06 23:34:04 UTC
Description:
"&H8000&" must be highlighted up to the last "&" as a number.

Steps to Reproduce:
1. Open Basic IDE.
2. Insert sample macro.

Sub sample
 Dim i As Long
  i = &H8000&   '32768
End Sub 

Actual Results:
3. The last "&" in "&H8000&" is not highlighted in the same color.

Expected Results:
3. The "&H8000&" is highlighted in the same color.


Reproducible: Always


User Profile Reset: No

Additional Info:

Reproducible with

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 31108d19e4643cd0fa515a57128fef22d0274ed7
CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded
Comment 1 nobu 2025-05-06 23:50:00 UTC
If the idea is similar to the highlighting of "#1899-12-30#", the initial "&" may not need to be highlighted.
Comment 2 fpy 2025-05-09 09:17:01 UTC
Created attachment 200709 [details]
IDE hilight

already in 7.6.
Comment 3 Andreas Heinisch 2025-05-22 10:45:58 UTC
Should this be really the case? &H8000 depicts the actual number and the trailing & states that this is a Long integer constant.