comments support, script loading support
This commit is contained in:
parent
654e8bd55b
commit
bd22b84699
11 changed files with 145 additions and 69 deletions
|
|
@ -254,8 +254,14 @@ func read_cmd(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
|
|||
}
|
||||
}
|
||||
|
||||
output := out.String()
|
||||
olen := len(output)
|
||||
if olen > 0 && output[olen - 1] == '\n' {
|
||||
output = output[:olen - 1]
|
||||
}
|
||||
|
||||
ret := &ast.Token{Tag: ast.STRING}
|
||||
ret.Set(out.String())
|
||||
ret.Set(output)
|
||||
return ret
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue