mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
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: #17241 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
9c9200d1ea
commit
af4a5d6e2a
@ -1023,6 +1023,14 @@ au BufNewFile,BufRead *.gjs setf javascript.glimmer
|
||||
" Gnuplot scripts
|
||||
au BufNewFile,BufRead *.gpi,*.gnuplot,.gnuplot_history setf gnuplot
|
||||
|
||||
" GNU Radio Companion files
|
||||
au BufNewFile,BufRead *.grc
|
||||
\ if getline(1) =~# '<?xml' |
|
||||
\ setf xml |
|
||||
\ else |
|
||||
\ setf yaml |
|
||||
\ endif
|
||||
|
||||
" Go (Google)
|
||||
au BufNewFile,BufRead *.go setf go
|
||||
au BufNewFile,BufRead Gopkg.lock setf toml
|
||||
|
Reference in New Issue
Block a user