elixir-editors / elixir-editors/vim-elixir

syntax highlighting broken for `.*eex` files

オープン
#562 コメント 12 件 リアクション 8 件 担当者 0 名 GitHub で見る
主要言語
Ruby
スター
1.3k
フォーク
154
PR マージ指標
30日以内にマージされた PR はありません

説明

After the recent change that [removed ftdetect](https://github.com/elixir-editors/vim-elixir/pull/560), syntax highlighting is no longer working for `.*eex` files (`.heex`, `.leex`, etc). It appears that the default filetype detection marks these files as e.g. `ft=heex` instead of `ft=eelixir`, as the previous `ftdetect` plugin did.

# Actual

```
set ft?
filetype=heex
```

![image](https://user-images.githubusercontent.com/18172185/161129232-d9a1605a-9e09-426f-8f88-9a220a9f7f07.png)

# Expected

If I run `set ft=eelixir`, I get this:

![image](https://user-images.githubusercontent.com/18172185/161129310-245ce1bf-8fa5-4f75-86ba-e01de2b59ad6.png)

However, if I first run `let b:eelixir_subtype = 'heex'`, I get this:

![image](https://user-images.githubusercontent.com/18172185/161129496-f12b9596-8268-47de-8966-30655750b0f6.png)

Not sure which of these is correct.

```
$ nvim --version
NVIM v0.7.0-dev+1348-g524f6294a
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by a80323765@USC02F834HMD6N

Features: +acl +iconv +tui
See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-524f629/share/nvim"

Run :checkhealth for more info
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

ftdetect プラグインを削除した変更を確認し、Neovim で .heex、.leex、およびその他の .*eex ファイルの検出を再現してください。結果として得られる ft=heex の動作を ft=eelixir および eelixir_subtype=heex のケースと比較してください。この作業は、これらのファイルに意図した構文ハイライトが自動的に適用されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
elixir, vim
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。