File tree Expand file tree Collapse file tree 5 files changed +46
-0
lines changed Expand file tree Collapse file tree 5 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,16 @@ repository:
45
45
{
46
46
include : " #docstring-statement"
47
47
}
48
+ {
49
+ include : " #semicolon"
50
+ }
51
+ ]
52
+ semicolon :
53
+ patterns : [
54
+ {
55
+ name : " invalid.deprecated.semicolon.python"
56
+ match : " \\ ;$"
57
+ }
48
58
]
49
59
comments :
50
60
patterns : [
Original file line number Diff line number Diff line change 66
66
<key >include </key >
67
67
<string >#docstring-statement </string >
68
68
</dict >
69
+ <dict >
70
+ <key >include </key >
71
+ <string >#semicolon </string >
72
+ </dict >
73
+ </array >
74
+ </dict >
75
+ <key >semicolon </key >
76
+ <dict >
77
+ <key >patterns </key >
78
+ <array >
79
+ <dict >
80
+ <key >name </key >
81
+ <string >invalid.deprecated.semicolon.python </string >
82
+ <key >match </key >
83
+ <string >\;$ </string >
84
+ </dict >
69
85
</array >
70
86
</dict >
71
87
<key >comments </key >
Original file line number Diff line number Diff line change @@ -77,6 +77,12 @@ repository:
77
77
- include : ' #assignment-operator'
78
78
- include : ' #decorator'
79
79
- include : ' #docstring-statement'
80
+ - include : ' #semicolon'
81
+
82
+ semicolon :
83
+ patterns :
84
+ - name : invalid.deprecated.semicolon.python
85
+ match : ' \;$'
80
86
81
87
comments :
82
88
patterns :
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ entity.name.type.class.python
29
29
entity.other.inherited-class.python
30
30
invalid.deprecated.backtick.python
31
31
invalid.deprecated.prefix.python
32
+ invalid.deprecated.semicolon.python
32
33
invalid.illegal.annotation.python
33
34
invalid.illegal.dec.python
34
35
invalid.illegal.decorator.python
Original file line number Diff line number Diff line change
1
+ a ;
2
+ ;
3
+ a = 1 ; b
4
+
5
+
6
+
7
+ a : source .python
8
+ ; : invalid .deprecated .semicolon .python , source .python
9
+ ; : invalid .deprecated .semicolon .python , source .python
10
+ a : source .python
11
+ = : keyword .operator .assignment .python , source .python
12
+ 1 : constant .numeric .dec .python , source .python
13
+ ; b : source .python
You can’t perform that action at this time.
0 commit comments