We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: reduce of empty array with no initial value
irojs/src/compiler.ts
Line 351 in 355c0e8
getRegexGroups doesn't escape parenthesis inside a character class and returns an empty array.
getRegexGroups
since validateRegexAndStyleList expects getRegexGroups to return at least one capture group, it throws.
validateRegexAndStyleList
name = foo contexts [] { main : context { : pattern { regex \= ([(]) styles [] = .foo; } } } styles [] { .foo : style { color = #CCCCCC textmate_scope = string } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TypeError: reduce of empty array with no initial value
irojs/src/compiler.ts
Line 351 in 355c0e8
getRegexGroups
doesn't escape parenthesis inside a character class and returns an empty array.since
validateRegexAndStyleList
expectsgetRegexGroups
to return at least one capture group, it throws.The text was updated successfully, but these errors were encountered: