ThirdParty/Pygments/pygments/lexers/foxpro.py

changeset 4172
4f20dba37ab6
parent 3145
a9de05d4a22f
child 4697
c2e9bf425554
equal deleted inserted replaced
4170:8bc578136279 4172:4f20dba37ab6
3 pygments.lexers.foxpro 3 pygments.lexers.foxpro
4 ~~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~~
5 5
6 Simple lexer for Microsoft Visual FoxPro source code. 6 Simple lexer for Microsoft Visual FoxPro source code.
7 7
8 :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11
12 from __future__ import unicode_literals
13 11
14 import re 12 import re
15 13
16 from pygments.lexer import RegexLexer 14 from pygments.lexer import RegexLexer
17 from pygments.token import Punctuation, Text, Comment, Operator, Keyword, \ 15 from pygments.token import Punctuation, Text, Comment, Operator, Keyword, \
24 """Lexer for Microsoft Visual FoxPro language. 22 """Lexer for Microsoft Visual FoxPro language.
25 23
26 FoxPro syntax allows to shorten all keywords and function names 24 FoxPro syntax allows to shorten all keywords and function names
27 to 4 characters. Shortened forms are not recognized by this lexer. 25 to 4 characters. Shortened forms are not recognized by this lexer.
28 26
29 *New in Pygments 1.6.* 27 .. versionadded:: 1.6
30 """ 28 """
31 29
32 name = 'FoxPro' 30 name = 'FoxPro'
33 aliases = ['Clipper', 'XBase'] 31 aliases = ['foxpro', 'vfp', 'clipper', 'xbase']
34 filenames = ['*.PRG', '*.prg'] 32 filenames = ['*.PRG', '*.prg']
35 mimetype = [] 33 mimetype = []
36 34
37 flags = re.IGNORECASE | re.MULTILINE 35 flags = re.IGNORECASE | re.MULTILINE
38 36

eric ide

mercurial