Skip to content

Commit

Permalink
patch 8.2.2353: spartql files are not detected
Browse files Browse the repository at this point in the history
Problem:    Spartql files are not detected.
Solution:   Add the sparql filetype.  (closes #7679)
  • Loading branch information
brammool committed Jan 15, 2021
1 parent d44cc59 commit 17d015b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/filetype.vim
Expand Up @@ -1618,6 +1618,9 @@ au BufNewFile,BufRead *.mib,*.my setf mib
au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog
au BufNewFile,BufRead *.rules call dist#ft#FTRules()

" SPARQL queries
au BufNewFile,BufRead *.rq,*.sparql setf sparql

" Spec (Linux RPM)
au BufNewFile,BufRead *.spec setf spec

Expand Down
1 change: 1 addition & 0 deletions src/testdir/test_filetype.vim
Expand Up @@ -445,6 +445,7 @@ let s:filename_checks = {
\ 'smith': ['file.smt', 'file.smith'],
\ 'sml': ['file.sml'],
\ 'snobol4': ['file.sno', 'file.spt'],
\ 'sparql': ['file.rq', 'file.sparql'],
\ 'spec': ['file.spec'],
\ 'spice': ['file.sp', 'file.spice'],
\ 'spup': ['file.speedup', 'file.spdata', 'file.spd'],
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2353,
/**/
2352,
/**/
Expand Down

0 comments on commit 17d015b

Please sign in to comment.