Georg Brandl avatar Georg Brandl committed 081fd5d

Attribution and changelog for CFengine3.

Comments (0)

Files changed (3)

 * Dietmar Winkler -- Modelica lexer
 * Nils Winter -- Smalltalk lexer
 * Davy Wybiral -- Clojure lexer
+* Diego Zamboni -- CFengine3 lexer
 * Alex Zimin -- Nemerle lexer
 
 Many thanks for all contributions!
   * Gosu
   * Octave (PR#22)
   * Standard ML (PR#14)
+  * CFengine3 (#601)
 
 - In the LaTeX formatter, escape special &, < and > chars (#648).
 

pygments/lexers/other.py

         ]
     }
 
+
 class Cfengine3Lexer(RegexLexer):
     """
     Lexer for `CFEngine3 <http://cfengine.org>`_ policy files.
 
+    *New in Pygments 1.5.*
     """
 
     name = 'CFEngine3'
     aliases = ['cfengine3', 'cf3']
-    filenames = [ '*.cf' ]
+    filenames = ['*.cf']
     mimetypes = []
 
     tokens = {
             (r'(body)(\s+)(\S+)(\s+)(control)',
              bygroups(Keyword, Text, Keyword, Text, Keyword)),
             (r'(body|bundle)(\s+)(\S+)(\s+)(\w+)(\()',
-             bygroups(Keyword, Text, Keyword, Text, Name.Function, Punctuation), 'arglist'),
+             bygroups(Keyword, Text, Keyword, Text, Name.Function, Punctuation),
+             'arglist'),
             (r'(body|bundle)(\s+)(\S+)(\s+)(\w+)',
              bygroups(Keyword, Text, Keyword, Text, Name.Function)),
             (r'(")([^"]+)(")(\s+)(string|slist|int|real)(\s*)(=>)(\s*)',
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.