aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-05-02 21:50:17 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-05-02 21:53:18 +0800
commitda3eeb4b32bdf98948096fdf0fe533696d03b3d1 (patch)
tree828a7aa62d73fb7a5b65dc5c7a2f0453d4f0b8d3 /runtime/lua/vim
parent074a6abd55af8b4d2b4a4cc9430a4f3e91e229f7 (diff)
downloadrneovim-da3eeb4b32bdf98948096fdf0fe533696d03b3d1.tar.gz
rneovim-da3eeb4b32bdf98948096fdf0fe533696d03b3d1.tar.bz2
rneovim-da3eeb4b32bdf98948096fdf0fe533696d03b3d1.zip
vim-patch:9.1.1360: filetype: GNU Radio companion files are not recognized
Problem: filetype: GNU Radio companion files are not recognized Solution: detect *.grc files as xml or yaml filetype depending on the first line (zeertzjq). Ref: - https://wiki.gnuradio.org/index.php/XML_GRC - https://wiki.gnuradio.org/index.php/YAML_GRC closes: vim/vim#17241 https://github.com/vim/vim/commit/af4a5d6e2ae57a44edab48c8b012d2afa743998f
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index c9fb539e3b..276691b080 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1390,6 +1390,7 @@ local extension = {
yaml = 'yaml',
eyaml = 'yaml',
mplstyle = 'yaml',
+ grc = detect_line1('<%?xml', 'xml', 'yaml'),
yang = 'yang',
yuck = 'yuck',
z8a = 'z8a',