ThirdParty/Pygments/pygments/lexers/hdl.py

changeset 2426
da76c71624de
parent 1705
b0fbc9300f2b
child 2525
8b507a9a2d40
equal deleted inserted replaced
2425:ace8a08028f3 2426:da76c71624de
3 pygments.lexers.hdl 3 pygments.lexers.hdl
4 ~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for hardware descriptor languages. 6 Lexers for hardware descriptor languages.
7 7
8 :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 11
12 import re 12 import re
13 from pygments.lexer import RegexLexer, bygroups, include, using, this 13 from pygments.lexer import RegexLexer, bygroups, include, using, this
23 For verilog source code with preprocessor directives. 23 For verilog source code with preprocessor directives.
24 24
25 *New in Pygments 1.4.* 25 *New in Pygments 1.4.*
26 """ 26 """
27 name = 'verilog' 27 name = 'verilog'
28 aliases = ['v'] 28 aliases = ['verilog', 'v']
29 filenames = ['*.v'] 29 filenames = ['*.v']
30 mimetypes = ['text/x-verilog'] 30 mimetypes = ['text/x-verilog']
31 31
32 #: optional Comment or Whitespace 32 #: optional Comment or Whitespace
33 _ws = r'(?:\s|//.*?\n|/[*].*?[*]/)+' 33 _ws = r'(?:\s|//.*?\n|/[*].*?[*]/)+'
135 1800-2009 standard. 135 1800-2009 standard.
136 136
137 *New in Pygments 1.5.* 137 *New in Pygments 1.5.*
138 """ 138 """
139 name = 'systemverilog' 139 name = 'systemverilog'
140 aliases = ['sv'] 140 aliases = ['systemverilog', 'sv']
141 filenames = ['*.sv', '*.svh'] 141 filenames = ['*.sv', '*.svh']
142 mimetypes = ['text/x-systemverilog'] 142 mimetypes = ['text/x-systemverilog']
143 143
144 #: optional Comment or Whitespace 144 #: optional Comment or Whitespace
145 _ws = r'(?:\s|//.*?\n|/[*].*?[*]/)+' 145 _ws = r'(?:\s|//.*?\n|/[*].*?[*]/)+'

eric ide

mercurial