@xnoxs/flux-lang 4.0.9 → 4.1.1

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.
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/config.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function join(arr, sep) { return arr.join(sep != null ? sep : ','); }
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/css-preprocessor.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function includes(arr, val) { return arr.includes(val); }
@@ -300,7 +298,7 @@ class CssPreprocessor {
300
298
  const charAfter = (this.src[(this.pos + 3)] ?? "");
301
299
  if ((!/[a-zA-Z0-9_]/.test(charBefore) && !/[a-zA-Z0-9_]/.test(charAfter))) {
302
300
  let j = (this.pos + 3);
303
- while (((j < this.src.length) && ((((this.src[j] == " ") || (this.src[j] == " ")) || (this.src[j] == "\n")) || (this.src[j] == "\r")))) {
301
+ while (((j < this.src.length) && ((((this.src[j] == " ") || (this.src[j] == "\t")) || (this.src[j] == "\n")) || (this.src[j] == "\r")))) {
304
302
  j = (j + 1);
305
303
  }
306
304
  if ((this.src[j] == "{")) {
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/formatter.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function map(arr, fn) { return arr.map(fn); }
package/src/self/jsx.js CHANGED
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/jsx.flux by Flux Lang */
2
- 'use strict';
3
1
  // Flux JSX Runtime
4
2
  "use strict";
5
3
 
@@ -110,7 +108,7 @@ class JsxPreprocessor {
110
108
  return false;
111
109
  }
112
110
  let i = (this.pos - 1);
113
- while (((i >= 0) && ((this.src[i] == " ") || (this.src[i] == " ")))) {
111
+ while (((i >= 0) && ((this.src[i] == " ") || (this.src[i] == "\t")))) {
114
112
  i = (i - 1);
115
113
  }
116
114
  if ((i < 0)) {
@@ -384,7 +382,7 @@ class JsxPreprocessor {
384
382
  }
385
383
 
386
384
  skipWs() {
387
- while (((this.pos < this.src.length) && ((this.src[this.pos] == " ") || (this.src[this.pos] == " ")))) {
385
+ while (((this.pos < this.src.length) && ((this.src[this.pos] == " ") || (this.src[this.pos] == "\t")))) {
388
386
  this.pos = (this.pos + 1);
389
387
  }
390
388
  }
package/src/self/lexer.js CHANGED
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/lexer.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function map(arr, fn) { return arr.map(fn); }
@@ -91,7 +89,7 @@ class Lexer {
91
89
  s += "\n";
92
90
  }
93
91
  else if ((e == "t")) {
94
- s += " ";
92
+ s += "\t";
95
93
  }
96
94
  else if ((e == "`")) {
97
95
  s += "`";
@@ -148,7 +146,7 @@ class Lexer {
148
146
  text += "\n";
149
147
  }
150
148
  else if ((e == "t")) {
151
- text += " ";
149
+ text += "\t";
152
150
  }
153
151
  else if ((e == "\"")) {
154
152
  text += "\"";
@@ -278,8 +276,8 @@ class Lexer {
278
276
  if (bol) {
279
277
  bol = false;
280
278
  let indent = 0;
281
- while (((this.ch() == " ") || (this.ch() == " "))) {
282
- if ((this.ch() == " ")) {
279
+ while (((this.ch() == " ") || (this.ch() == "\t"))) {
280
+ if ((this.ch() == "\t")) {
283
281
  indent = (indent + 4);
284
282
  }
285
283
  else {
@@ -333,7 +331,7 @@ class Lexer {
333
331
  }
334
332
  continue;
335
333
  }
336
- if (((cur == " ") || (cur == " "))) {
334
+ if (((cur == " ") || (cur == "\t"))) {
337
335
  this.adv();
338
336
  continue;
339
337
  }
@@ -421,7 +419,7 @@ class Lexer {
421
419
  sq += "\n";
422
420
  }
423
421
  else if ((e == "t")) {
424
- sq += " ";
422
+ sq += "\t";
425
423
  }
426
424
  else if ((e == "r")) {
427
425
  sq += "\r";
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/linter.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function sort(arr, fn) { return arr.slice().sort(fn); }
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/mangler.flux by Flux Lang */
2
- 'use strict';
3
1
  // Flux JSX Runtime
4
2
  "use strict";
5
3
 
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/parser.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function map(arr, fn) { return arr.map(fn); }
package/src/self/pkg.js CHANGED
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/pkg.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function map(arr, fn) { return arr.map(fn); }
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/sourcemap.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function join(arr, sep) { return arr.join(sep != null ? sep : ','); }
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/stdlib.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function map(arr, fn) { return arr.map(fn); }
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/test-runner.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function map(arr, fn) { return arr.map(fn); }
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/transpiler.flux by Flux Lang */
2
- 'use strict';
3
1
  // Generated by Flux Transpiler v3.2.0
4
2
  "use strict";
5
3
 
@@ -1,5 +1,3 @@
1
- /* compiled from src/self/type-checker.flux by Flux Lang */
2
- 'use strict';
3
1
  // ── Flux stdlib ──
4
2
 
5
3
  function map(arr, fn) { return arr.map(fn); }