Skip to content
New issue

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

develop better heuristics for appending | print #52

Open
maxim-uvarov opened this issue Jul 19, 2024 · 0 comments
Open

develop better heuristics for appending | print #52

maxim-uvarov opened this issue Jul 19, 2024 · 0 comments

Comments

@maxim-uvarov
Copy link
Member

The current everistics doesn't catch multiline string definitions

export def ends-with-definition [
    condition: string
]: nothing -> bool {
    $condition =~ '(;|null|(?>[^\r\n]*\b(let|def|use)\b.*[^\r\n;]*))$'
}
"let a = r#'\"High up in the mountains, a Snake crawled and lay in a damp gorge, coiled
    into a knot, staring out at the sea.'#" | ends-with-definition $in
@maxim-uvarov maxim-uvarov changed the title develop better everistics for appending | print develop better heuristics for appending | print Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant