Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pseuco
pseuco-ide
Commits
dd77c0ff
Verified
Commit
dd77c0ff
authored
Oct 02, 2019
by
Konstantin Kopper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/main/kotlin/fxGui/main/PseuCoArea.kt
src/main/kotlin/fxGui/main/PseuCoArea.kt
+1
-1
No files found.
src/main/kotlin/fxGui/main/PseuCoArea.kt
View file @
dd77c0ff
...
@@ -249,7 +249,7 @@ internal class PseuCoArea : CodeArea() {
...
@@ -249,7 +249,7 @@ internal class PseuCoArea : CodeArea() {
* @return The word on the left of [position].
* @return The word on the left of [position].
*/
*/
tailrec
fun
getWordAtPositionRecursive
(
position
:
Int
,
word
:
String
):
String
{
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
)
else
getWordAtPositionRecursive
(
position
-
1
,
this
[
position
]
+
word
)
}
}
...
...
Write
Preview
Markdown
is supported
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