Mercurial > vim
annotate runtime/syntax/dracula.vim @ 17589:5c29f5419166
Added tag v8.1.1791 for changeset 1348696d07cdd072693ef089260c7eb7acaacaf4
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 02 Aug 2019 20:00:09 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Dracula | |
3 " Maintainer: Scott Bordelon <slb@artisan.com> | |
4 " Last change: Wed Apr 25 18:50:01 PDT 2001 | |
5 " Extensions: drac.*,*.drac,*.drc,*.lvs,*.lpe | |
6 " Comment: Dracula is an industry-standard language created by CADENCE (a | |
7 " company specializing in Electronics Design Automation), for | |
8 " the purposes of Design Rule Checking, Layout vs. Schematic | |
9 " verification, and Layout Parameter Extraction. | |
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 | |
16 " Ignore case | |
17 syn case ignore | |
18 | |
19 " A bunch of useful Dracula keywords | |
20 | |
21 "syn match draculaIdentifier | |
22 | |
23 syn keyword draculaStatement indisk primary outdisk printfile system | |
24 syn keyword draculaStatement mode scale resolution listerror keepdata | |
25 syn keyword draculaStatement datatype by lt gt output label range touch | |
26 syn keyword draculaStatement inside outside within overlap outlib | |
27 syn keyword draculaStatement schematic model unit parset | |
28 syn match draculaStatement "flag-\(non45\|acuteangle\|offgrid\)" | |
29 syn match draculaStatement "text-pri-only" | |
30 syn match draculaStatement "[=&]" | |
31 syn match draculaStatement "\[[^,]*\]" | |
32 syn match draculastatement "^ *\(sel\|width\|ext\|enc\|area\|shrink\|grow\|length\)" | |
33 syn match draculastatement "^ *\(or\|not\|and\|select\|size\|connect\|sconnect\|int\)" | |
34 syn match draculastatement "^ *\(softchk\|stamp\|element\|parasitic cap\|attribute cap\)" | |
35 syn match draculastatement "^ *\(flagnon45\|lextract\|equation\|lpeselect\|lpechk\|attach\)" | |
36 syn match draculaStatement "\(temporary\|connect\)-layer" | |
37 syn match draculaStatement "program-dir" | |
38 syn match draculaStatement "status-command" | |
39 syn match draculaStatement "batch-queue" | |
40 syn match draculaStatement "cnames-csen" | |
41 syn match draculaStatement "filter-lay-opt" | |
42 syn match draculaStatement "filter-sch-opt" | |
43 syn match draculaStatement "power-node" | |
44 syn match draculaStatement "ground-node" | |
45 syn match draculaStatement "subckt-name" | |
46 | |
47 syn match draculaType "\*description" | |
48 syn match draculaType "\*input-layer" | |
49 syn match draculaType "\*operation" | |
50 syn match draculaType "\*end" | |
51 | |
52 syn match draculaComment ";.*" | |
53 | |
54 syn match draculaPreProc "^#.*" | |
55 | |
56 "Modify the following as needed. The trade-off is performance versus | |
57 "functionality. | |
58 syn sync lines=50 | |
59 | |
60 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
61 " Only when an item doesn't have highlighting yet |
7 | 62 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
63 hi def link draculaIdentifier Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
64 hi def link draculaStatement Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
65 hi def link draculaType Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
66 hi def link draculaComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
67 hi def link draculaPreProc PreProc |
7 | 68 |
69 | |
70 let b:current_syntax = "dracula" | |
71 | |
72 " vim: ts=8 |