What is the meaning of main_syntax

I am writing a vim syntax file. And I found that a variable with a name is main_syntaxused in several existing syntax files. But I can not find the documentation explaining this.

This document only describes another variable b:current_syntaxthat is used to tell another script what the current syntax is.

It seems to main_syntaxhave the same meaning. Is this an obsolete variable?

+5
source share
1 answer

Support for some syntax scripts imported into another syntax via :syntax include, for example. javascript inside html.

main_syntax , / ; , , . ( :finish - , b:current_syntax.) b:current_syntax , main_syntax , .

TL; DR: / , , . $VIMRUNTIME/syntax/html.vim; , .

+2

All Articles