Skip to content

Commit

Permalink
Experiment, treat ignores as reader tags more
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Apr 23, 2024
1 parent 271af11 commit b2c966f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cursor-doc/token-cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export class LispTokenCursor extends TokenCursor {
let hasReader = false;
while (true) {
cursor.backwardWhitespace();
if (cursor.getPrevToken().type === 'reader') {
if (['reader', 'ignore'].includes(cursor.getPrevToken().type)) {
cursor.previous();
this.set(cursor);
hasReader = true;
Expand All @@ -425,7 +425,7 @@ export class LispTokenCursor extends TokenCursor {
let hasReader = false;
while (true) {
cursor.forwardWhitespace();
if (cursor.getToken().type === 'reader') {
if (['reader', 'ignore'].includes(cursor.getToken().type)) {
cursor.next();
this.set(cursor);
hasReader = true;
Expand Down

0 comments on commit b2c966f

Please sign in to comment.