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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user