src/eric7/QScintilla/TypingCompleters/CompleterYaml.py

branch
eric7
changeset 10162
e7040c88b39e
parent 9653
e67609152c5e
child 10201
5beaa25bdfbe
equal deleted inserted replaced
10161:b0ccdb47acde 10162:e7040c88b39e
123 # new line 123 # new line
124 # indent after line ending with ':' 124 # indent after line ending with ':'
125 elif char == "\n" and self.__autoIndentation: 125 elif char == "\n" and self.__autoIndentation:
126 txt = self.editor.text(line - 1) 126 txt = self.editor.text(line - 1)
127 match = re.search( 127 match = re.search(
128 "(?:\||\|-|\|\+|>|>-|>\+|-|:)(\s*)\r?\n", 128 r"(?:\||\|-|\|\+|>|>-|>\+|-|:)(\s*)\r?\n",
129 # __IGNORE_WARNING_W605__ 129 # __IGNORE_WARNING_W605__
130 txt, 130 txt,
131 ) 131 )
132 if match is not None: 132 if match is not None:
133 startBlanks = match.start(1) 133 startBlanks = match.start(1)

eric ide

mercurial