arc-lang 0.6.8 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formatter.js +4 -1
- package/dist/linter.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/formatter.js
CHANGED
|
@@ -108,7 +108,10 @@ export function format(source, options) {
|
|
|
108
108
|
function formatExpr(expr, depth) {
|
|
109
109
|
switch (expr.kind) {
|
|
110
110
|
case "IntLiteral": return String(expr.value);
|
|
111
|
-
case "FloatLiteral":
|
|
111
|
+
case "FloatLiteral": {
|
|
112
|
+
const s = String(expr.value);
|
|
113
|
+
return s.includes('.') ? s : s + '.0';
|
|
114
|
+
}
|
|
112
115
|
case "BoolLiteral": return expr.value ? "true" : "false";
|
|
113
116
|
case "NilLiteral": return "nil";
|
|
114
117
|
case "StringLiteral": {
|
package/dist/linter.js
CHANGED
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED