mckamey  committed 63c8ec3

- adding support for .duel markup
- renaming JbstLexer to DuelLexer (DuelEngine will replace JBST)

  • Participants
  • Parent commits 83cd2c6
  • Branches default

Comments (0)

Files changed (4)

 * Mark Lee -- Vala lexer
 * Ben Mabey -- Gherkin lexer
 * Kirk McDonald -- D lexer
-* Stephen McKamey -- JBST lexer
+* Stephen McKamey -- Duel/JBST lexer
 * Lukas Meuser -- BBCode formatter, Lua lexer
 * Paulo Moura -- Logtalk lexer
 * Ana Nelson -- Ragel, ANTLR, R console lexers
   * Ioke (#465)
   * Java properties, split out of the INI lexer (#445)
   * Scss (#509)
+  * Duel
   * JBST
 - Performance improvements in the HTML formatter (#523).

File pygments/lexers/

     'DelphiLexer': ('pygments.lexers.compiled', 'Delphi', ('delphi', 'pas', 'pascal', 'objectpascal'), ('*.pas',), ('text/x-pascal',)),
     'DiffLexer': ('pygments.lexers.text', 'Diff', ('diff', 'udiff'), ('*.diff', '*.patch'), ('text/x-diff', 'text/x-patch')),
     'DjangoLexer': ('pygments.lexers.templates', 'Django/Jinja', ('django', 'jinja'), (), ('application/x-django-templating', 'application/x-jinja')),
+    'DuelLexer': ('pygments.lexers.web', 'Duel', ('duel', 'Duel Engine', 'Duel View', 'JBST', 'jbst', 'JsonML+BST'), ('*.duel', '*.jbst',), ('text/x-duel', 'text/x-jbst',)),
     'DylanLexer': ('pygments.lexers.compiled', 'Dylan', ('dylan',), ('*.dylan',), ('text/x-dylan',)),
     'ErbLexer': ('pygments.lexers.templates', 'ERB', ('erb',), (), ('application/x-ruby-templating',)),
     'ErlangLexer': ('pygments.lexers.functional', 'Erlang', ('erlang',), ('*.erl', '*.hrl'), ('text/x-erlang',)),
     'JavascriptLexer': ('pygments.lexers.web', 'JavaScript', ('js', 'javascript'), ('*.js',), ('application/javascript', 'application/x-javascript', 'text/x-javascript', 'text/javascript')),
     'JavascriptPhpLexer': ('pygments.lexers.templates', 'JavaScript+PHP', ('js+php', 'javascript+php'), (), ('application/x-javascript+php', 'text/x-javascript+php', 'text/javascript+php')),
     'JavascriptSmartyLexer': ('pygments.lexers.templates', 'JavaScript+Smarty', ('js+smarty', 'javascript+smarty'), (), ('application/x-javascript+smarty', 'text/x-javascript+smarty', 'text/javascript+smarty')),
-    'JbstLexer': ('pygments.lexers.web', 'JBST', ('jbst', 'JsonML+BST'), ('*.jbst',), ('text/x-jbst',)),
     'JspLexer': ('pygments.lexers.templates', 'Java Server Page', ('jsp',), ('*.jsp',), ('application/x-jsp',)),
     'LighttpdConfLexer': ('pygments.lexers.text', 'Lighttpd configuration file', ('lighty', 'lighttpd'), (), ('text/x-lighttpd-conf',)),
     'LiterateHaskellLexer': ('pygments.lexers.functional', 'Literate Haskell', ('lhs', 'literate-haskell'), ('*.lhs',), ('text/x-literate-haskell',)),

File pygments/lexers/

 __all__ = ['HtmlLexer', 'XmlLexer', 'JavascriptLexer', 'CssLexer',
            'PhpLexer', 'ActionScriptLexer', 'XsltLexer', 'ActionScript3Lexer',
            'MxmlLexer', 'HaxeLexer', 'HamlLexer', 'SassLexer', 'ScssLexer',
-           'ObjectiveJLexer', 'CoffeeScriptLexer', 'JbstLexer']
+           'ObjectiveJLexer', 'CoffeeScriptLexer', 'DuelLexer']
 class JavascriptLexer(RegexLexer):
-class JbstLexer(RegexLexer):
+class DuelLexer(RegexLexer):
-    Lexer for JsonML+Browser-Side Template (JBST) markup with JavaScript code blocks.
+    Lexer for Duel Views Engine (formerly JBST) markup with JavaScript code blocks.
+    See
     *New in Pygments 1.4.*
-    name = 'JBST'
-    aliases = ['jbst', 'JsonML+BST']
-    filenames = ['*.jbst']
-    mimetypes = ['text/x-jbst']
+    name = 'Duel'
+    aliases = ['duel', 'Duel Engine', 'Duel View', 'JBST', 'jbst', 'JsonML+BST']
+    filenames = ['*.duel','*.jbst']
+    mimetypes = ['text/x-duel','text/x-jbst']
     flags = re.DOTALL