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

Highlighting for log files #1354

Closed
kirawi opened this issue Dec 24, 2021 · 3 comments · Fixed by #8916
Closed

Highlighting for log files #1354

kirawi opened this issue Dec 24, 2021 · 3 comments · Fixed by #8916
Assignees
Labels
A-tree-sitter Area: Tree-sitter C-enhancement Category: Improvements

Comments

@kirawi
Copy link
Member

kirawi commented Dec 24, 2021

VSCode already does this natively, and I find it's helpful when looking through huge logs.

@kirawi kirawi added C-enhancement Category: Improvements A-tree-sitter Area: Tree-sitter labels Dec 24, 2021
@kirawi kirawi self-assigned this Dec 24, 2021
@Tudyx
Copy link
Contributor

Tudyx commented Oct 10, 2023

What would be the approach to tackle this? Write a grammar general enough that will work for most of the log files?
Or maybe a regex approche would be more appropriated?

@pascalkuthe
Copy link
Member

You would need to write a Grammer. We don't support regen based highlighting (and don't really plan to in the future either).

@Tudyx
Copy link
Contributor

Tudyx commented Oct 12, 2023

Ok I got something working locally, hopefully I will push an MR soon

Screenshot from 2023-10-12 15-43-39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tree-sitter Area: Tree-sitter C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants