Skip to content

Commit

Permalink
Fix a syntax highlighting bug
Browse files Browse the repository at this point in the history
Fixes #9. Previously using Django shortcuts in a non-invocation context (i.e. in imports) would cause the rest of the document to not be syntax highlighted.
  • Loading branch information
zacharytamas committed Nov 12, 2015
1 parent 1840a71 commit 61c5c52
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions grammars/python django.cson
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,8 @@

# Shortcut functions
{
'begin': '(render_to_response|render|redirect|get_object_or_404|get_list_or_404|resolve_url)'
'beginCaptures':
'1':
'name': 'support.function.django.shortcuts'
'end': '(\\))'
'patterns': [
{
'include': '#function-call-arguments'
}
]
'match': '(render_to_response|render|redirect|get_object_or_404|get_list_or_404|resolve_url)'
'name': 'support.function.django.shortcuts'
}

# Settings constants
Expand Down

0 comments on commit 61c5c52

Please sign in to comment.