feat(cli): add support for TeX and derivative languages#2731
Merged
elijah-potter merged 1 commit intoAutomattic:masterfrom Feb 16, 2026
Merged
feat(cli): add support for TeX and derivative languages#2731elijah-potter merged 1 commit intoAutomattic:masterfrom
elijah-potter merged 1 commit intoAutomattic:masterfrom
Conversation
aac37c8 to
8ae1782
Compare
elijah-potter
approved these changes
Feb 16, 2026
Collaborator
elijah-potter
left a comment
There was a problem hiding this comment.
This looks great. Thank you!
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Feb 19, 2026
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [Automattic/harper/harper-ls](https://github.com/Automattic/harper) | minor | `v1.7.0` → `v1.8.0` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>Automattic/harper (Automattic/harper/harper-ls)</summary> ### [`v1.8.0`](https://github.com/Automattic/harper/releases/tag/v1.8.0) [Compare Source](Automattic/harper@v1.7.0...v1.8.0) #### What's Changed - build(thesaurus): reduce compression level for debug builds by [@​86xsk](https://github.com/86xsk) in [#​2694](Automattic/harper#2694) - feat(chrome-ext): move the review request to 14 days after installation by [@​elijah-potter](https://github.com/elijah-potter) in [#​2707](Automattic/harper#2707) - feat(web): show better explanation for how the Chrome extension works by [@​elijah-potter](https://github.com/elijah-potter) in [#​2712](Automattic/harper#2712) - fix: add Zig to places I missed on the previous MR by [@​hippietrail](https://github.com/hippietrail) in [#​2709](Automattic/harper#2709) - fix: better fix for "more foreign" → "foreigner" by [@​hippietrail](https://github.com/hippietrail) in [#​2711](Automattic/harper#2711) - docs: update link to correct destination by [@​hulet](https://github.com/hulet) in [#​2714](Automattic/harper#2714) - Dictionary curation by [@​hippietrail](https://github.com/hippietrail) in [#​2662](Automattic/harper#2662) - feat(harper-comments): add Groovy support by [@​elijah-potter](https://github.com/elijah-potter) in [#​2713](Automattic/harper#2713) - fix(chrome-ext): tips should refer to "Dismiss" button, not an "Ignore" button by [@​elijah-potter](https://github.com/elijah-potter) in [#​2719](Automattic/harper#2719) - feat(ls): add support for `TeX` and derivative languages by [@​elijah-potter](https://github.com/elijah-potter) in [#​2689](Automattic/harper#2689) - build(deps): bump bitflags from 2.10.0 to 2.11.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2737](Automattic/harper#2737) - build(deps): bump sysinfo from 0.38.1 to 0.38.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2735](Automattic/harper#2735) - build(deps): bump zip from 2.4.2 to 8.0.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2733](Automattic/harper#2733) - build(deps): bump futures from 0.3.31 to 0.3.32 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2736](Automattic/harper#2736) - build(deps): bump quickcheck\_macros from 1.1.0 to 1.2.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2734](Automattic/harper#2734) - feat(core): a good helping of new Weir rules by [@​elijah-potter](https://github.com/elijah-potter) in [#​2710](Automattic/harper#2710) - feat(cli): add support for TeX and derivative languages by [@​verri](https://github.com/verri) in [#​2731](Automattic/harper#2731) - feat(obsidian): add keyboard tooltip actions by [@​stanley-910](https://github.com/stanley-910) in [#​2732](Automattic/harper#2732) - feat: add adjective support to not longer→no longer by [@​hippietrail](https://github.com/hippietrail) in [#​2723](Automattic/harper#2723) - fix(web): hide the erroring "Last Updated" field by [@​elijah-potter](https://github.com/elijah-potter) in [#​2722](Automattic/harper#2722) - feat:lead rise to→give rise to by [@​hippietrail](https://github.com/hippietrail) in [#​2729](Automattic/harper#2729) - fix(core): false positive in the `ToTwoToo` rule by [@​elijah-potter](https://github.com/elijah-potter) in [#​2721](Automattic/harper#2721) - fix(core): false positive from `ItsContraction` by [@​elijah-potter](https://github.com/elijah-potter) in [#​2720](Automattic/harper#2720) - feat: all be it/al be it→albeit by [@​hippietrail](https://github.com/hippietrail) in [#​2741](Automattic/harper#2741) - fix: adaptive `message` to address issue [#​2743](Automattic/harper#2743) by [@​hippietrail](https://github.com/hippietrail) in [#​2748](Automattic/harper#2748) - fix: `is_possessive_nominal()` had wrong logic by [@​hippietrail](https://github.com/hippietrail) in [#​2740](Automattic/harper#2740) - feat: ctrl→control by [@​hippietrail](https://github.com/hippietrail) in [#​2747](Automattic/harper#2747) - fix(core): ignore top-level domains by [@​elijah-potter](https://github.com/elijah-potter) in [#​2750](Automattic/harper#2750) - chore: dictionary curation 2026-02-14 by [@​hippietrail](https://github.com/hippietrail) in [#​2728](Automattic/harper#2728) - feat: did went→did go by [@​hippietrail](https://github.com/hippietrail) in [#​2744](Automattic/harper#2744) - feat: create an AGENTS.md by [@​elijah-potter](https://github.com/elijah-potter) in [#​2751](Automattic/harper#2751) #### New Contributors - [@​hulet](https://github.com/hulet) made their first contribution in [#​2714](Automattic/harper#2714) - [@​verri](https://github.com/verri) made their first contribution in [#​2731](Automattic/harper#2731) - [@​stanley-910](https://github.com/stanley-910) made their first contribution in [#​2732](Automattic/harper#2732) **Full Changelog**: <Automattic/harper@v1.7.0...v1.8.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNC4yIiwidXBkYXRlZEluVmVyIjoiNDMuMjQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6Om1pbm9yIl19-->
hippietrail
pushed a commit
to hippietrail/harper
that referenced
this pull request
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
Related to #79. Follow-up to #2689.
Description
PR #2689 added TeX support to
harper-lsbut did not updateharper-cli. This means runningharper-cli linton a.texfile falls through to theCommentParser/PlainEnglishfallback, causing issues from TeX commands.This PR adds the
harper-texdependency toharper-cliand a match arm inFileInput::get_parserfor.tex,.latex,.sty,.cls, and.dtxextensions.Demo
After this change, linting a TeX file only reports real grammar issues:
How Has This Been Tested?
cargo build -p harper-clisucceedscargo test -p harper-clipassescargo run --bin harper-cli -- lint harper-tex/tests/test_sources/simple.texcorrectly uses the TeX parser and only reports legitimate grammar lintsChecklist
I saw no tests for any parser integration in harper-cli, so I am not sure how to proceed.