remove indents from dowrap if they are 0 width
This commit is contained in:
@@ -75,7 +75,7 @@ ParsedValue *parse_dowrap(char *file, DArray *tokens, size_t *index) {
|
|||||||
pass = true;
|
pass = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (temp_indent_depth >= indent_depth) {
|
if (temp_indent_depth > indent_depth) {
|
||||||
size_t indent_amount = temp_indent_depth-indent_depth;
|
size_t indent_amount = temp_indent_depth-indent_depth;
|
||||||
Token indent_token;
|
Token indent_token;
|
||||||
indent_token.line = token->line;
|
indent_token.line = token->line;
|
||||||
|
|||||||
9
test.ar
9
test.ar
@@ -7,7 +7,10 @@ let a,
|
|||||||
identity(x) = x,
|
identity(x) = x,
|
||||||
f(x)=do
|
f(x)=do
|
||||||
term.log("hello world")
|
term.log("hello world")
|
||||||
,
|
do
|
||||||
|
term.log('hello world')
|
||||||
|
term.log("hello world")
|
||||||
|
,
|
||||||
g(y, z),
|
g(y, z),
|
||||||
result,
|
result,
|
||||||
z = 0,
|
z = 0,
|
||||||
@@ -23,7 +26,7 @@ let a,
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -38,7 +41,7 @@ else term.log("bruh")
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
mm
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user