mirror of https://github.com/buggins/dlangui.git
OpenD-related fixes
This commit is contained in:
parent
b5546ee80b
commit
98f98c64fc
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue