mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
befae73044
Update runtime files
76db9e0763
- `col()`'s example was changed to use `:echowin` so that the message can be
seen with `showmode`. Use "\n" to force a hit-enter instead as `:echowin`
isn't ported.
- Replace interpolated string usage in syntax/modula3.vim (not ported).
- Add a space after the `wincmd =` examples in `*CTRL-W_=*` so that the inlined
code is highlighted properly when followed by a full stop.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
58 lines
2.2 KiB
VimL
58 lines
2.2 KiB
VimL
" Vim syntax file
|
|
" Language: Debian sources.list
|
|
" Maintainer: Debian Vim Maintainers
|
|
" Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
|
|
" Last Change: 2022 Oct 29
|
|
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debsources.vim
|
|
|
|
" Standard syntax initialization
|
|
if exists('b:current_syntax')
|
|
finish
|
|
endif
|
|
|
|
" case sensitive
|
|
syn case match
|
|
|
|
" A bunch of useful keywords
|
|
syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/
|
|
|
|
" Match comments
|
|
syn match debsourcesComment /#.*/ contains=@Spell
|
|
|
|
let s:cpo = &cpo
|
|
set cpo-=C
|
|
let s:supported = [
|
|
\ 'oldstable', 'stable', 'testing', 'unstable', 'experimental', 'sid', 'rc-buggy',
|
|
\ 'buster', 'bullseye', 'bookworm', 'trixie', 'forky',
|
|
\
|
|
\ 'trusty', 'xenial', 'bionic', 'focal', 'jammy', 'kinetic', 'lunar',
|
|
\ 'devel'
|
|
\ ]
|
|
let s:unsupported = [
|
|
\ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato',
|
|
\ 'woody', 'sarge', 'etch', 'lenny', 'squeeze', 'wheezy',
|
|
\ 'jessie', 'stretch',
|
|
\
|
|
\ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty',
|
|
\ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid',
|
|
\ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy',
|
|
\ 'utopic', 'vivid', 'wily', 'yakkety', 'zesty', 'artful', 'cosmic',
|
|
\ 'disco', 'eoan', 'hirsute', 'impish', 'groovy'
|
|
\ ]
|
|
let &cpo=s:cpo
|
|
|
|
" Match uri's
|
|
syn match debsourcesUri '\(https\?://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\+'
|
|
exe 'syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(s:supported, '\|'). '\)\>\([-[:alnum:]_./]*\)+'
|
|
exe 'syn match debsourcesUnsupportedDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(s:unsupported, '\|') .'\)\>\([-[:alnum:]_./]*\)+'
|
|
|
|
" Associate our matches and regions with pretty colours
|
|
hi def link debsourcesLine Error
|
|
hi def link debsourcesKeyword Statement
|
|
hi def link debsourcesDistrKeyword Type
|
|
hi def link debsourcesUnsupportedDistrKeyword WarningMsg
|
|
hi def link debsourcesComment Comment
|
|
hi def link debsourcesUri Constant
|
|
|
|
let b:current_syntax = 'debsources'
|