Skip to content

Commit d103bf5

Browse files
committed
Merge pull request atom#25 from brutal-chaos/master
Break down flow into categories
2 parents c7f989b + d750903 commit d103bf5

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

grammars/python.cson

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,24 @@
8686
'match': '\\b(?:(import)|(from))\\b'
8787
}
8888
{
89-
'comment': 'keywords that delimit flow blocks or alter flow from within a block'
90-
'match': '\\b(elif|else|except|finally|for|if|try|while|with|break|continue|pass|raise|return|yield)\\b'
91-
'name': 'keyword.control.flow.python'
89+
'comment': 'keywords that delimit flow conditionals'
90+
'name': 'keyword.control.flow.conditional.python'
91+
'match': '\\b(if|elif|else)\\b'
92+
}
93+
{
94+
'comment': 'keywords that delimit an exception'
95+
'name': 'keyword.control.flow.exception.python'
96+
'match': '\\b(except|finally|try|raise)\\b'
97+
}
98+
{
99+
'comment': 'keywords that delimit loops'
100+
'name': 'keyword.control.flow.repeat.python'
101+
'match': '\\b(for|while)\\b'
102+
}
103+
{
104+
'comment': 'keywords that alter flow from within a block'
105+
'name': 'keyword.control.flow.statement.python'
106+
'match': '\\b(with|break|continue|pass|return|yield)\\b'
92107
}
93108
{
94109
'comment': 'keyword operators that evaluate to True or False'

0 commit comments

Comments
 (0)