Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 11 | " quit when a syntax file was already loaded |
| 12 | if exists("b:current_syntax") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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. |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 61 | " Only when an item doesn't have highlighting yet |
| 62 | command -nargs=+ HiLink hi def link <args> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 63 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 64 | HiLink draculaIdentifier Identifier |
| 65 | HiLink draculaStatement Statement |
| 66 | HiLink draculaType Type |
| 67 | HiLink draculaComment Comment |
| 68 | HiLink draculaPreProc PreProc |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 69 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 70 | delcommand HiLink |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 71 | |
| 72 | let b:current_syntax = "dracula" |
| 73 | |
| 74 | " vim: ts=8 |