You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name of the lexer
When a block has more than 5 arguments, the closing bracket is highlighted in red.
Code sample
A sample of the code that produces the bug.
block {
a = true
b = true
c = true
d = true
e = true
f = true
}
block {
a = true
b = true
c = true
d = true
e = true
}
resource "test" "test" {
a = true
b = true
c = true
d = true
e = true
f = true
}
The reason why it fails after that is because MAX_NULL_SCANS = 5. So the number of arguments is limited by the stack it reaches why recursing into :composite.
Name of the lexer
When a block has more than 5 arguments, the closing bracket is highlighted in red.
Code sample
A sample of the code that produces the bug.
https://rouge.jneen.net/v4.5.1/terraform/YmxvY2sgewogIGEgPSB0cnVlCiAgYiA9IHRydWUKICBjID0gdHJ1ZQogIGQgPSB0cnVlCiAgZSA9IHRydWUKICBmID0gdHJ1ZQp9CgpibG9jayB7CiAgYSA9IHRydWUKICBiID0gdHJ1ZQogIGMgPSB0cnVlCiAgZCA9IHRydWUKICBlID0gdHJ1ZQp9CgpyZXNvdXJjZSAidGVzdCIgInRlc3QiIHsKICBhID0gdHJ1ZQogIGIgPSB0cnVlCiAgYyA9IHRydWUKICBkID0gdHJ1ZQogIGUgPSB0cnVlCiAgZiA9IHRydWUKfQ
Additional context
N/A
The text was updated successfully, but these errors were encountered: