I tried saving this vim syntax file for sql but when I open a sql file in vim I get lots and lots of stuff like this:
Error detected while processing BufRead Autocommands for "*.sql"..function dist#ft#SQL[4]..FileTypeAutocommands for "*"..Syntax Autocommands for "*"..function <SNR>4_SynSet[25]..script /home/bernie/.vim/syntax/sql.vim:line 17:E117: Unknown function: vim_highlight#core#options#getValueline 18:E117: Unknown function: vim_highlight#core#options#getValueline 22:E121: Undefined variable: s:case_sensitiveline 29:E121: Undefined variable: g:vim_highlight#core#options#default#commonE116: Invalid arguments for function extendline 30:E121: Undefined variable: g:vim_highlight#core#options#default#regionE116: Invalid arguments for function extendline 35:E117: Unknown function: vim_highlight#core#syntax#matchError detected while processing BufRead Autocommands for "*.sql"..function dist#ft#SQL[4]..FileTypeAutocommands for "*"..Syntax Autocommands for "*"..function <SNR>4_SynSet[25]..script /home/bernie/.vim/syntax/sql.vim[156]..function <SNR>29_SelectStmt:line 1:E117: Unknown function: vim_highlight#core#syntax#predicatline 2:E121: Undefined variable: l:predicatline 5:
etc etc
Here's the first part of the linked syntax file" Vim syntax file for SQL" Language: SQL standard / Support for drivers specifics" Maintainer: Julien Rosset <jul.rosset@gmail.com>"" URL: https://github.com/vim-highlight/sql/" Version: 0.0.1" For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600 syntax clearelseif exists("b:current_syntax") finishendif" Initialize options {{{let s:driver = vim_highlight#core#options#getValue('driver' , '')let s:case_sensitive = vim_highlight#core#options#getValue('case_sensitive', 0)" }}}" Case matching {{{if s:case_sensitive syntax case matchelse syntax case ignoreendif" }}}call extend(g:vim_highlight#core#options#default#common, { 'skipempty': 1, 'skipnl': 1, 'skipwhite': 1, 'contained': 1 })call extend(g:vim_highlight#core#options#default#region, { 'keepend': 1 })let s:predicats = { 'root': 'sql' }
Since this is someone's publicly released syntax file, to see so many errors makes me think there must be some broader problem with my vim setup. I'm using version 8.2.1847.
What do I need to make the attached vim syntax file work?