diff options
author | Alastair Houghton <alastair@coriolis-systems.com> | 2013-01-03 12:23:20 +0000 |
---|---|---|
committer | Alastair Houghton <alastair@coriolis-systems.com> | 2013-01-03 12:23:20 +0000 |
commit | 01ff62d16bcb567d2c7becd241e2b5bfb1bd3a93 (patch) | |
tree | 03485d4ee6a19b78842d0c6ce17323bd7517d815 /pygments | |
parent | e594d501a73f5255db2f919cf841996103b115b4 (diff) | |
download | pygments-01ff62d16bcb567d2c7becd241e2b5bfb1bd3a93.tar.gz |
Reinstate analyse_text.
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/compiled.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 83865e26..a5650da8 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -183,6 +183,9 @@ class CLexer(CFamilyLexer): mimetypes = ['text/x-chdr', 'text/x-csrc'] priority = 0.1 + def analyse_text(text): + return 0.1 + class CppLexer(CFamilyLexer): """ For C++ source code with preprocessor directives. @@ -220,6 +223,9 @@ class CppLexer(CFamilyLexer): ], } + def analyse_text(text): + return 0.1 + class ECLexer(CLexer): """ For eC source code with preprocessor directives. |