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

ErrorList lexer fixes #3

Open
wants to merge 1 commit into
base: wx
Choose a base branch
from
Open

Conversation

eranif
Copy link

@eranif eranif commented Nov 29, 2024

  • Better handling of CMake status messages

With the current handling, lines starting with - are considered "Diff deleted" message except for lines starting with --- which are considered as "Diff message". A common pattern are the status line generated by CMake. These lines are starting with --. This fix handles them as "normal" lines and not has "Diff deleted" lines

  • Better handling for the ls -l output

A common output for the ls -l command are lines with a similar pattern to:

-rw-r--r--  1 user user   80864 Nov  4 23:35 file.cpp

These lines are mistakenly considered as "Diff deleted" lines (due to the - at the start) - this commit fixes this behavior

- Better handling of CMake status messages

With the current handling, lines starting with "-" are considered "Diff deleted" message
except for lines starting with "---" which are considered as "Diff message". A common
line is also the CMake status lines which generate lines starting with "--". This fix
handles them as "normal" lines and not has "Diff deleted" lines

- Exclude output of the command "ls -l" from labeled as "Diff deleted" lines

A common output for the "ls -l" command are lines with a similar pattern to:

`-rw-r--r--  1 user user   80864 Nov  4 23:35 file.cpp`

These lines are mistakenly considered as "Diff deleted" lines - this commit
fixes this behavior

Signed-off-by: Eran Ifrah <[email protected]>
@vadz
Copy link

vadz commented Nov 29, 2024

Thanks, but is this change already present upstream? It would be nice to avoid diverging from it more than strictly necessary.

@eranif
Copy link
Author

eranif commented Nov 29, 2024

I was not sure if this fork is aligned with the official one, I can post it there as well

@eranif
Copy link
Author

eranif commented Nov 29, 2024

Posted a PR for Lexilla as well:

ScintillaOrg#293

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

Successfully merging this pull request may close these issues.

2 participants