@lokascript/compilation-service 2.2.0 → 2.2.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.
package/dist/http.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CompilationService
3
- } from "./chunk-PVQF6QYP.js";
3
+ } from "./chunk-5VQO5CSQ.js";
4
4
  import "./chunk-GBPMR66W.js";
5
5
 
6
6
  // src/http.ts
package/dist/index.cjs CHANGED
@@ -170,7 +170,8 @@ function tokenize$1(input) {
170
170
  const isCommandContext = prevToken && prevToken.kind === TokenKind.IDENTIFIER && COMMANDS.has(prevToken.value.toLowerCase());
171
171
  const isKeywordContext = prevToken && prevToken.kind === TokenKind.IDENTIFIER && SELECTOR_CONTEXT_KEYWORDS.has(prevToken.value.toLowerCase());
172
172
  const isCSSSelectorContext = !prevToken || prevToken.kind === TokenKind.OPERATOR && prevToken.value !== ")" && prevToken.value !== "]" || isCommandContext || isKeywordContext || prevToken.value === "(" || prevToken.value === "[" || prevToken.value === "{" || prevToken.value === "," || prevToken.value === ";";
173
- if (isCSSSelectorContext && isAlpha(peek(tokenizer))) {
173
+ const isAdjacentToPrev = prevToken && prevToken.end === tokenizer.position;
174
+ if (isCSSSelectorContext && !isAdjacentToPrev && isAlpha(peek(tokenizer))) {
174
175
  tokenizeCSSSelector(tokenizer);
175
176
  continue;
176
177
  }