Qi Xiao
a36a372624
pkg: Fix small issues found by staticcheck.
2020-04-13 13:56:10 +01:00
Qi Xiao
7832239b78
pkg/parse: Add skeleton tests for error.go.
...
Also rename the PPrint method to Show to keep up with a previous change.
This addresses #944 .
2020-04-02 05:57:06 +01:00
Qi Xiao
c05f11d3dc
[cleanup] pkg/diag: PPrint -> Show.
2020-03-31 00:27:08 +01:00
Qi Xiao
9bebf49b40
pkg/diag: Let NewContext accept a Ranging.
2020-03-28 22:12:42 +00:00
Qi Xiao
d35111c7b0
Format Go files and rerun go generate.
2020-03-28 21:38:17 +00:00
Qi Xiao
6b6029452f
Revert "Validate namespace and function names"
...
This breaks the use of meta characters in names of user-defined functions. See
b.elv.sh/946 on how to resolve the inconsistency on the restrictions in variable
names.
This reverts commit 02f5433789
.
2020-03-22 22:06:14 +00:00
Kurtis Rader
02f5433789
Validate namespace and function names
...
Resolves #561
2020-03-20 23:15:02 +00:00
Qi Xiao
6d4abe1666
pkg/eval: Handle ~username/* correctly.
...
This fixes #793 .
2020-01-14 08:03:41 -05:00
Qi Xiao
6da3f5e9de
pkg/parse: Remove the Error type; use diag.Error instead.
2019-12-29 23:23:13 +00:00
Qi Xiao
e45fdf7228
Move all libraries to new pkg/.
2019-12-23 20:00:59 +00:00