From 6e695b0557e5fd83750e2cdbf812e2c4591b93ff Mon Sep 17 00:00:00 2001 From: Stan Angeloff Date: Mon, 25 Feb 2013 09:05:40 +0200 Subject: [PATCH] Use MySQL as the default buffer SQL syntax. --- syntax/php.template | 7 ++++++- syntax/php.vim | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/syntax/php.template b/syntax/php.template index 4ddd4a7..570d75d 100644 --- a/syntax/php.template +++ b/syntax/php.template @@ -74,7 +74,12 @@ endif syn cluster htmlPreproc add=phpRegion -syn include @sqlTop syntax/mysql.vim +" Use MySQL as the default SQL syntax file. +" See https://github.com/StanAngeloff/php.vim/pull/1 +if !exists('b:sql_type_override') && !exists('g:sql_type_default') + let b:sql_type_override='mysql' +endif +syn include @sqlTop syntax/sql.vim syn sync clear unlet! b:current_syntax diff --git a/syntax/php.vim b/syntax/php.vim index e2da704..7cbe014 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -74,7 +74,12 @@ endif syn cluster htmlPreproc add=phpRegion -syn include @sqlTop syntax/mysql.vim +" Use MySQL as the default SQL syntax file. +" See https://github.com/StanAngeloff/php.vim/pull/1 +if !exists('b:sql_type_override') && !exists('g:sql_type_default') + let b:sql_type_override='mysql' +endif +syn include @sqlTop syntax/sql.vim syn sync clear unlet! b:current_syntax