mirror of
https://github.com/neovim/neovim.git
synced 2026-09-13 09:31:04 +00:00
Merge pull request #41847 from zeertzjq/vim-cbcb209
vim-patch: runtime file updates
This commit is contained in:
@@ -115,8 +115,8 @@ function! netrw#fs#Glob(direntry, expr, pare)
|
||||
keepalt 1sp
|
||||
keepalt enew
|
||||
let keep_liststyle = w:netrw_liststyle
|
||||
let w:netrw_liststyle = s:THINLIST
|
||||
if s:NetrwRemoteListing() == 0
|
||||
let w:netrw_liststyle = netrw#Expose('THINLIST')
|
||||
if netrw#Call('NetrwRemoteListing') == 0
|
||||
keepj keepalt %s@/@@
|
||||
let filelist = getline(1,$)
|
||||
q!
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
" 2026 Mar 11 by Vim Project: fix number performance #19630
|
||||
" 2026 May 27 by Vim Project: highlight `lazy` soft keyword (PEP 810) #20342
|
||||
" 2026 Aug 30 by Vim Project: improve number and ellipsis performance
|
||||
" 2026 Sep 10 by Vim Project: add new builtins #21254
|
||||
" Credits: Neil Schemenauer <nas@python.ca>
|
||||
" Dmitry Vasiliev
|
||||
" Rob B
|
||||
@@ -314,7 +315,7 @@ if !exists("python_no_builtin_highlight")
|
||||
" constants added by the `site` module
|
||||
syn keyword pythonBuiltin quit exit copyright credits license
|
||||
" built-in functions
|
||||
syn keyword pythonBuiltin abs all any ascii bin bool breakpoint bytearray
|
||||
syn keyword pythonBuiltin abs aiter all anext any ascii bin bool breakpoint bytearray
|
||||
syn keyword pythonBuiltin bytes callable chr classmethod compile complex
|
||||
syn keyword pythonBuiltin delattr dict dir divmod enumerate eval exec
|
||||
syn keyword pythonBuiltin filter float format frozenset getattr globals
|
||||
@@ -339,7 +340,7 @@ endif
|
||||
" http://docs.python.org/library/exceptions.html
|
||||
if !exists("python_no_exception_highlight")
|
||||
" builtin base exceptions (used mostly as base classes for other exceptions)
|
||||
syn keyword pythonExceptions BaseException Exception
|
||||
syn keyword pythonExceptions BaseException Exception BaseExceptionGroup ExceptionGroup
|
||||
syn keyword pythonExceptions ArithmeticError BufferError LookupError
|
||||
" builtin exceptions (actually raised)
|
||||
syn keyword pythonExceptions AssertionError AttributeError EOFError
|
||||
@@ -348,7 +349,7 @@ if !exists("python_no_exception_highlight")
|
||||
syn keyword pythonExceptions KeyboardInterrupt MemoryError
|
||||
syn keyword pythonExceptions ModuleNotFoundError NameError
|
||||
syn keyword pythonExceptions NotImplementedError OSError OverflowError
|
||||
syn keyword pythonExceptions RecursionError ReferenceError RuntimeError
|
||||
syn keyword pythonExceptions PythonFinalizationError RecursionError ReferenceError RuntimeError
|
||||
syn keyword pythonExceptions StopAsyncIteration StopIteration SyntaxError
|
||||
syn keyword pythonExceptions SystemError SystemExit TabError TypeError
|
||||
syn keyword pythonExceptions UnboundLocalError UnicodeDecodeError
|
||||
@@ -366,7 +367,7 @@ if !exists("python_no_exception_highlight")
|
||||
syn keyword pythonExceptions IsADirectoryError NotADirectoryError
|
||||
syn keyword pythonExceptions PermissionError ProcessLookupError TimeoutError
|
||||
" builtin warnings
|
||||
syn keyword pythonExceptions BytesWarning DeprecationWarning FutureWarning
|
||||
syn keyword pythonExceptions BytesWarning DeprecationWarning EncodingWarning FutureWarning
|
||||
syn keyword pythonExceptions ImportWarning PendingDeprecationWarning
|
||||
syn keyword pythonExceptions ResourceWarning RuntimeWarning
|
||||
syn keyword pythonExceptions SyntaxWarning UnicodeWarning
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Maintainer: Maxim Kim <habamax@gmail.com>
|
||||
" Language: Typst
|
||||
" Last Change: 2026 Jun 30
|
||||
" Last Change: 2026 Sep 10
|
||||
" Based on the syntax file from https://github.com/kaarmu/typst.vim
|
||||
|
||||
if exists('b:current_syntax')
|
||||
@@ -175,8 +175,8 @@ for s:name in get(g:, 'typst_embedded_languages', [])
|
||||
let s:rule = ['syn region'
|
||||
\ ,"typstMarkupRawBlock_"..s:name
|
||||
\ ,'matchgroup=typstMarkupRawDelimiter'
|
||||
\ ,'start=/```'..s:name..'\>/ end=/```/'
|
||||
\ ,'contains=@typstEmbedded_'..s:name
|
||||
\ ,'start=/```'..s:name..'\>/ end=/```/'
|
||||
\ ,'contains=@typstEmbedded_'..s:name
|
||||
\ ,'keepend'
|
||||
\ ,'concealends']
|
||||
|
||||
@@ -303,9 +303,7 @@ hi def link typstExprNumberType Constant
|
||||
hi def link typstExprString String
|
||||
hi def link typstExprLabel Structure
|
||||
|
||||
hi def link typstMarkupRawInline PreProc
|
||||
hi def link typstMarkupRawDelimiter Special
|
||||
hi def link typstMarkupRawBlock PreProc
|
||||
hi def link typstMarkupDollar Special
|
||||
hi def link typstMarkupLabel PreProc
|
||||
hi def link typstMarkupReference Special
|
||||
|
||||
Reference in New Issue
Block a user