Skip to content

Commit

Permalink
OpenD-related fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimMaple committed Oct 14, 2024
1 parent b5546ee commit 98f98c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dlangui/dml/tokenizer.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/dlangui/widgets/editors.d
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 98f98c6

Please sign in to comment.