diff options
author | Georg Brandl <georg@python.org> | 2014-11-04 11:38:12 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-11-04 11:38:12 +0100 |
commit | 44046648589f155d0ba773ae0fe57127fd0a5e89 (patch) | |
tree | 195f8dad301ea1639b8515271420909365726a27 /pygments/lexers/jvm.py | |
parent | 9a760597282026468f768689815a09d40a1437a1 (diff) | |
download | pygments-44046648589f155d0ba773ae0fe57127fd0a5e89.tar.gz |
Closes #1050: highlight Java package names after "package" like after "import".
Diffstat (limited to 'pygments/lexers/jvm.py')
-rw-r--r-- | pygments/lexers/jvm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py index cc390513..7adeae59 100644 --- a/pygments/lexers/jvm.py +++ b/pygments/lexers/jvm.py @@ -57,7 +57,7 @@ class JavaLexer(RegexLexer): r'transient|volatile)\b', Keyword.Declaration), (r'(boolean|byte|char|double|float|int|long|short|void)\b', Keyword.Type), - (r'(package)(\s+)', bygroups(Keyword.Namespace, Text)), + (r'(package)(\s+)', bygroups(Keyword.Namespace, Text), 'import'), (r'(true|false|null)\b', Keyword.Constant), (r'(class|interface)(\s+)', bygroups(Keyword.Declaration, Text), 'class'), (r'(import)(\s+)', bygroups(Keyword.Namespace, Text), 'import'), |