Skip to content

Commit 060f2c0

Browse files
committed
fix: Invoke no-operation detach Python method
1 parent 6cad3e9 commit 060f2c0

File tree

2 files changed

+57
-57
lines changed

2 files changed

+57
-57
lines changed

python/gherkin-python.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
@helper HandleParserError(IEnumerable<string> expectedTokens, State state)
1818
{<text> state_comment = "State: @state.Id - @Raw(state.Comment)" # fmt: skip
19-
token.detach
19+
token.detach()
2020
expected_tokens = [
2121
</text>
2222
@foreach (var token in expectedTokens)
@@ -198,13 +198,13 @@ class @(Model.ParserClassName):
198198
{
199199
<text>
200200
def lookahead_@(lookAheadHint.Id)(self, context: ParserContext, currentToken: Token) -> bool:
201-
currentToken.detach
201+
currentToken.detach()
202202
token = None
203203
queue = []
204204
match = False
205205
while True:
206206
token = self.read_token(context)
207-
token.detach
207+
token.detach()
208208
queue.append(token)
209209

210210
if @foreach(var tokenType in lookAheadHint.ExpectedTokens) {<text>self.@MatchToken(tokenType)</text>}:

0 commit comments

Comments
 (0)