()
| 65 | ) |
| 66 | |
| 67 | func (k symkind) String() string { |
| 68 | str := []string{} |
| 69 | for n, v := range symkinds { |
| 70 | if (k & v) != 0 { |
| 71 | str = append(str, n) |
| 72 | } |
| 73 | } |
| 74 | sort.Strings(str) |
| 75 | return strings.Join(str, "|") |
| 76 | } |
| 77 | |
| 78 | var pyKeywords = map[string]struct{}{ |
| 79 | "False": struct{}{}, "None": struct{}{}, "True": struct{}{}, "and": struct{}{}, "as": struct{}{}, "assert": struct{}{}, "break": struct{}{}, "class": struct{}{}, "continue": struct{}{}, "def": struct{}{}, "del": struct{}{}, "elif": struct{}{}, "else": struct{}{}, "except": struct{}{}, "finally": struct{}{}, "for": struct{}{}, "from": struct{}{}, "global": struct{}{}, "if": struct{}{}, "import": struct{}{}, "in": struct{}{}, "is": struct{}{}, "lambda": struct{}{}, "nonlocal": struct{}{}, "not": struct{}{}, "or": struct{}{}, "pass": struct{}{}, "raise": struct{}{}, "return": struct{}{}, "try": struct{}{}, "while": struct{}{}, "with": struct{}{}, "yield": struct{}{}, "self": struct{}{}, |
no outgoing calls