From 707d2f7be8915a78ce087dfcb52c74a6a0a0099b Mon Sep 17 00:00:00 2001 From: Abdelrahman Aly Abounegm Date: Fri, 6 Sep 2024 13:09:14 +0300 Subject: [PATCH] Change fields to methods to support overriding (#1664) --- packages/langium/src/parser/indentation-aware.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/langium/src/parser/indentation-aware.ts b/packages/langium/src/parser/indentation-aware.ts index 79bf645a2..6db1ca2fb 100644 --- a/packages/langium/src/parser/indentation-aware.ts +++ b/packages/langium/src/parser/indentation-aware.ts @@ -112,13 +112,13 @@ export class IndentationAwareTokenBuilder { + protected indentMatcher(text: string, offset: number, tokens: IToken[], _groups: Record): ReturnType { const { indentTokenName } = this.options; if (!this.isStartOfLine(text, offset)) { @@ -256,7 +256,7 @@ export class IndentationAwareTokenBuilder { + protected dedentMatcher(text: string, offset: number, tokens: IToken[], _groups: Record): ReturnType { const { dedentTokenName } = this.options; if (!this.isStartOfLine(text, offset)) { @@ -306,7 +306,7 @@ export class IndentationAwareTokenBuilder