Mercurial > vim
annotate runtime/syntax/edif.vim @ 10763:ae0bbbbe2a38 v8.0.0271
patch 8.0.0271: may get ml_get error when :tcldo deletes lines
commit https://github.com/vim/vim/commit/a4c906a4a111cbe59cf5f1e8354a36ba83e0a444
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 29 23:26:37 2017 +0100
patch 8.0.0271: may get ml_get error when :tcldo deletes lines
Problem: May get ml_get error when :tcldo deletes lines or switches to
another buffer. (Nikolai Pavlov, closes https://github.com/vim/vim/issues/1421)
Solution: Check the buffer and line every time.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 29 Jan 2017 23:30:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: EDIF (Electronic Design Interchange Format) | |
3 " Maintainer: Artem Zankovich <z_artem@hotbox.ru> | |
4 " Last Change: Oct 14, 2002 | |
5 " | |
6 " Supported standarts are: | |
7 " ANSI/EIA Standard 548-1988 (EDIF Version 2 0 0) | |
8 " IEC 61690-1 (EDIF Version 3 0 0) | |
9 " IEC 61690-2 (EDIF Version 4 0 0) | |
10 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
11 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
12 if exists("b:current_syntax") |
7 | 13 finish |
14 endif | |
15 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
16 setlocal iskeyword=48-57,-,+,A-Z,a-z,_,& |
7 | 17 |
18 syn region edifList matchgroup=Delimiter start="(" end=")" contains=edifList,edifKeyword,edifString,edifNumber | |
19 | |
20 " Strings | |
21 syn match edifInStringError /%/ contained | |
22 syn match edifInString /%\s*\d\+\s*%/ contained | |
23 syn region edifString start=/"/ end=/"/ contains=edifInString,edifInStringError contained | |
24 | |
25 " Numbers | |
26 syn match edifNumber "\<[-+]\=[0-9]\+\>" | |
27 | |
28 " Keywords | |
29 syn match edifKeyword "(\@<=\s*[a-zA-Z&][a-zA-Z_0-9]*\>" contained | |
30 | |
31 syn match edifError ")" | |
32 | |
33 " synchronization | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
34 syntax sync fromstart |
7 | 35 |
36 " Define the default highlighting. | |
37 | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
38 hi def link edifInString SpecialChar |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 hi def link edifKeyword Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
40 hi def link edifNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
41 hi def link edifInStringError edifError |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
42 hi def link edifError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
43 hi def link edifString String |
7 | 44 |
45 let b:current_syntax = "edif" |