PureBasic editor changes lowercase variable names to capitalized form inside `HeaderSection` (e.g., `end` → `End`)
Posted: Sun Oct 26, 2025 12:08 pm
While working with PureBasic x86 6.30 beta4, I encountered an issue where the editor automatically changes the capitalization of variable names inside the `HeaderSection`. For example, when declaring a variable named `end`, the editor modifies it to `End`. This behavior is problematic because C is case-sensitive, and such changes lead to unexpected behavior or compilation errors.
1. Open PureBasic x86 6.30 beta4.
2. Create a new source file and define a `HeaderSection`.
3. Inside the `HeaderSection`, declare a variable using lowercase:
```
4. Save, Close, Open
Observe that the editor changes `end` to `End` automatically on Open.
Expected Behavior:
The editor should preserve the original capitalization of variable names.
Environment:
- Editor: PureBasic x86 6.30 beta4
- OS: Windows 11
1. Open PureBasic x86 6.30 beta4.
2. Create a new source file and define a `HeaderSection`.
3. Inside the `HeaderSection`, declare a variable using lowercase:
Code: Select all
HeaderSection
end = 0;
EndHeaderSection
4. Save, Close, Open
Observe that the editor changes `end` to `End` automatically on Open.
Expected Behavior:
The editor should preserve the original capitalization of variable names.
Environment:
- Editor: PureBasic x86 6.30 beta4
- OS: Windows 11