2 Commits
Author SHA1 Message Date
Stefan VanBuren e0ea90070a fix(treesitter): escape hyphen in lua pattern
Ref: https://github.com/neovim/neovim/pull/38140#discussion_r2897235978
(cherry picked from commit d8e03d5d5a)
2026-03-07 10:33:03 +00:00
Stefan VanBuren 85d4822797 fix(treesitter): normalize language aliases
Hyphenated language names are silently dropped when used as injections
(see #38132).

This combines the normalization of language aliases into `resolve_lang`,
and also adds the normalization of hyphens to underscores, which allows
for handling of injected language tags with hyphens in their names.

Fixes #38132.

(cherry picked from commit 01817eb6f3)
2026-03-04 18:30:41 +00:00