summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-20 00:29:12 +0200
committerGeorg Brandl <georg@python.org>2014-09-20 00:29:12 +0200
commit034c993d384182ab1e0353424aa2ea22a1ef9920 (patch)
tree6a8a393e566e8646e65c52fbaccd9256e26c9e73
parentbb8d58a147fb3dc7ec11f928b6d97e8b47ade1ba (diff)
downloadpygments-034c993d384182ab1e0353424aa2ea22a1ef9920.tar.gz
fix mapping
-rw-r--r--pygments/lexers/_mapping.py2
-rw-r--r--pygments/lexers/math.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/_mapping.py b/pygments/lexers/_mapping.py
index 9e574df8..a11d9706 100644
--- a/pygments/lexers/_mapping.py
+++ b/pygments/lexers/_mapping.py
@@ -241,7 +241,7 @@ LEXERS = {
'NimrodLexer': ('pygments.lexers.misc.nimrod', 'Nimrod', ('nimrod', 'nim'), ('*.nim', '*.nimrod'), ('text/x-nimrod',)),
'NitLexer': ('pygments.lexers.misc.nit', 'Nit', ('nit',), ('*.nit',), ()),
'NixLexer': ('pygments.lexers.misc.nix', 'Nix', ('nixos', 'nix'), ('*.nix',), ('text/x-nix',)),
- 'NumPyLexer': ('pygments.lexers.math', 'NumPy', ('numpy',), (), ()),
+ 'NumPyLexer': ('pygments.lexers.python', 'NumPy', ('numpy',), (), ()),
'ObjdumpLexer': ('pygments.lexers.asm', 'objdump', ('objdump',), ('*.objdump',), ('text/x-objdump',)),
'ObjectiveCLexer': ('pygments.lexers.c_like.objective', 'Objective-C', ('objective-c', 'objectivec', 'obj-c', 'objc'), ('*.m', '*.h'), ('text/x-objective-c',)),
'ObjectiveCppLexer': ('pygments.lexers.c_like.objective', 'Objective-C++', ('objective-c++', 'objectivec++', 'obj-c++', 'objc++'), ('*.mm', '*.hh'), ('text/x-objective-c++',)),
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py
index c287a717..ffb01cea 100644
--- a/pygments/lexers/math.py
+++ b/pygments/lexers/math.py
@@ -22,11 +22,11 @@ from pygments.token import Comment, String, Punctuation, Keyword, Name, \
from pygments.lexers import _scilab_builtins
from pygments.lexers import _stan_builtins
-
+# backwards compat
from pygments.lexers.python import NumPyLexer
__all__ = ['JuliaLexer', 'JuliaConsoleLexer', 'MuPADLexer', 'MatlabLexer',
- 'MatlabSessionLexer', 'OctaveLexer', 'ScilabLexer', 'NumPyLexer',
+ 'MatlabSessionLexer', 'OctaveLexer', 'ScilabLexer',
'RConsoleLexer', 'SLexer', 'JagsLexer', 'BugsLexer', 'StanLexer',
'IDLLexer', 'RdLexer', 'IgorLexer', 'MathematicaLexer', 'GAPLexer']