elixir-editors / elixir-editors/vim-elixir

syntax highlighting broken for `.*eex` files

Đang mở
#562 12 bình luận 8 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Ruby
Star
1.3k
Fork
154
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Xem xét thay đổi đã loại bỏ plugin ftdetect và tái hiện việc phát hiện .heex, .leex cùng các tệp .*eex khác trong Neovim. So sánh hành vi ft=heex thu được với ft=eelixir và trường hợp eelixir_subtype=heex; hoàn thành có nghĩa là các tệp này tự động nhận được phần tô sáng cú pháp như dự kiến.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
elixir, vim
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.