~ubuntu-branches/debian/squeeze/pygments/squeeze

« back to all changes in this revision

Viewing changes to pygments/lexers/asm.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski
  • Date: 2009-09-13 10:13:17 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090913101317-2w7g3lf43pginyc7
Tags: 1.1.1+dfsg-1
* New upstream release
  - upstream tarball repackaged: tests/examplefiles removed (at least one
    of example files is not DFSG-free and I'm too lazy to review the rest
    as most of them have different copyright holder and license),
    get-orig-source target added, debian/watch file updated
* use_jinja2_to_generate_docs patch removed (incorporated upstream)
* disable_ez_setup.patch no longer needed
* make_utf8_default.patch updated
* debian/copyright file updated
* Standards-Version bumped to 3.8.3 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
    Lexers for assembly languages.
7
7
 
8
 
    :copyright: 2007 by Frits van Bommel.
9
 
    :license: BSD, see LICENSE for more details.
 
8
    :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS.
 
9
    :license: BSD, see LICENSE for details.
10
10
"""
11
11
 
12
12
import re
15
15
except NameError:
16
16
    from sets import Set as set
17
17
 
18
 
from pygments.lexer import RegexLexer, include, bygroups, using, \
19
 
                           this, DelegatingLexer
 
18
from pygments.lexer import RegexLexer, include, bygroups, using, DelegatingLexer
20
19
from pygments.lexers.compiled import DLexer, CppLexer, CLexer
21
20
from pygments.token import *
22
21
 
92
91
        ]
93
92
    }
94
93
 
 
94
    def analyse_text(text):
 
95
        return re.match(r'^\.\w+', text, re.M)
95
96
 
96
97
class ObjdumpLexer(RegexLexer):
97
98
    """