Skip to content

Commit

Permalink
fix: resolve infinite loop in Kotlin parser class
Browse files Browse the repository at this point in the history
  • Loading branch information
ksg97031 authored Sep 10, 2024
1 parent 4b7eaea commit 83455f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miniparsers/kotlin.cr
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class KotlinParser
lcurl_nesting, paren_nesting = 0, 0
class_tokens = Array(Token).new
class_tokens << token
elsif start_class
elsif start_class && lcurl_nesting > 0
# Recursively parse nested classes
parse_classes(tokens, index)
end
Expand Down

0 comments on commit 83455f0

Please sign in to comment.