b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / share / vim / vim74 / syntax /
Filename/usr/share/vim/vim74/syntax/edif.vim
Size1.61 kb
Permissionrw-r--r--
Ownerapache
Create time26-May-2024 11:06
Last modified17-Jul-2019 02:20
Last accessed17-Jul-2019 02:20
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
" Vim syntax file
" Language: EDIF (Electronic Design Interchange Format)
" Maintainer: Artem Zankovich <[email protected]>
" Last Change: Oct 14, 2002
"
" Supported standarts are:
" ANSI/EIA Standard 548-1988 (EDIF Version 2 0 0)
" IEC 61690-1 (EDIF Version 3 0 0)
" IEC 61690-2 (EDIF Version 4 0 0)

" Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif

if version >= 600
setlocal iskeyword=48-57,-,+,A-Z,a-z,_,&
else
set iskeyword=A-Z,a-z,_,&
endif

syn region edifList matchgroup=Delimiter start="(" end=")" contains=edifList,edifKeyword,edifString,edifNumber

" Strings
syn match edifInStringError /%/ contained
syn match edifInString /%\s*\d\+\s*%/ contained
syn region edifString start=/"/ end=/"/ contains=edifInString,edifInStringError contained

" Numbers
syn match edifNumber "\<[-+]\=[0-9]\+\>"

" Keywords
syn match edifKeyword "(\@<=\s*[a-zA-Z&][a-zA-Z_0-9]*\>" contained

syn match edifError ")"

" synchronization
if version < 600
syntax sync maxlines=250
else
syntax sync fromstart
endif

" Define the default highlighting.
if version >= 508 || !exists("did_edif_syntax_inits")
if version < 508
let did_edif_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif

HiLink edifInString SpecialChar
HiLink edifKeyword Keyword
HiLink edifNumber Number
HiLink edifInStringError edifError
HiLink edifError Error
HiLink edifString String
delcommand HiLink
endif

let b:current_syntax = "edif"