Mercurial > vim
comparison runtime/syntax/spice.vim @ 3557:9cb3a75a20b9
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 01 Jun 2012 22:38:45 +0200 |
parents | 3fc0f57ecb91 |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
3556:1110869e267a | 3557:9cb3a75a20b9 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Spice circuit simulator input netlist | 2 " Language: Spice circuit simulator input netlist |
3 " Maintainer: Noam Halevy <Noam.Halevy.motorola.com> | 3 " Maintainer: Noam Halevy <Noam.Halevy.motorola.com> |
4 " Last Change: 12/08/99 | 4 " Last Change: 2012 Jun 01 |
5 " (Dominique Pelle added @Spell) | |
5 " | 6 " |
6 " This is based on sh.vim by Lennart Schultz | 7 " This is based on sh.vim by Lennart Schultz |
7 " but greatly simplified | 8 " but greatly simplified |
8 | 9 |
9 " For version 5.x: Clear all syntax items | 10 " For version 5.x: Clear all syntax items |
17 " spice syntax is case INsensitive | 18 " spice syntax is case INsensitive |
18 syn case ignore | 19 syn case ignore |
19 | 20 |
20 syn keyword spiceTodo contained TODO | 21 syn keyword spiceTodo contained TODO |
21 | 22 |
22 syn match spiceComment "^ \=\*.*$" | 23 syn match spiceComment "^ \=\*.*$" contains=@Spell |
23 syn match spiceComment "\$.*$" | 24 syn match spiceComment "\$.*$" contains=@Spell |
24 | 25 |
25 " Numbers, all with engineering suffixes and optional units | 26 " Numbers, all with engineering suffixes and optional units |
26 "========================================================== | 27 "========================================================== |
27 "floating point number, with dot, optional exponent | 28 "floating point number, with dot, optional exponent |
28 syn match spiceNumber "\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=\(meg\=\|[afpnumkg]\)\=" | 29 syn match spiceNumber "\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=\(meg\=\|[afpnumkg]\)\=" |