diff --git a/src/cursor-doc/token-cursor.ts b/src/cursor-doc/token-cursor.ts index 657697661..741d12c23 100644 --- a/src/cursor-doc/token-cursor.ts +++ b/src/cursor-doc/token-cursor.ts @@ -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; @@ -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;