1. Kirill Simonov
  2. pygments-htsql


thatch  committed e77fc4d

Add example file and entry in CHANGES for Scala lexer

  • Participants
  • Parent commits 50aac4c
  • Branches trunk

Comments (0)

Files changed (3)


View file
   * Clojure
   * POV-Ray scene files
   * Sqlite3 interactive console sessions
+  * Scala source files, thanks to Krzysiek Goj
 - Lexers improved:
   * C lexer highlights standard library functions now and supports

File pygments/lexers/_mapping.py

View file
     'RubyConsoleLexer': ('pygments.lexers.agile', 'Ruby irb session', ('rbcon', 'irb'), (), ('text/x-ruby-shellsession',)),
     'RubyLexer': ('pygments.lexers.agile', 'Ruby', ('rb', 'ruby'), ('*.rb', '*.rbw', 'Rakefile', '*.rake', '*.gemspec', '*.rbx'), ('text/x-ruby', 'application/x-ruby')),
     'SLexer': ('pygments.lexers.math', 'S', ('splus', 's', 'r'), ('*.S', '*.R'), ('text/S-plus', 'text/S', 'text/R')),
-    'JavaLexer': ('pygments.lexers.compiled', 'Scala', ('scala',), ('*.scala',), ('text/x-scala',)),
+    'ScalaLexer': ('pygments.lexers.compiled', 'Scala', ('scala',), ('*.scala',), ('text/x-scala',)),
     'SchemeLexer': ('pygments.lexers.functional', 'Scheme', ('scheme', 'scm'), ('*.scm',), ('text/x-scheme', 'application/x-scheme')),
     'SmalltalkLexer': ('pygments.lexers.other', 'Smalltalk', ('smalltalk', 'squeak'), ('*.st',), ('text/x-smalltalk',)),
     'SmartyLexer': ('pygments.lexers.templates', 'Smarty', ('smarty',), ('*.tpl',), ('application/x-smarty',)),

File tests/examplefiles/hello.scala

View file
+  object HelloWorld {
+    def main(args: Array[String]) {
+      println("Hello, world! " + args.toList)
+    }
+  }
+  HelloWorld.main(args)