mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Add missing python keywords
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
2af1225e4f
commit
0258783df8
1 changed files with 58 additions and 6 deletions
|
@ -62,12 +62,64 @@ TRACE_HOOK_NAME = '_trace'
|
||||||
CONSTRUCT_HOOK_NAME = '_constructor'
|
CONSTRUCT_HOOK_NAME = '_constructor'
|
||||||
HASINSTANCE_HOOK_NAME = '_hasInstance'
|
HASINSTANCE_HOOK_NAME = '_hasInstance'
|
||||||
|
|
||||||
RUST_KEYWORDS = {"abstract", "alignof", "as", "become", "box", "break", "const", "continue",
|
RUST_KEYWORDS = {
|
||||||
"else", "enum", "extern", "false", "final", "fn", "for", "if", "impl", "in",
|
"abstract",
|
||||||
"let", "loop", "macro", "match", "mod", "move", "mut", "offsetof", "override",
|
"alignof",
|
||||||
"priv", "proc", "pub", "pure", "ref", "return", "static", "self", "sizeof",
|
"as",
|
||||||
"struct", "super", "true", "trait", "type", "typeof", "unsafe", "unsized",
|
"async",
|
||||||
"use", "virtual", "where", "while", "yield"}
|
"await",
|
||||||
|
"become",
|
||||||
|
"box",
|
||||||
|
"break",
|
||||||
|
"const",
|
||||||
|
"continue",
|
||||||
|
"crate",
|
||||||
|
"do",
|
||||||
|
"dyn",
|
||||||
|
"else",
|
||||||
|
"enum",
|
||||||
|
"extern",
|
||||||
|
"false",
|
||||||
|
"final",
|
||||||
|
"fn",
|
||||||
|
"for",
|
||||||
|
"gen",
|
||||||
|
"if",
|
||||||
|
"impl",
|
||||||
|
"in",
|
||||||
|
"let",
|
||||||
|
"loop",
|
||||||
|
"macro",
|
||||||
|
"match",
|
||||||
|
"mod",
|
||||||
|
"move",
|
||||||
|
"mut",
|
||||||
|
"offsetof",
|
||||||
|
"override",
|
||||||
|
"priv",
|
||||||
|
"proc",
|
||||||
|
"pub",
|
||||||
|
"pure",
|
||||||
|
"ref",
|
||||||
|
"return",
|
||||||
|
"static",
|
||||||
|
"self",
|
||||||
|
"sizeof",
|
||||||
|
"struct",
|
||||||
|
"super",
|
||||||
|
"true",
|
||||||
|
"trait",
|
||||||
|
"try",
|
||||||
|
"type",
|
||||||
|
"typeof",
|
||||||
|
"unsafe",
|
||||||
|
"unsized",
|
||||||
|
"use",
|
||||||
|
"virtual",
|
||||||
|
"where",
|
||||||
|
"while",
|
||||||
|
"yield",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def genericsForType(t):
|
def genericsForType(t):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue