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
|
/// simple tokenizer for DlangUI ML
|
||||||
class Tokenizer {
|
class Tokenizer {
|
||||||
|
|
||||||
protected string[] _singleLineCommentPrefixes = ["//"];
|
protected string[] _singleLineCommentPrefixes;
|
||||||
protected LineStream _lines;
|
protected LineStream _lines;
|
||||||
protected dchar[] _lineText;
|
protected dchar[] _lineText;
|
||||||
protected ushort _line;
|
protected ushort _line;
|
||||||
|
|
|
||||||
|
|
@ -415,7 +415,7 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Characters at which content is split for word wrap mode
|
/// 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
|
/// Divides up a string for word wrapping, sets info in _span
|
||||||
dstring[] wrapLine(dstring str, int lineNumber) {
|
dstring[] wrapLine(dstring str, int lineNumber) {
|
||||||
|
|
@ -465,7 +465,7 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Divide (and conquer) text into words
|
/// Divide (and conquer) text into words
|
||||||
dstring[] explode(dstring str, dchar[] splitChars)
|
dstring[] explode(dstring str, const(dchar)[] splitChars)
|
||||||
{
|
{
|
||||||
dstring[] parts;
|
dstring[] parts;
|
||||||
int startIndex = 0;
|
int startIndex = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue