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

feat: implement first-line-regex #2479

Merged
merged 1 commit into from Feb 13, 2024
Merged

feat: implement first-line-regex #2479

merged 1 commit into from Feb 13, 2024

Conversation

sigmaSd
Copy link
Contributor

@sigmaSd sigmaSd commented Aug 8, 2023

fix #2478

I added a PR for helix for the same thing helix-editor/helix#7853

But there I went with a Vec instead of a String, the example is strace output it can start with ["execve", ,"^[0-9:.]* *execve", "^__libc_start_main"]

Obviously this is not a structured language by any mean (though I wrote a wip grammar for it) so it might be an invalid argument

cli/loader/src/lib.rs Outdated Show resolved Hide resolved
@amaanq
Copy link
Member

amaanq commented Aug 8, 2023

Also a test or two could be useful if you don't mind adding that

@sigmaSd
Copy link
Contributor Author

sigmaSd commented Aug 8, 2023

todo

  • test

@sigmaSd
Copy link
Contributor Author

sigmaSd commented Aug 8, 2023

I applied your suggestion and added a test

cli/src/tests/helpers/dirs.rs Outdated Show resolved Hide resolved
@amaanq amaanq force-pushed the flr branch 2 times, most recently from 9970043 to 0d291f9 Compare August 8, 2023 21:30
cli/loader/src/lib.rs Outdated Show resolved Hide resolved
cli/loader/src/lib.rs Outdated Show resolved Hide resolved
cli/loader/src/lib.rs Outdated Show resolved Hide resolved
cli/loader/src/lib.rs Outdated Show resolved Hide resolved
@ahlinc ahlinc self-assigned this Aug 11, 2023
@ahlinc ahlinc added loader Related to `tree-sitter-loader` crate postponed labels Aug 11, 2023
@ahlinc ahlinc removed their assignment Jan 27, 2024
@amaanq amaanq merged commit 7dd096c into tree-sitter:master Feb 13, 2024
13 checks passed
@amaanq
Copy link
Member

amaanq commented Feb 13, 2024

thanks, sorry for taking so long to get to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
loader Related to `tree-sitter-loader` crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement first-line-regex
4 participants