annotate runtime/syntax/dracula.vim @ 6118:8d361608fe86 v7.4.397

updated for version 7.4.397 Problem: Matchparen only uses the topmost syntax item. Solution: Go through the syntax stack to find items. (James McCoy) Also use getcurpos() when possible.
author Bram Moolenaar <bram@vim.org>
date Wed, 06 Aug 2014 19:09:16 +0200
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Dracula
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Scott Bordelon <slb@artisan.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last change: Wed Apr 25 18:50:01 PDT 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Extensions: drac.*,*.drac,*.drc,*.lvs,*.lpe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Comment: Dracula is an industry-standard language created by CADENCE (a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " company specializing in Electronics Design Automation), for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " the purposes of Design Rule Checking, Layout vs. Schematic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " verification, and Layout Parameter Extraction.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Ignore case
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " A bunch of useful Dracula keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 "syn match draculaIdentifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword draculaStatement indisk primary outdisk printfile system
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword draculaStatement mode scale resolution listerror keepdata
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword draculaStatement datatype by lt gt output label range touch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword draculaStatement inside outside within overlap outlib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword draculaStatement schematic model unit parset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match draculaStatement "flag-\(non45\|acuteangle\|offgrid\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match draculaStatement "text-pri-only"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match draculaStatement "[=&]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match draculaStatement "\[[^,]*\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match draculastatement "^ *\(sel\|width\|ext\|enc\|area\|shrink\|grow\|length\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match draculastatement "^ *\(or\|not\|and\|select\|size\|connect\|sconnect\|int\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match draculastatement "^ *\(softchk\|stamp\|element\|parasitic cap\|attribute cap\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match draculastatement "^ *\(flagnon45\|lextract\|equation\|lpeselect\|lpechk\|attach\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match draculaStatement "\(temporary\|connect\)-layer"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match draculaStatement "program-dir"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match draculaStatement "status-command"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match draculaStatement "batch-queue"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match draculaStatement "cnames-csen"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match draculaStatement "filter-lay-opt"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match draculaStatement "filter-sch-opt"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match draculaStatement "power-node"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match draculaStatement "ground-node"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match draculaStatement "subckt-name"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match draculaType "\*description"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match draculaType "\*input-layer"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match draculaType "\*operation"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match draculaType "\*end"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match draculaComment ";.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match draculaPreProc "^#.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 "Modify the following as needed. The trade-off is performance versus
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 "functionality.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn sync lines=50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 if version >= 508 || !exists("did_dracula_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 let did_dracula_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink draculaIdentifier Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink draculaStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 HiLink draculaType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink draculaComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink draculaPreProc PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 let b:current_syntax = "dracula"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 " vim: ts=8