diff options
author | thatch <devnull@localhost> | 2008-08-14 23:49:28 -0700 |
---|---|---|
committer | thatch <devnull@localhost> | 2008-08-14 23:49:28 -0700 |
commit | a9a23405e8acc8079db9f8092b98924fbf834bb4 (patch) | |
tree | caafbbedbfbbcf2a1228091c3bd30a441b5020a4 | |
parent | 424366452ddc8619e89d3580aefb59e2bfae26b0 (diff) | |
download | pygments-a9a23405e8acc8079db9f8092b98924fbf834bb4.tar.gz |
Add a couple more keywords to the Scala lexer
-rw-r--r-- | pygments/lexers/compiled.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index b6f68c2b..5c35104f 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -6,7 +6,7 @@ Lexers for compiled languages. :copyright: 2006-2008 by Georg Brandl, Armin Ronacher, Christoph Hack, - Whitney Young, Kirk McDonald, Stou Sandalski. + Whitney Young, Kirk McDonald, Stou Sandalski, Krzysiek Goj. :license: BSD, see LICENSE for more details. """ @@ -955,9 +955,10 @@ class ScalaLexer(RegexLexer): (r'(abstract|case|catch|do|else|extends|final|finally|for|forSome' r'|if|implicit|lazy|match|new|null|override|private|protected' r'|requires|return|sealed|super|this|throw|try|type|while|with' - r'|yield|let|def|var|=>|<-|_)\b', Keyword), + r'|yield|let|def|var|println|=>|<-|_)\b', Keyword), (r'(boolean|byte|char|double|float|int|long|short|void)\b', Keyword.Type), + (r'(String|Int|Array|HashMap)\b', Keyword.Type), (r'(true|false|null)\b', Keyword.Constant), (r'(import)(\s+)', bygroups(Keyword, Text), 'import'), (r'"(\\\\|\\"|[^"])*"', String), |