]>
crepu.dev Git - config.git/blob - djavu-asus/emacs/elpy/rpc-venv/lib/python3.11/site-packages/parso/python/token.py
9b6f4c7c1985ccadf073a1bbf9e01ac906f49558
1 from __future__
import absolute_import
10 def __init__(self
, name
: str, contains_syntax
: bool = False):
12 self
.contains_syntax
= contains_syntax
15 return '%s(%s)' % (self
.__class
__.__name
__, self
.name
)
18 class PythonTokenTypes(Enum
):
19 STRING
= TokenType('STRING')
20 NUMBER
= TokenType('NUMBER')
21 NAME
= TokenType('NAME', contains_syntax
=True)
22 ERRORTOKEN
= TokenType('ERRORTOKEN')
23 NEWLINE
= TokenType('NEWLINE')
24 INDENT
= TokenType('INDENT')
25 DEDENT
= TokenType('DEDENT')
26 ERROR_DEDENT
= TokenType('ERROR_DEDENT')
27 FSTRING_STRING
= TokenType('FSTRING_STRING')
28 FSTRING_START
= TokenType('FSTRING_START')
29 FSTRING_END
= TokenType('FSTRING_END')
30 OP
= TokenType('OP', contains_syntax
=True)
31 ENDMARKER
= TokenType('ENDMARKER')