eric6/ThirdParty/Pygments/pygments/lexers/foxpro.py

changeset 7701
25f42e208e08
parent 7547
21b0534faebc
child 7983
54c5cfbb1e29
equal deleted inserted replaced
7700:a3cf077a8db3 7701:25f42e208e08
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-2019 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 11
12 import re 12 import re
13 13
34 34
35 flags = re.IGNORECASE | re.MULTILINE 35 flags = re.IGNORECASE | re.MULTILINE
36 36
37 tokens = { 37 tokens = {
38 'root': [ 38 'root': [
39 (r';\s*\n', Punctuation), # consume newline 39 (r';\s*\n', Punctuation), # consume newline
40 (r'(^|\n)\s*', Text, 'newline'), 40 (r'(^|\n)\s*', Text, 'newline'),
41 41
42 # Square brackets may be used for array indices 42 # Square brackets may be used for array indices
43 # and for string literal. Look for arrays 43 # and for string literal. Look for arrays
44 # before matching string literals. 44 # before matching string literals.

eric ide

mercurial