@helios-lang/compiler-utils
Advanced tools
Comparing version
{ | ||
"name": "@helios-lang/compiler-utils", | ||
"version": "0.5.11", | ||
"version": "0.5.12", | ||
"description": "Helios language compiler library", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -421,3 +421,3 @@ import { isUndefined } from "@helios-lang/type-utils" | ||
* 4. the NL token isn't the last token in the reader | ||
* @param {string[]} multilineOperators | ||
* @param {string[]} multilineOperators - can be Symbol or Keyword | ||
* @returns {TokenReader} | ||
@@ -433,3 +433,3 @@ */ | ||
const isMultilineOperator = (t) => { | ||
if (t.kind == "symbol") { | ||
if (t.kind == "symbol" || t.kind == "word") { | ||
return multilineOperators.includes(t.value) | ||
@@ -456,5 +456,5 @@ } else { | ||
// the NL isn't first nor last | ||
// the NL isn't the first token nor the last token | ||
if (t.kind == "newline" && i > 0 && i < n - 1) { | ||
// the prev token isn't another NL, nor a known multiline operator | ||
// the previous token isn't another NL, nor a known multiline operator | ||
if ( | ||
@@ -461,0 +461,0 @@ prev && |
158641
0.04%