Attempt to autodetect target language (D/C++) in extra/vim/syntax/propane.vim

This commit is contained in:
josh committed 2026-06-29 23:02:57 -04:00
1 parent 23834bef82
commit 232af68081
2 files changed
+6 -1

No files matched your search

+5 -1
View File
@@ -8,7 +8,11 @@ if exists("b:current_syntax")
endif
if !exists("b:propane_subtype")
let b:propane_subtype = "d"
if search('\<import\s\+\%(std\|core\)\.', 'nw') > 0
let b:propane_subtype = "d"
else
let b:propane_subtype = "cpp"
endif
endif
exe "syn include @propaneTarget syntax/".b:propane_subtype.".vim"