diff --git a/autoload/editorconfig_core/fnmatch.vim b/autoload/editorconfig_core/fnmatch.vim index 6f60db5d0..ef9ced9fd 100644 --- a/autoload/editorconfig_core/fnmatch.vim +++ b/autoload/editorconfig_core/fnmatch.vim @@ -45,22 +45,24 @@ if !exists('g:editorconfig_core_vimscript_debug') endif " }}}1 " === Regexes =========================================================== {{{1 -let s:LEFT_BRACE = '\v%(^|[^\\])\{' +let s:LEFT_BRACE = '\v[\\]@8=<%s>', l:optname, l:optval) endif - if l:optval =~# '\v[;#]' - " ';' and '#' are comment delimiters only if - " preceded by a spacing character - let l:m = matchlist(l:optval, '\v(.{-})\s[;#]') - if len(l:m) - let l:optval = l:m[1] - endif - - " ; and # can be escaped with backslash. - let l:optval = substitute(l:optval, '\v\\([;#])', '\1', 'g') - - endif let l:optval = editorconfig_core#util#strip(l:optval) " allow empty values if l:optval ==? '""' diff --git a/tests/core/tests b/tests/core/tests index 6c8fe6815..5ca0b296d 160000 --- a/tests/core/tests +++ b/tests/core/tests @@ -1 +1 @@ -Subproject commit 6c8fe6815b12f96f4b357d610ee1cd8da074880a +Subproject commit 5ca0b296dc31124d0303895c163013450bd97958