Skip to content

Commit 489a57e

Browse files
committed
Add 'meta.function-call.generic.python' scope to callee names
1 parent e46428f commit 489a57e

File tree

18 files changed

+27
-18
lines changed

18 files changed

+27
-18
lines changed

grammars/MagicPython.cson

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,6 +1348,8 @@ repository:
13481348
include: "#builtin-possible-callables"
13491349
}
13501350
{
1351+
comment: "Some color schemas support meta.function-call.generic scope"
1352+
name: "meta.function-call.generic.python"
13511353
match: '''
13521354
(?x)
13531355
\\b ([[:alpha:]_]\\w*) \\b

grammars/MagicPython.syntax.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,9 @@ repository:
900900
function-name:
901901
patterns:
902902
- include: '#builtin-possible-callables'
903-
- match: |
903+
- comment: Some color schemas support meta.function-call.generic scope
904+
name: meta.function-call.generic.python
905+
match: |
904906
(?x)
905907
\b ([[:alpha:]_]\w*) \b
906908

grammars/MagicPython.tmLanguage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,6 +2180,10 @@ it's not tokenized as ellipsis.
21802180
<string>#builtin-possible-callables</string>
21812181
</dict>
21822182
<dict>
2183+
<key>comment</key>
2184+
<string>Some color schemas support meta.function-call.generic scope</string>
2185+
<key>name</key>
2186+
<string>meta.function-call.generic.python</string>
21832187
<key>match</key>
21842188
<string>(?x)
21852189
\b ([[:alpha:]_]\w*) \b

misc/scopes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ meta.class.inheritance.python
5353
meta.class.python
5454
meta.expression.python
5555
meta.function-call.arguments.python
56+
meta.function-call.generic.python
5657
meta.function-call.python
5758
meta.function.decorator.python
5859
meta.function.parameters.python

test/calls/call1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44

5-
some_call : meta.function-call.python, source.python
5+
some_call : meta.function-call.generic.python, meta.function-call.python, source.python
66
( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
77
A : constant.other.caps.python, meta.function-call.arguments.python, meta.function-call.python, source.python
88
, : meta.function-call.arguments.python, meta.function-call.python, punctuation.separator.arguments.python, source.python

test/calls/call2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44

5-
foo : meta.function-call.python, source.python
5+
foo : meta.function-call.generic.python, meta.function-call.python, source.python
66
( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
77
from : keyword.control.flow.python, meta.function-call.arguments.python, meta.function-call.python, source.python
88
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python

test/calls/call4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
. : source.python
99
1 : source.python
1010
: source.python
11-
foo : meta.function-call.python, source.python
11+
foo : meta.function-call.generic.python, meta.function-call.python, source.python
1212
( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
1313
bar : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
1414
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python

test/expressions/const1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
QQQq QQQq123 : source.python
3333
self : source.python, variable.language.special.self.python
3434
. : source.python
35-
FOOO : meta.function-call.python, source.python
35+
FOOO : meta.function-call.generic.python, meta.function-call.python, source.python
3636
( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
3737
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
3838
_ _1 __1 _1A __1A _a __a __ ___ ___a ___1 __aA ___Aa : source.python

test/expressions/expr10.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
= : keyword.operator.assignment.python, source.python
1010
: source.python
1111
... : constant.other.ellipsis.python, source.python
12-
a : meta.function-call.python, source.python
12+
a : meta.function-call.generic.python, meta.function-call.python, source.python
1313
( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
1414
... : constant.other.ellipsis.python, meta.function-call.arguments.python, meta.function-call.python, source.python
1515
, : meta.function-call.arguments.python, meta.function-call.python, punctuation.separator.arguments.python, source.python

test/expressions/expr6.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
: source.python
88
( : punctuation.parenthesis.begin.python, source.python
99
a, : source.python
10-
b : meta.function-call.python, source.python
10+
b : meta.function-call.generic.python, meta.function-call.python, source.python
1111
( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
1212
a : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
1313
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
@@ -16,7 +16,7 @@
1616
, : source.python
1717
{ : punctuation.definition.dict.begin.python, source.python
1818
c: : source.python
19-
d : meta.function-call.python, source.python
19+
d : meta.function-call.generic.python, meta.function-call.python, source.python
2020
( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
2121
b : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
2222
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
@@ -25,7 +25,7 @@
2525
, e: : source.python
2626
[ : punctuation.definition.list.begin.python, source.python
2727
a, : source.python
28-
b : meta.function-call.python, source.python
28+
b : meta.function-call.generic.python, meta.function-call.python, source.python
2929
( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
3030
z : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
3131
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python

0 commit comments

Comments
 (0)