@jbearak/sight 0.14.2 → 0.14.3

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.
@@ -52,7 +52,7 @@ var package_default;
52
52
  var init_package = __esm(() => {
53
53
  package_default = {
54
54
  name: "@jbearak/sight",
55
- version: "0.14.2",
55
+ version: "0.14.3",
56
56
  type: "module",
57
57
  workspaces: [
58
58
  "client"
@@ -114,7 +114,7 @@ var init_package = __esm(() => {
114
114
  author: "Jonathan Marc Bearak",
115
115
  license: "GPL-3.0",
116
116
  dependencies: {
117
- "@jbearak/dta-parser": "^0.3.0",
117
+ "@jbearak/dta-parser": "^0.6.0",
118
118
  picomatch: "^4.0.2",
119
119
  "smol-toml": "^1.6.1",
120
120
  "vscode-languageserver": "^9.0.1",
@@ -14595,6 +14595,13 @@ var init_parser = __esm(() => {
14595
14595
  isArithmeticOperator(value) {
14596
14596
  return value === "+" || value === "-" || value === "*" || value === "/" || value === "^";
14597
14597
  }
14598
+ isMacroRefToken(token) {
14599
+ return token.type === "MACRO_REF_LOCAL" || token.type === "MACRO_REF_GLOBAL";
14600
+ }
14601
+ isAdjacentOperandFragment(prev_token, token) {
14602
+ const is_operand_like = (t) => t.type === "WORD" || t.type === "NUMBER" || this.isMacroRefToken(t);
14603
+ return is_operand_like(prev_token) && is_operand_like(token) && (this.isMacroRefToken(prev_token) || this.isMacroRefToken(token)) && this.isAdjacentToken(prev_token, token);
14604
+ }
14598
14605
  isValidAfterComparison(token) {
14599
14606
  if (token.type === "RPAREN") {
14600
14607
  return true;
@@ -15309,11 +15316,12 @@ var init_parser = __esm(() => {
15309
15316
  continuation.note_continuation(token);
15310
15317
  continue;
15311
15318
  }
15319
+ const is_operand_fragment = prev_token !== null && this.isAdjacentOperandFragment(prev_token, token);
15312
15320
  if (paren_depth === 0 && bracket_depth === 0) {
15313
15321
  if (token.type === "COMMA") {
15314
15322
  break;
15315
15323
  }
15316
- if (stop_at_in && token.type === "WORD" && token.value === "in") {
15324
+ if (stop_at_in && token.type === "WORD" && token.value === "in" && !is_operand_fragment) {
15317
15325
  break;
15318
15326
  }
15319
15327
  if (token.type === "LBRACE") {
@@ -15328,7 +15336,7 @@ var init_parser = __esm(() => {
15328
15336
  in_string_context = !in_string_context;
15329
15337
  }
15330
15338
  const current_state = state_stack[state_stack.length - 1];
15331
- if (current_state === "AFTER_RHS" && token.type !== "LPAREN" && token.type !== "RPAREN" && token.type !== "LBRACKET" && token.type !== "RBRACKET" && bracket_depth === 0 && !in_string_context && !is_delimiter_only) {
15339
+ if (current_state === "AFTER_RHS" && token.type !== "LPAREN" && token.type !== "RPAREN" && token.type !== "LBRACKET" && token.type !== "RBRACKET" && bracket_depth === 0 && !in_string_context && !is_delimiter_only && !is_operand_fragment) {
15332
15340
  if (prev_token && this.detectSplitLiteral(prev_token, token)) {} else if (!this.isValidAfterComparison(token)) {
15333
15341
  this.addError(`Unexpected token '${token.value}' after comparison expression. Did you mean to use '&' or '|'?`, token.range, "STRAY_TOKEN_IN_CONDITION" /* STRAY_TOKEN_IN_CONDITION */);
15334
15342
  }
@@ -73804,4 +73812,4 @@ export {
73804
73812
  is_cli_entry_point
73805
73813
  };
73806
73814
 
73807
- //# debugId=87D5065082C541EF64756E2164756E21
73815
+ //# debugId=26F6D7391A01C62064756E2164756E21
@@ -1 +1 @@
1
- 151dd39330b47c8992ffedf69fa32703ddca0c1f6f1181339fcf58d5880b242f sight-server.js
1
+ 29571e2adbaf388e86c862f9563a283a28569601d9fe0563b3df58e8b12a6c37 sight-server.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbearak/sight",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  "client"
@@ -62,7 +62,7 @@
62
62
  "author": "Jonathan Marc Bearak",
63
63
  "license": "GPL-3.0",
64
64
  "dependencies": {
65
- "@jbearak/dta-parser": "^0.3.0",
65
+ "@jbearak/dta-parser": "^0.6.0",
66
66
  "picomatch": "^4.0.2",
67
67
  "smol-toml": "^1.6.1",
68
68
  "vscode-languageserver": "^9.0.1",