Skip to content

Commit 5e10876

Browse files
author
MattDMo
committed
Spacing
1 parent 5da56b0 commit 5e10876

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

PythonImproved-Unicode.YAML-tmLanguage

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,7 @@ patterns:
226226
let 'async def' be matched *first*.
227227
228228
name: keyword.control.flow.python
229-
match: |
230-
(?x) \b(
231-
async | await | break | continue | elif | else | except | finally | for |
232-
if | pass | raise | return | try | while | with |
233-
(yield(?:\s+from)?)
234-
)\b
229+
match: (?x)\b(async|await|break|continue|elif|else|except|finally|for|if|pass|raise|return|try|while|with|(yield(?:\s+from)?))\b
235230

236231
- name: meta.function.inline.python
237232
begin: (lambda)(?=\s+|:)
@@ -486,30 +481,7 @@ repository:
486481

487482
builtin_exceptions:
488483
name: support.type.exception.python
489-
match: |
490-
(?x) \b(
491-
(
492-
Arithmetic | Assertion | Attribute | Buffer | BlockingIO |
493-
BrokenPipe | ChildProcess |
494-
(Connection (Aborted | Refused | Reset)?) |
495-
EOF | Environment | FileExists | FileNotFound |
496-
FloatingPoint | IO | Import | Indentation | Index | Interrupted |
497-
IsADirectory | NotADirectory | Permission | ProcessLookup |
498-
Timeout |
499-
Key | Lookup | Memory | Name | NotImplemented | OS | Overflow |
500-
Reference | Runtime | Recursion | Standard | Syntax | System |
501-
Tab | Type | UnboundLocal | Unicode(Encode|Decode|Translate)? |
502-
Value | VMS | Windows | ZeroDivision
503-
)? Error
504-
|
505-
((Pending)?Deprecation | Runtime | Syntax | User | Future | Import |
506-
Unicode | Bytes | Resource
507-
)? Warning
508-
|
509-
SystemExit | Stop(Async)?Iteration | NotImplemented |
510-
KeyboardInterrupt |
511-
GeneratorExit | Exception
512-
)\b
484+
match: (?x)\b((Arithmetic|Assertion|Attribute|Buffer|BlockingIO|BrokenPipe|ChildProcess|(Connection(Aborted|Refused|Reset)?)|EOF|Environment|FileExists|FileNotFound|FloatingPoint|IO|Import|Indentation|Index|Interrupted|IsADirectory|NotADirectory|Permission|ProcessLookup|Timeout|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Recursion|Standard|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|VMS|Windows|ZeroDivision)?Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes|Resource)?Warning|SystemExit|Stop(Async)?Iteration|NotImplemented|KeyboardInterrupt|GeneratorExit|Exception)\b
513485

514486
builtin_functions:
515487
patterns:

0 commit comments

Comments
 (0)