From aedf58eb81afad03d8561ac021c44a06e388443c Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Mon, 16 Dec 2013 16:00:14 -0800 Subject: [PATCH] minor cleanup --- build.sh | 2 +- stdx/lexer.d | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/build.sh b/build.sh index cd0009a..f10e909 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #dmd *.d stdx/d/*.d -release -inline -noboundscheck -O -w -wi -m64 -property -ofdscanner-dmd dmd main.d stats.d imports.d highlighter.d ctags.d astprinter.d formatter.d outliner.d stdx/*.d stdx/d/*.d -g -m64 -wi -ofdscanner -#ldc2 -O3 *.d stdx/d/*.d -of=dscanner-ldc -release -m64 +#ldc2 main.d stats.d imports.d highlighter.d ctags.d astprinter.d formatter.d outliner.d stdx/*.d stdx/d/*.d -O3 -of=dscanner-ldc -release -m64 -oq #ldc2 *.d stdx/d/*.d -of=dscanner -unittest -m64 -g #/opt/gdc/bin/gdc -O3 -odscanner-gdc -fno-bounds-check -frelease -m64 *.d stdx/d/*.d diff --git a/stdx/lexer.d b/stdx/lexer.d index 1e65e44..c278593 100644 --- a/stdx/lexer.d +++ b/stdx/lexer.d @@ -94,7 +94,7 @@ struct TokenStructure(IDType) { this.type = type; } - + this(IDType type, string text, size_t line, size_t column, size_t index) { this.text = text; @@ -167,7 +167,7 @@ mixin template Lexer(R, IDType, Token, alias isSeparating, alias defaultTokenFun } return code; } - + static string generateLeaf(string token, string indent) { string code; @@ -261,9 +261,9 @@ mixin template Lexer(R, IDType, Token, alias isSeparating, alias defaultTokenFun } } - /** - * This only exists because the real array() can't be called at compile-time - */ + /** + * This only exists because the real array() can't be called at compile-time + */ static T[] stupidToArray(R, T = ElementType!R)(R range) { T[] rVal; @@ -312,7 +312,7 @@ public: _index++; _column++; } - + void popFrontN(size_t n) pure nothrow { foreach (i; 0 .. n) @@ -353,13 +353,13 @@ public: { return range[markBegin .. index]; } - + void incrementLine() pure nothrow { _column = 1; _line++; } - + size_t line() pure nothrow const @property { return _line; } size_t column() pure nothrow const @property { return _column; } size_t index() pure nothrow const @property { return _index; } @@ -461,13 +461,13 @@ private: // marking = false; // return markBuffer.data; // } -// +// // void incrementLine() pure nothrow // { // _column = 1; // _line++; // } -// +// // size_t line() pure nothrow const @property { return _line; } // size_t column() pure nothrow const @property { return _column; } // size_t index() pure nothrow const @property { return _index; }