vim-patch:8.2.4746: supercollider filetype not recognized (#18102)

Problem:    Supercollider filetype not recognized.
Solution:   Match file extentions and check file contents to detect
            supercollider. (closes vim/vim#10142)
8cac20ed42
This commit is contained in:
Christian Clason
2022-04-13 17:04:38 +02:00
committed by GitHub
parent 7d1142b7e7
commit 9938740ca6
4 changed files with 87 additions and 10 deletions

View File

@@ -569,8 +569,6 @@ local extension = {
sa = "sather",
sbt = "sbt",
scala = "scala",
sc = "scala",
scd = "scdoc",
ss = "scheme",
scm = "scheme",
sld = "scheme",
@@ -644,6 +642,7 @@ local extension = {
mata = "stata",
ado = "stata",
stp = "stp",
quark = "supercollider",
sface = "surface",
svelte = "svelte",
svg = "svg",
@@ -830,6 +829,8 @@ local extension = {
r = function() vim.fn["dist#ft#FTr"]() end,
rdf = function() vim.fn["dist#ft#Redif"]() end,
rules = function() vim.fn["dist#ft#FTRules"]() end,
sc = function() vim.fn["dist#ft#FTsc"]() end,
scd = function() vim.fn["dist#ft#FTscd"]() end,
sh = function() vim.fn["dist#ft#SetFileTypeSH"](vim.fn.getline(1)) end,
shtml = function() vim.fn["dist#ft#FThtml"]() end,
sql = function() vim.fn["dist#ft#SQL"]() end,