Skip to content

Commit

Permalink
Try fix label and menu #8
Browse files Browse the repository at this point in the history
  • Loading branch information
williamd1k0 committed Feb 22, 2016
1 parent 5ed65ba commit 0867234
Showing 1 changed file with 1 addition and 51 deletions.
52 changes: 1 addition & 51 deletions grammars/renpy.cson
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
]
}
{
'begin': '^\\s*((jump)|(call)|(screen))\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*)'
'begin': '^\\s*((jump)|(call)|(screen)|(label)|(menu))\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*)'
'beginCaptures':
'1':
'name': 'keyword.control.statement.python'
Expand Down Expand Up @@ -445,56 +445,6 @@
}
]
}
{
'begin': '^\\s*((label)|(menu))\\s?*((?=[a-zA-Z_][a-zA-Z_0-9]*)\\s*)'
'beginCaptures':
'1':
'name': 'keyword.control.statement.python'
'end': '(\\:|\\()|(\\s*$\\n?|#.*$\\n?)'
'endCaptures':
'1':
'name': 'punctuation.definition.inheritance.end.python'
'2':
'name': 'punctuation.section.class.begin.python'
'3':
'name': 'invalid.illegal.missing-section-begin.python'
'name': 'meta.class.python'
'patterns': [
{
'begin': '(?=[A-Za-z_][A-Za-z0-9_]*)'
'contentName': 'entity.name.type.class.python'
'end': '(?![A-Za-z0-9_])'
'patterns': [
{
'include': '#entity_name_class'
}
]
}
{
'begin': '(\\()'
'beginCaptures':
'1':
'name': 'punctuation.definition.inheritance.begin.python'
'contentName': 'meta.class.inheritance.python'
'end': '(?=\\)|:|)'
'patterns': [
{
'begin': '(?<=\\(|,)\\s*'
'contentName': 'entity.other.inherited-class.python'
'end': '\\s*(?:(,)|(?=\\)))'
'endCaptures':
'1':
'name': 'punctuation.separator.inheritance.python'
'patterns': [
{
'include': '$self'
}
]
}
]
}
]
}
{
'begin': '^\\s*(class)\\s+(?=[a-zA-Z_][a-zA-Z_0-9])'
'beginCaptures':
Expand Down

0 comments on commit 0867234

Please sign in to comment.