Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pseuco
pseuco-ide
Commits
dd77c0ff
Verified
Commit
dd77c0ff
authored
Oct 02, 2019
by
Konstantin Kopper
Browse files
Fix for autocompletion: Do not match against some more symbols
parent
b2991d02
Pipeline
#13965
passed with stages
in 7 minutes and 28 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/main/kotlin/fxGui/main/PseuCoArea.kt
View file @
dd77c0ff
...
...
@@ -249,7 +249,7 @@ internal class PseuCoArea : CodeArea() {
* @return The word on the left of [position].
*/
tailrec
fun
getWordAtPositionRecursive
(
position
:
Int
,
word
:
String
):
String
{
return
if
(
position
<
0
||
this
[
position
].
isBlank
()
||
this
[
position
][
0
]
in
"()[]{};+-*/."
)
word
return
if
(
position
<
0
||
this
[
position
].
isBlank
()
||
this
[
position
][
0
]
in
"()[]{};+-*/.
<?!
"
)
word
else
getWordAtPositionRecursive
(
position
-
1
,
this
[
position
]
+
word
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment