Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Jul 16, 2023
1 parent 752458c commit d7df465
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sites/docs/src/examples/TraceryExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,9 @@ function nodeToKeyPath(
const index = (grammar[symbol] || []).findIndex(
(x) => x === range.node.childRule
);
// used to also grab the key, but that adds incorrect coloring
if (!isNaN(index) && index > -1) {
return [
{ keyPath: [symbol, index], range },
// { keyPath: [`${symbol}___key`], range },
];
return [{ keyPath: [symbol, index], range }];
} else {
return [];
}
Expand Down

0 comments on commit d7df465

Please sign in to comment.