Skip to content

Commit 7208eee

Browse files
author
MattDMo
committed
Made IPython prompts all one color, improved django.module and django.model regexes
1 parent 5c71fda commit 7208eee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PythonImproved.YAML-tmLanguage

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ uuid: 0F24FCF1-6543-4CC6-8B33-2EAED401FE3A
88

99
patterns:
1010
- name: support.ipython.in
11-
match: ^In\b
11+
match: (^In \[\d\]\:)
1212

1313
- name: support.ipython.out
14-
match: ^Out\b
14+
match: (^Out\[\d\]\:)
1515

1616
- name: support.type.django.model
1717
comment: updated for 1.7, backwards-compatible with 1.6
1818
match: (meta|models)\.(Admin|AutoField|BigIntegerField|BinaryField|BooleanField|CharField|CommaSeparatedIntegerField|DateField|DateTimeField|DecimalField|EmailField|FileField|FilePathField|FloatField|ForeignKey|ImageField|IntegerField|IPAddressField|GenericIPAddressField|ManyToManyField|NullBooleanField|OneToOneField|PhoneNumberField|PositiveIntegerField|PositiveSmallIntegerField|SlugField|SmallIntegerField|TextField|TimeField|URLField|USStateField|XMLField)\b
1919

2020
- name: support.other.django.module
21-
match: 'django(\.[a-zA-Z0-9_]+){0,} '
21+
match: 'django(\.[A-Za-z_][A-Za-z0-9_]+){0,} '
2222

2323
- name: variable.other.django.settings
2424
comment: updated for 1.7, backwards-compatible with 1.6
@@ -28,7 +28,7 @@ patterns:
2828
match: (get_list_or_404|get_object_or_404|load_and_render|loader|render_to_response|render)\b
2929

3030
- name: support.function.django.model
31-
match: '[A-Za-z0-9_]+\.get_(object|list|iterator|count|values|values_iterator|in_bulk)\b'
31+
match: '[A-Za-z_][A-Za-z0-9_]+\.get_(object|list|iterator|count|values|values_iterator|in_bulk)\b'
3232

3333
- name: comment.line.note.python
3434
match: (#)\s*(BUG|FIXME|TODO|XXX).*$\n?

0 commit comments

Comments
 (0)