Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Andy Wokula
2017-11-01 20:33:56 +01:00
committed by Caleb Maclennan
2 changed files with 30 additions and 24 deletions

View File

@@ -81,7 +81,7 @@ let s:delimiterMap = {
\ 'asm': { 'left': ';', 'leftAlt': '#' }, \ 'asm': { 'left': ';', 'leftAlt': '#' },
\ 'asm68k': { 'left': ';' }, \ 'asm68k': { 'left': ';' },
\ 'asn': { 'left': '--' }, \ 'asn': { 'left': '--' },
\ 'asp': { 'left': '%', 'leftAlt': '%*','rightAlt': '*%' }, \ 'asp': { 'left': '%', 'leftAlt': '%*', 'rightAlt': '*%' },
\ 'aspvbs': { 'left': '''', 'leftAlt': '<!--', 'rightAlt': '-->' }, \ 'aspvbs': { 'left': '''', 'leftAlt': '<!--', 'rightAlt': '-->' },
\ 'asterisk': { 'left': ';' }, \ 'asterisk': { 'left': ';' },
\ 'asy': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'asy': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
@@ -99,7 +99,7 @@ let s:delimiterMap = {
\ 'blade': { 'left': '{{--', 'right': '--}}' }, \ 'blade': { 'left': '{{--', 'right': '--}}' },
\ 'bst': { 'left': '%' }, \ 'bst': { 'left': '%' },
\ 'btm': { 'left': '::' }, \ 'btm': { 'left': '::' },
\ 'c': { 'left': '/*','right': '*/', 'leftAlt': '//' }, \ 'c': { 'left': '/*', 'right': '*/', 'leftAlt': '//' },
\ 'cabal': { 'left': '--' }, \ 'cabal': { 'left': '--' },
\ 'calibre': { 'left': '//' }, \ 'calibre': { 'left': '//' },
\ 'caos': { 'left': '*' }, \ 'caos': { 'left': '*' },
@@ -123,7 +123,7 @@ let s:delimiterMap = {
\ 'csp': { 'left': '--' }, \ 'csp': { 'left': '--' },
\ 'cterm': { 'left': '*' }, \ 'cterm': { 'left': '*' },
\ 'cucumber': { 'left': '#' }, \ 'cucumber': { 'left': '#' },
\ 'cuda': { 'left': '/*','right': '*/', 'leftAlt': '//' }, \ 'cuda': { 'left': '/*', 'right': '*/', 'leftAlt': '//' },
\ 'cvs': { 'left': 'CVS:' }, \ 'cvs': { 'left': 'CVS:' },
\ 'cython': { 'left': '# ', 'leftAlt': '#' }, \ 'cython': { 'left': '# ', 'leftAlt': '#' },
\ 'd': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'd': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
@@ -135,7 +135,7 @@ let s:delimiterMap = {
\ 'desktop': { 'left': '#' }, \ 'desktop': { 'left': '#' },
\ 'dhcpd': { 'left': '#' }, \ 'dhcpd': { 'left': '#' },
\ 'diff': { 'left': '#' }, \ 'diff': { 'left': '#' },
\ 'django': { 'left': '<!--','right': '-->', 'leftAlt': '{#', 'rightAlt': '#}' }, \ 'django': { 'left': '<!--', 'right': '-->', 'leftAlt': '{#', 'rightAlt': '#}' },
\ 'dns': { 'left': ';' }, \ 'dns': { 'left': ';' },
\ 'docbk': { 'left': '<!--', 'right': '-->' }, \ 'docbk': { 'left': '<!--', 'right': '-->' },
\ 'dockerfile': { 'left': '#' }, \ 'dockerfile': { 'left': '#' },
@@ -152,7 +152,7 @@ let s:delimiterMap = {
\ 'eiffel': { 'left': '--' }, \ 'eiffel': { 'left': '--' },
\ 'elf': { 'left': "'" }, \ 'elf': { 'left': "'" },
\ 'elixir': { 'left': '#' }, \ 'elixir': { 'left': '#' },
\ 'elm': { 'left': '--' }, \ 'elm': { 'left': '--', 'leftAlt': '{--', 'rightAlt': '--}' },
\ 'elmfilt': { 'left': '#' }, \ 'elmfilt': { 'left': '#' },
\ 'ember-script': { 'left': '#' }, \ 'ember-script': { 'left': '#' },
\ 'emblem': { 'left': '/' }, \ 'emblem': { 'left': '/' },
@@ -176,7 +176,7 @@ let s:delimiterMap = {
\ 'gdb': { 'left': '#' }, \ 'gdb': { 'left': '#' },
\ 'gdmo': { 'left': '--' }, \ 'gdmo': { 'left': '--' },
\ 'geek': { 'left': 'GEEK_COMMENT:' }, \ 'geek': { 'left': 'GEEK_COMMENT:' },
\ 'genshi': { 'left': '<!--','right': '-->', 'leftAlt': '{#', 'rightAlt': '#}' }, \ 'genshi': { 'left': '<!--', 'right': '-->', 'leftAlt': '{#', 'rightAlt': '#}' },
\ 'gentoo-conf-d': { 'left': '#' }, \ 'gentoo-conf-d': { 'left': '#' },
\ 'gentoo-env-d': { 'left': '#' }, \ 'gentoo-env-d': { 'left': '#' },
\ 'gentoo-init-d': { 'left': '#' }, \ 'gentoo-init-d': { 'left': '#' },
@@ -186,16 +186,18 @@ let s:delimiterMap = {
\ 'gentoo-package-use': { 'left': '#' }, \ 'gentoo-package-use': { 'left': '#' },
\ 'gitcommit': { 'left': '#' }, \ 'gitcommit': { 'left': '#' },
\ 'gitconfig': { 'left': ';' }, \ 'gitconfig': { 'left': ';' },
\ 'gitignore': { 'left': '#' },
\ 'gitrebase': { 'left': '#' }, \ 'gitrebase': { 'left': '#' },
\ 'glsl': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'gnuplot': { 'left': '#' }, \ 'gnuplot': { 'left': '#' },
\ 'go': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'go': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'groovy': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'groovy': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'gsp': { 'left': '<%--', 'right': '--%>', 'leftAlt': '<!--','rightAlt': '-->'}, \ 'gsp': { 'left': '<%--', 'right': '--%>', 'leftAlt': '<!--', 'rightAlt': '-->' },
\ 'gtkrc': { 'left': '#' }, \ 'gtkrc': { 'left': '#' },
\ 'h': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'h': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'haml': { 'left': '-#', 'leftAlt': '/' }, \ 'haml': { 'left': '-#', 'leftAlt': '/' },
\ 'handlebars': { 'left': '{{!-- ', 'right': ' --}}' }, \ 'handlebars': { 'left': '{{!-- ', 'right': ' --}}' },
\ 'haskell': { 'left': '{-','right': '-}', 'nested': 1, 'leftAlt': '--', 'nestedAlt': 1 }, \ 'haskell': { 'left': '{-', 'right': '-}', 'nested': 1, 'leftAlt': '--', 'nestedAlt': 1 },
\ 'haxe': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'haxe': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'hb': { 'left': '#' }, \ 'hb': { 'left': '#' },
\ 'hbs': { 'left': '{{!-- ', 'right': ' --}}' }, \ 'hbs': { 'left': '{{!-- ', 'right': ' --}}' },
@@ -204,7 +206,7 @@ let s:delimiterMap = {
\ 'hog': { 'left': '#' }, \ 'hog': { 'left': '#' },
\ 'hostsaccess': { 'left': '#' }, \ 'hostsaccess': { 'left': '#' },
\ 'htmlcheetah': { 'left': '##' }, \ 'htmlcheetah': { 'left': '##' },
\ 'htmldjango': { 'left': '<!--','right': '-->', 'leftAlt': '{#', 'rightAlt': '#}' }, \ 'htmldjango': { 'left': '<!--', 'right': '-->', 'leftAlt': '{#', 'rightAlt': '#}' },
\ 'htmlos': { 'left': '#', 'right': '/#' }, \ 'htmlos': { 'left': '#', 'right': '/#' },
\ 'hxml': { 'left': '#' }, \ 'hxml': { 'left': '#' },
\ 'hyphy': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'hyphy': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
@@ -226,17 +228,17 @@ let s:delimiterMap = {
\ 'javascript.jquery': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'javascript.jquery': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'jess': { 'left': ';' }, \ 'jess': { 'left': ';' },
\ 'jgraph': { 'left': '(*', 'right': '*)' }, \ 'jgraph': { 'left': '(*', 'right': '*)' },
\ 'jinja': { 'left': '<!--','right': '-->', 'leftAlt': '{#', 'rightAlt': '#}' }, \ 'jinja': { 'left': '<!--', 'right': '-->', 'leftAlt': '{#', 'rightAlt': '#}' },
\ 'jproperties': { 'left': '#' }, \ 'jproperties': { 'left': '#' },
\ 'jsp': { 'left': '<%--', 'right': '--%>' }, \ 'jsp': { 'left': '<%--', 'right': '--%>' },
\ 'julia': { 'left': '#' }, \ 'julia': { 'left': '# ', 'leftAlt': '#=', 'rightAlt': '=#' },
\ 'kix': { 'left': ';' }, \ 'kix': { 'left': ';' },
\ 'kscript': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'kscript': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'lace': { 'left': '--' }, \ 'lace': { 'left': '--' },
\ 'laravel': { 'left': '{{--', 'right': '--}}' }, \ 'laravel': { 'left': '{{--', 'right': '--}}' },
\ 'ldif': { 'left': '#' }, \ 'ldif': { 'left': '#' },
\ 'less': { 'left': '/*','right': '*/' }, \ 'less': { 'left': '/*', 'right': '*/' },
\ 'lhaskell': { 'left': '>{-','right': '-}', 'leftAlt': '>-- ' }, \ 'lhaskell': { 'left': '>{-', 'right': '-}', 'leftAlt': '>-- ' },
\ 'lilo': { 'left': '#' }, \ 'lilo': { 'left': '#' },
\ 'lilypond': { 'left': '%' }, \ 'lilypond': { 'left': '%' },
\ 'liquid': { 'left': '{% comment %}', 'right': '{% endcomment %}' }, \ 'liquid': { 'left': '{% comment %}', 'right': '{% endcomment %}' },
@@ -263,9 +265,11 @@ let s:delimiterMap = {
\ 'master': { 'left': '$' }, \ 'master': { 'left': '$' },
\ 'matlab': { 'left': '%', 'leftAlt': '%{', 'rightAlt': '%}' }, \ 'matlab': { 'left': '%', 'leftAlt': '%{', 'rightAlt': '%}' },
\ 'mel': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'mel': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'meson': { 'left': '#' },
\ 'mib': { 'left': '--' }, \ 'mib': { 'left': '--' },
\ 'mips': { 'left': '#'}, \ 'minizinc': { 'left': '% ', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'mirah': {'left': '#'}, \ 'mips': { 'left': '#' },
\ 'mirah': {'left': '#' },
\ 'mkd': { 'left': '<!---', 'right': '-->' }, \ 'mkd': { 'left': '<!---', 'right': '-->' },
\ 'mma': { 'left': '(*', 'right': '*)' }, \ 'mma': { 'left': '(*', 'right': '*)' },
\ 'model': { 'left': '$', 'right': '$' }, \ 'model': { 'left': '$', 'right': '$' },
@@ -303,7 +307,7 @@ let s:delimiterMap = {
\ 'ox': { 'left': '//' }, \ 'ox': { 'left': '//' },
\ 'paludis-use-conf': { 'left': '#' }, \ 'paludis-use-conf': { 'left': '#' },
\ 'pandoc': { 'left': '<!--', 'right': '-->' }, \ 'pandoc': { 'left': '<!--', 'right': '-->' },
\ 'pascal': { 'left': '{','right': '}', 'leftAlt': '(*', 'rightAlt': '*)' }, \ 'pascal': { 'left': '{', 'right': '}', 'leftAlt': '(*', 'rightAlt': '*)' },
\ 'patran': { 'left': '$', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'patran': { 'left': '$', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'pcap': { 'left': '#' }, \ 'pcap': { 'left': '#' },
\ 'pccts': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'pccts': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
@@ -359,11 +363,12 @@ let s:delimiterMap = {
\ 'scilab': { 'left': '//' }, \ 'scilab': { 'left': '//' },
\ 'scons': { 'left': '#' }, \ 'scons': { 'left': '#' },
\ 'scsh': { 'left': ';' }, \ 'scsh': { 'left': ';' },
\ 'scss': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/'}, \ 'scss': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'sed': { 'left': '#' }, \ 'sed': { 'left': '#' },
\ 'sgmldecl': { 'left': '--', 'right': '--' }, \ 'sgmldecl': { 'left': '--', 'right': '--' },
\ 'sgmllnx': { 'left': '<!--', 'right': '-->' }, \ 'sgmllnx': { 'left': '<!--', 'right': '-->' },
\ 'sh': { 'left': '#' }, \ 'sh': { 'left': '#' },
\ 'shader_test': { 'left': '#' },
\ 'sicad': { 'left': '*' }, \ 'sicad': { 'left': '*' },
\ 'sile': { 'left': '%' }, \ 'sile': { 'left': '%' },
\ 'simula': { 'left': '%', 'leftAlt': '--' }, \ 'simula': { 'left': '%', 'leftAlt': '--' },
@@ -398,9 +403,9 @@ let s:delimiterMap = {
\ 'sshdconfig': { 'left': '#' }, \ 'sshdconfig': { 'left': '#' },
\ 'st': { 'left': '"' }, \ 'st': { 'left': '"' },
\ 'stan': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'stan': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'stp': { 'left': '/*','right': '*/', 'leftAlt': '//' }, \ 'stp': { 'left': '/*', 'right': '*/', 'leftAlt': '//' },
\ 'supercollider': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'supercollider': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'swift': { 'left': '/*','right': '*/', 'leftAlt': '//' }, \ 'swift': { 'left': '/*', 'right': '*/', 'leftAlt': '//' },
\ 'systemverilog': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'systemverilog': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'tads': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'tads': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'tags': { 'left': ';' }, \ 'tags': { 'left': ';' },
@@ -432,7 +437,7 @@ let s:delimiterMap = {
\ 'vasp': { 'left': '!' }, \ 'vasp': { 'left': '!' },
\ 'vb': { 'left': "'" }, \ 'vb': { 'left': "'" },
\ 'velocity': { 'left': "##", 'right': "", 'leftAlt': '#*', 'rightAlt': '*#' }, \ 'velocity': { 'left': "##", 'right': "", 'leftAlt': '#*', 'rightAlt': '*#' },
\ 'vera': { 'left': '/*','right': '*/', 'leftAlt': '//' }, \ 'vera': { 'left': '/*', 'right': '*/', 'leftAlt': '//' },
\ 'verilog': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'verilog': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'verilog_systemverilog': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'verilog_systemverilog': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'vgrindefs': { 'left': '#' }, \ 'vgrindefs': { 'left': '#' },
@@ -615,7 +620,7 @@ function s:AppendCommentToLine()
"stick the delimiters down at the end of the line. We have to format the "stick the delimiters down at the end of the line. We have to format the
"comment with spaces as appropriate "comment with spaces as appropriate
execute ":normal! " . insOrApp . (isLineEmpty ? '' : ' ') . left . right execute ":normal! " . insOrApp . (isLineEmpty ? '' : ' ') . left . right
" if there is a right delimiter then we gotta move the cursor left " if there is a right delimiter then we gotta move the cursor left
" by the length of the right delimiter so we insert between the delimiters " by the length of the right delimiter so we insert between the delimiters
@@ -1388,7 +1393,7 @@ function s:RemoveDelimiters(left, right, line)
"if the user has specified that there is a space before the right delimiter "if the user has specified that there is a space before the right delimiter
"then check for the space and remove it if it is there "then check for the space and remove it if it is there
if delimsSpaced && strpart(line, rightIndx-s:lenSpaceStr, s:lenSpaceStr) == s:spaceStr && s:Multipart() if delimsSpaced && strpart(line, rightIndx-s:lenSpaceStr, s:lenSpaceStr) == s:spaceStr && (s:Multipart() || s:AltMultipart())
let line = strpart(line, 0, rightIndx-s:lenSpaceStr) . strpart(line, rightIndx) let line = strpart(line, 0, rightIndx-s:lenSpaceStr) . strpart(line, rightIndx)
endif endif
endif endif
@@ -1410,7 +1415,7 @@ function s:SetupStateBeforeLineComment(topLine, bottomLine)
let state = {'foldmethod' : &foldmethod, let state = {'foldmethod' : &foldmethod,
\'ignorecase' : &ignorecase} \'ignorecase' : &ignorecase}
" Vim's foldmethods are evaluated every time we use 'setline', which can " Vim's foldmethods are evaluated every time we use 'setline', which can
" make commenting wide ranges of lines VERY slow. We'll change it to " make commenting wide ranges of lines VERY slow. We'll change it to
" manual, do the commenting stuff and recover it later. To avoid slowing " manual, do the commenting stuff and recover it later. To avoid slowing
" down commenting few lines, we avoid doing this for ranges smaller than " down commenting few lines, we avoid doing this for ranges smaller than
@@ -1615,7 +1620,7 @@ function s:UncommentLinesSexy(topline, bottomline)
let theLine = s:SwapOuterPlaceHoldersForMultiPartDelims(theLine) let theLine = s:SwapOuterPlaceHoldersForMultiPartDelims(theLine)
call setline(bottomline, theLine) call setline(bottomline, theLine)
endif endif
" remove trailing whitespaces for first and last line " remove trailing whitespaces for first and last line
if g:NERDTrimTrailingWhitespace == 1 if g:NERDTrimTrailingWhitespace == 1
let theLine = getline(a:bottomline) let theLine = getline(a:bottomline)

View File

@@ -1093,6 +1093,7 @@ Simon Hengel htmlcheetah
Matt Tolton javacc Matt Tolton javacc
Ivan Devat javascript.jquery Ivan Devat javascript.jquery
tpope cucumber,pdf tpope cucumber,pdf
Lyude Paul piglit shader_test
============================================================================== ==============================================================================
10. License *NERDComLicense* 10. License *NERDComLicense*