Update the syntax identifier.

I made it now show nested syntax groups in the status line.  This
will facilitate easier debugging of complex syntax files.
This commit is contained in:
2021-02-24 23:27:10 -05:00
parent e5cd1839a6
commit f0c64e25d7

View File

@ -17,6 +17,12 @@ function! MyFoldText()
endfunction
function! SyntaxItem()
return synIDattr(synID(line("."),col("."),1),"name")
"return synIDattr(synID(line("."),col("."),1),"name")
let res = []
for id in synstack(line("."), col("."))
let res = res + [ synIDattr( id, "name" ) ]
endfor
"return synIDattr(synID(line("."),col("."),1),"name")
return join( res, ":" )
endfunction