OpenD-related fixes

This commit is contained in:
Grim 2024-10-14 23:49:34 +03:00
parent b5546ee80b
commit 98f98c64fc
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ class ParserException : Exception {
/// simple tokenizer for DlangUI ML
class Tokenizer {
protected string[] _singleLineCommentPrefixes = ["//"];
protected string[] _singleLineCommentPrefixes;
protected LineStream _lines;
protected dchar[] _lineText;
protected ushort _line;

View File

@ -415,7 +415,7 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction
}
/// Characters at which content is split for word wrap mode
dchar[] splitChars = [' ', '-', '\t'];
immutable dchar[] splitChars = [' ', '-', '\t'];
/// Divides up a string for word wrapping, sets info in _span
dstring[] wrapLine(dstring str, int lineNumber) {
@ -465,7 +465,7 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction
}
/// Divide (and conquer) text into words
dstring[] explode(dstring str, dchar[] splitChars)
dstring[] explode(dstring str, const(dchar)[] splitChars)
{
dstring[] parts;
int startIndex = 0;