Commits

Georg Brandl committed a6b47ae

Changelog entry for SystemVerilog.

Comments (0)

Files changed (2)

   * ECL (PR#29)
   * Urbiscript (PR#17)
   * OpenEdge ABL (PR#27)
+  * SystemVerilog (PR#35)
 
 - In the LaTeX formatter, escape special &, < and > chars (#648).
 

pygments/lexers/hdl.py

     :license: BSD, see LICENSE for details.
 """
 
-import re
-
-from pygments.lexer import RegexLexer, include, bygroups
+from pygments.lexer import RegexLexer, bygroups
 from pygments.token import \
      Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, \
      Error
                     token = Name.Constant
             yield index, token, value
 
+
 class SystemVerilogLexer(RegexLexer):
     """
-    Extends verilog lexer to recognise all SystemVerilog keywords from IEEE 1800-2009 standard.
-    Contributed by Gordon McGregor (gordon.mcgregor@verilab.com)
+    Extends verilog lexer to recognise all SystemVerilog keywords from IEEE
+    1800-2009 standard.
+
+    *New in Pygments 1.5.*
     """
     name = 'systemverilog'
     aliases = ['sv']
     filenames = ['*.sv', '*.svh']
     mimetypes = ['text/x-systemverilog']
-    
+
     #: optional Comment or Whitespace
     _ws = r'(?:\s|//.*?\n|/[*].*?[*]/)+'
 
                 if value.isupper():
                     token = Name.Constant
             yield index, token, value
-
-
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.