Skip to content

Commit

Permalink
Bug fix for issue #68 (silence E403)
Browse files Browse the repository at this point in the history
See issue #68 on GitHub:
  #68
  • Loading branch information
xolox committed Jun 17, 2014
1 parent c6c76db commit 825230a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions autoload/xolox/notes.vim
@@ -1,12 +1,12 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
" Last Change: June 17, 2014
" Last Change: June 18, 2014
" URL: http://peterodding.com/code/vim/notes/

" Note: This file is encoded in UTF-8 including a byte order mark so
" that Vim loads the script using the right encoding transparently.

let g:xolox#notes#version = '0.23.7'
let g:xolox#notes#version = '0.23.8'
let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?'
let s:scriptdir = expand('<sfile>:p:h')

Expand Down Expand Up @@ -1134,6 +1134,9 @@ function! s:syntax_include(filetype)
try
execute 'syntax include' grouplistname 'syntax/' . a:filetype . '.vim'
execute 'syntax include' grouplistname 'after/syntax/' . a:filetype . '.vim'
catch /E403/
" Ignore errors about syntax scripts that can't be loaded more than once.
" See also: https://github.com/xolox/vim-notes/issues/68
catch /E484/
" Ignore missing scripts.
endtry
Expand Down

0 comments on commit 825230a

Please sign in to comment.