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

refactor: whitespace marker to be with single class #953

Merged
merged 11 commits into from
Feb 9, 2024

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Feb 8, 2024

This reduces a number of threads and may improve performance. It also help make WhitespaceMarkers to be implemented as plugins.

Pull request type

  • Other (describe below)
    refactor

Which ticket is resolved?

What does this PR change?

  • Avoid registering three (LF, SP, and TAB) markers but single white space marker class.

Other information

Brings from #951

This reduces a number of threads and may improve performance. It also help make WhitespaceMarkers to be implemented as plugins.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@miurahr miurahr added this to the 6.1.0 (Require Java 11) milestone Feb 8, 2024
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@omegat-org omegat-org deleted a comment from github-actions bot Feb 9, 2024
@omegat-org omegat-org deleted a comment from github-actions bot Feb 9, 2024
Copy link

github-actions bot commented Feb 9, 2024

❌ Run Gradle test failed:

1 similar comment
Copy link

github-actions bot commented Feb 9, 2024

❌ Run Gradle test failed:

- Fix wrong status check
- mark when segment is not active

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
- Fix wrong status check
- mark when segment is not active

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@miurahr miurahr merged commit c1c9737 into master Feb 9, 2024
9 checks passed
@miurahr miurahr deleted the topic/miurahr/marker/refactor-whitespace-marker branch February 9, 2024 11:59
chelobaka pushed a commit to chelobaka/omegat that referenced this pull request Feb 10, 2024
* refactor: whitespace marker to be single method

This reduces a number of threads and may improve performance. It also help make WhitespaceMarkers to be implemented as plugins.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* feat: register WhitespaceMarker as plugin

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* feat: WhitespaceMarker unit test

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* fix: typo

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* feat: improve BiDi marker unit test

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* fix: spotbugs errors

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* style: copyright header

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* fix: condition bugs

- Fix wrong status check
- mark when segment is not active

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* fix: condition bugs

- Fix wrong status check
- mark when segment is not active

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* refactor: improve test assertion

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* chore: update copyright holder

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

---------

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant