Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
hasKeywordColor(keyword:)
Returns true
if the keyword exists, else false
.
final func hasKeywordColor(keyword: String) -> Bool
Other members in extension
Type members
Instance members
var colorRegions: GDictionary
Sets the color regions. All existing regions will be removed. The
GDictionary
key is the region start and end key, separated by a space. The value is the region color.var functionColor: Color
Sets color for functions. A function is a non-keyword string followed by a ‘(’.
var keywordColors: GDictionary
Sets the keyword colors. All existing keywords will be removed. The
GDictionary
key is the keyword. The value is the keyword color.var memberKeywordColors: GDictionary
Sets the member keyword colors. All existing member keyword will be removed. The
GDictionary
key is the member keyword. The value is the member keyword color.var memberVariableColor: Color
Sets color for member variables. A member variable is non-keyword, non-function string proceeded with a ‘.’.
var numberColor: Color
Sets the color for numbers.
var symbolColor: Color
Sets the color for symbols.
func addColorRegion(startKey: String, endKey: String, color: Color, lineOnly: Bool
) Adds a color region such as comments or strings.
func addKeywordColor(keyword: String, color: Color
) Sets the color for a keyword.
func addMemberKeywordColor(memberKeyword: String, color: Color
) Sets the color for a member keyword.
func clearColorRegions(
) Removes all color regions.
func clearKeywordColors(
) Removes all keywords.
func clearMemberKeywordColors(
) Removes all member keywords.
func getKeywordColor(keyword: String
) -> Color Returns the color for a keyword.
func getMemberKeywordColor(memberKeyword: String
) -> Color Returns the color for a member keyword.
func hasColorRegion(startKey: String
) -> Bool Returns
true
if the start key exists, elsefalse
.func hasMemberKeywordColor(memberKeyword: String
) -> Bool Returns
true
if the member keyword exists, elsefalse
.func removeColorRegion(startKey: String
) Removes the color region that uses that start key.
func removeKeywordColor(keyword: String
) Removes the keyword.
func removeMemberKeywordColor(memberKeyword: String
) Removes the member keyword.