mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
a98a6996c2
Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7 Excluding: Amiga icons (*.info, icons/) doc/hangulin.txt tutor/ spell/ lang/ (only used for menu translations) macros/maze/, macros/hanoi/, macros/life/, macros/urm/ These were used to test vi compatibility. termcap "Demonstration of a termcap file (for the Amiga and Archimedes)" Helped-by: Rich Wareham <rjw57@cam.ac.uk> Helped-by: John <john.schmidt.h@gmail.com> Helped-by: Yann <yann@yann-salaun.com> Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com> Helped-by: drasill <github@tof2k.com> Helped-by: Tae Sandoval Murgan <taecilla@gmail.com> Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>
70 lines
2.3 KiB
VimL
70 lines
2.3 KiB
VimL
" Vim syntax file
|
|
" Language: udev(8) permissions file
|
|
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
" Latest Revision: 2006-04-19
|
|
|
|
if exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
let s:cpo_save = &cpo
|
|
set cpo&vim
|
|
|
|
syn match udevpermBegin display '^' nextgroup=udevpermDevice
|
|
|
|
syn match udevpermDevice contained display '[^:]\+'
|
|
\ contains=udevpermPattern
|
|
\ nextgroup=udevpermUserColon
|
|
|
|
syn match udevpermPattern contained '[*?]'
|
|
syn region udevpermPattern contained start='\[!\=' end='\]'
|
|
\ contains=udevpermPatRange
|
|
|
|
syn match udevpermPatRange contained '[^[-]-[^]-]'
|
|
|
|
syn match udevpermUserColon contained display ':'
|
|
\ nextgroup=udevpermUser
|
|
|
|
syn match udevpermUser contained display '[^:]\+'
|
|
\ nextgroup=udevpermGroupColon
|
|
|
|
syn match udevpermGroupColon contained display ':'
|
|
\ nextgroup=udevpermGroup
|
|
|
|
syn match udevpermGroup contained display '[^:]\+'
|
|
\ nextgroup=udevpermPermColon
|
|
|
|
syn match udevpermPermColon contained display ':'
|
|
\ nextgroup=udevpermPerm
|
|
|
|
syn match udevpermPerm contained display '\<0\=\o\+\>'
|
|
\ contains=udevpermOctalZero
|
|
|
|
syn match udevpermOctalZero contained display '\<0'
|
|
syn match udevpermOctalError contained display '\<0\o*[89]\d*\>'
|
|
|
|
syn keyword udevpermTodo contained TODO FIXME XXX NOTE
|
|
|
|
syn region udevpermComment display oneline start='^\s*#' end='$'
|
|
\ contains=udevpermTodo,@Spell
|
|
|
|
hi def link udevpermTodo Todo
|
|
hi def link udevpermComment Comment
|
|
hi def link udevpermDevice String
|
|
hi def link udevpermPattern SpecialChar
|
|
hi def link udevpermPatRange udevpermPattern
|
|
hi def link udevpermColon Normal
|
|
hi def link udevpermUserColon udevpermColon
|
|
hi def link udevpermUser Identifier
|
|
hi def link udevpermGroupColon udevpermColon
|
|
hi def link udevpermGroup Type
|
|
hi def link udevpermPermColon udevpermColon
|
|
hi def link udevpermPerm Number
|
|
hi def link udevpermOctalZero PreProc
|
|
hi def link udevpermOctalError Error
|
|
|
|
let b:current_syntax = "udevperm"
|
|
|
|
let &cpo = s:cpo_save
|
|
unlet s:cpo_save
|