mirror of
https://github.com/godotengine/godot-visual-script.git
synced 2026-01-04 18:10:07 +03:00
Highlight control flow keywords with a different color
This makes them easier to distinguish from other keywords.
This commit is contained in:
@@ -2336,6 +2336,10 @@ void VisualScriptLanguage::finish() {
|
|||||||
void VisualScriptLanguage::get_reserved_words(List<String> *p_words) const {
|
void VisualScriptLanguage::get_reserved_words(List<String> *p_words) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool VisualScriptLanguage::is_control_flow_keyword(String p_keyword) const {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void VisualScriptLanguage::get_comment_delimiters(List<String> *p_delimiters) const {
|
void VisualScriptLanguage::get_comment_delimiters(List<String> *p_delimiters) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -586,6 +586,7 @@ public:
|
|||||||
|
|
||||||
/* EDITOR FUNCTIONS */
|
/* EDITOR FUNCTIONS */
|
||||||
virtual void get_reserved_words(List<String> *p_words) const;
|
virtual void get_reserved_words(List<String> *p_words) const;
|
||||||
|
virtual bool is_control_flow_keyword(String p_keyword) const;
|
||||||
virtual void get_comment_delimiters(List<String> *p_delimiters) const;
|
virtual void get_comment_delimiters(List<String> *p_delimiters) const;
|
||||||
virtual void get_string_delimiters(List<String> *p_delimiters) const;
|
virtual void get_string_delimiters(List<String> *p_delimiters) const;
|
||||||
virtual Ref<Script> get_template(const String &p_class_name, const String &p_base_class_name) const;
|
virtual Ref<Script> get_template(const String &p_class_name, const String &p_base_class_name) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user