Skip to content

Commit 1c0ddd6

Browse files
committed
Change scope 'keyword.invalid.illegal...' -> 'keyword.illegal...'.
1 parent f505cd4 commit 1c0ddd6

File tree

11 files changed

+17
-17
lines changed

11 files changed

+17
-17
lines changed

grammars/MagicPython.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ repository:
17101710
]
17111711
"illegal-object-name":
17121712
comment: "It's illegal to name class or function \"True\""
1713-
name: "keyword.invalid.illegal.name.python"
1713+
name: "keyword.illegal.name.python"
17141714
match: "\\b(True|False|None)\\b"
17151715
"illegal-anno":
17161716
name: "invalid.illegal.annotation.python"

grammars/MagicPython.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2693,7 +2693,7 @@ indirectly through syntactic constructs
26932693
<key>comment</key>
26942694
<string>It&apos;s illegal to name class or function &quot;True&quot;</string>
26952695
<key>name</key>
2696-
<string>keyword.invalid.illegal.name.python</string>
2696+
<string>keyword.illegal.name.python</string>
26972697
<key>match</key>
26982698
<string>\b(True|False|None)\b</string>
26992699
</dict>

grammars/src/MagicPython.syntax.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ repository:
11711171

11721172
illegal-object-name:
11731173
comment: It's illegal to name class or function "True"
1174-
name: keyword.invalid.illegal.name.python
1174+
name: keyword.illegal.name.python
11751175
match: \b(True|False|None)\b
11761176

11771177
illegal-anno:

misc/scopes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ invalid.illegal.operator.python
4040
invalid.illegal.prefix.python
4141
keyword.codetag.notation.python
4242
keyword.control.flow.python
43-
keyword.invalid.illegal.name.python
43+
keyword.illegal.name.python
4444
keyword.operator.arithmetic.python
4545
keyword.operator.assignment.python
4646
keyword.operator.bitwise.python

test/calls/call4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
2222
foo : source.python
2323
. : source.python
24-
None : keyword.invalid.illegal.name.python, source.python
24+
None : keyword.illegal.name.python, source.python
2525
: source.python
2626
and : keyword.operator.logical.python, source.python
2727
foo. : source.python

test/classes/class8.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ class False(object): pass
66

77
class : meta.class.python, source.python, storage.type.class.python
88
: meta.class.python, source.python
9-
None : keyword.invalid.illegal.name.python, meta.class.python, source.python
9+
None : keyword.illegal.name.python, meta.class.python, source.python
1010
: : meta.class.python, punctuation.section.class.begin.python, source.python
1111
: source.python
1212
pass : keyword.control.flow.python, source.python
1313
class : meta.class.python, source.python, storage.type.class.python
1414
: meta.class.python, source.python
15-
True : keyword.invalid.illegal.name.python, meta.class.python, source.python
15+
True : keyword.illegal.name.python, meta.class.python, source.python
1616
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
1717
False : constant.language.python, meta.class.inheritance.python, meta.class.python, source.python
1818
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python
@@ -21,7 +21,7 @@ class : meta.class.python, source.python, storage.type.class.python
2121
pass : keyword.control.flow.python, source.python
2222
class : meta.class.python, source.python, storage.type.class.python
2323
: meta.class.python, source.python
24-
False : keyword.invalid.illegal.name.python, meta.class.python, source.python
24+
False : keyword.illegal.name.python, meta.class.python, source.python
2525
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
2626
object : meta.class.inheritance.python, meta.class.python, source.python, support.type.python
2727
) : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.end.python, source.python

test/expressions/expr7.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
a : source.python
66
. : source.python
7-
True : keyword.invalid.illegal.name.python, source.python
7+
True : keyword.illegal.name.python, source.python
88
: source.python
99
= : keyword.operator.assignment.python, source.python
1010
b : source.python
1111
. : source.python
12-
False : keyword.invalid.illegal.name.python, source.python
12+
False : keyword.illegal.name.python, source.python
1313
: source.python
1414
= : keyword.operator.assignment.python, source.python
1515
d : source.python
1616
. : source.python
17-
None : keyword.invalid.illegal.name.python, source.python
17+
None : keyword.illegal.name.python, source.python
1818
: source.python

test/functions/decl6.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ def False(): pass
66

77
def : meta.function.python, source.python, storage.type.function.python
88
: meta.function.python, source.python
9-
True : keyword.invalid.illegal.name.python, meta.function.python, source.python
9+
True : keyword.illegal.name.python, meta.function.python, source.python
1010
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
1111
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
1212
: : meta.function.python, punctuation.section.function.begin.python, source.python
1313
: source.python
1414
pass : keyword.control.flow.python, source.python
1515
def : meta.function.python, source.python, storage.type.function.python
1616
: meta.function.python, source.python
17-
None : keyword.invalid.illegal.name.python, meta.function.python, source.python
17+
None : keyword.illegal.name.python, meta.function.python, source.python
1818
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
1919
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
2020
: : meta.function.python, punctuation.section.function.begin.python, source.python
2121
: source.python
2222
pass : keyword.control.flow.python, source.python
2323
def : meta.function.python, source.python, storage.type.function.python
2424
: meta.function.python, source.python
25-
False : keyword.invalid.illegal.name.python, meta.function.python, source.python
25+
False : keyword.illegal.name.python, meta.function.python, source.python
2626
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
2727
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
2828
: : meta.function.python, punctuation.section.function.begin.python, source.python

test/functions/decorators4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def foo(): pass
1010
. : entity.name.function.decorator.python, meta.function.decorator.python, source.python
1111
c : entity.name.function.decorator.python, meta.function.decorator.python, source.python
1212
. : entity.name.function.decorator.python, meta.function.decorator.python, source.python
13-
None : keyword.invalid.illegal.name.python, meta.function.decorator.python, source.python
13+
None : keyword.illegal.name.python, meta.function.decorator.python, source.python
1414
. : entity.name.function.decorator.python, meta.function.decorator.python, source.python
1515
z : entity.name.function.decorator.python, meta.function.decorator.python, source.python
1616
def : meta.function.python, source.python, storage.type.function.python

test/functions/decorators5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def foo(): pass
2323
: meta.function.decorator.python, source.python
2424
c : entity.name.function.decorator.python, meta.function.decorator.python, source.python
2525
. : entity.name.function.decorator.python, meta.function.decorator.python, source.python
26-
None : keyword.invalid.illegal.name.python, meta.function.decorator.python, source.python
26+
None : keyword.illegal.name.python, meta.function.decorator.python, source.python
2727
. : entity.name.function.decorator.python, meta.function.decorator.python, source.python
2828
z : entity.name.function.decorator.python, meta.function.decorator.python, source.python
2929
: meta.function.decorator.python, source.python

0 commit comments

Comments
 (0)