starlight-cli 1.1.10 → 1.1.12

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/src/lexer.js CHANGED
@@ -28,7 +28,7 @@ class Lexer {
28
28
  'break', 'continue', 'func', 'return',
29
29
  'true', 'false', 'null',
30
30
  'ask', 'define', 'import', 'from', 'as',
31
- 'async', 'await', 'new', 'in', 'do', 'track', 'start', 'race'
31
+ 'async', 'await', 'new', 'in', 'do', 'track', 'start', 'race', 'not', 'and', 'or'
32
32
  ];
33
33
  }
34
34
 
@@ -111,6 +111,8 @@ class Lexer {
111
111
  }
112
112
 
113
113
  if (this.keywords.includes(result)) {
114
+ if (result === 'and') return { type: 'AND', value: 'and', line: startLine, column: startCol };
115
+ if (result === 'or') return { type: 'OR', value: 'or', line: startLine, column: startCol };
114
116
  return { type: result.toUpperCase(), value: result, line: startLine, column: startCol };
115
117
  }
116
118