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. |