You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the syntax error
There is a syntax error when a variable declaration is not followed by a type annotation. A function declaration after such a variable declartion is not recognized.
Describe the syntax error
There is a syntax error when a variable declaration is not followed by a type annotation. A function declaration after such a variable declartion is not recognized.
Consider this example:
In this case, the
func
keyword is not recognized. It gets the scopevariable.other.swift
instead ofkeyword.declaration.function.swift
.This is how it looks in Sublime Text:
Expected behavior
The function should be recognized even if there is no type annotation in the previous variable declaration.
This is how it should look:
Minimum Reproducible Snippet of Swift code
Environment (please complete the following information):
Additional context
I think this can be fixed by adding
- include: reserved-word-pop
todeclaration-variable:
anddeclaration-constant:
.The text was updated successfully, but these errors were encountered: