mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Improve ScriptLanguage get keyword API.
This commit is contained in:
parent
34f005d810
commit
1384e82c2c
13 changed files with 87 additions and 123 deletions
|
@ -51,20 +51,25 @@
|
|||
#include "editor/editor_settings.h"
|
||||
#endif
|
||||
|
||||
void GDScriptLanguage::get_comment_delimiters(List<String> *p_delimiters) const {
|
||||
p_delimiters->push_back("#");
|
||||
Vector<String> GDScriptLanguage::get_comment_delimiters() const {
|
||||
static const Vector<String> delimiters = { "#" };
|
||||
return delimiters;
|
||||
}
|
||||
|
||||
void GDScriptLanguage::get_doc_comment_delimiters(List<String> *p_delimiters) const {
|
||||
p_delimiters->push_back("##");
|
||||
Vector<String> GDScriptLanguage::get_doc_comment_delimiters() const {
|
||||
static const Vector<String> delimiters = { "##" };
|
||||
return delimiters;
|
||||
}
|
||||
|
||||
void GDScriptLanguage::get_string_delimiters(List<String> *p_delimiters) const {
|
||||
p_delimiters->push_back("\" \"");
|
||||
p_delimiters->push_back("' '");
|
||||
p_delimiters->push_back("\"\"\" \"\"\"");
|
||||
p_delimiters->push_back("''' '''");
|
||||
Vector<String> GDScriptLanguage::get_string_delimiters() const {
|
||||
static const Vector<String> delimiters = {
|
||||
"\" \"",
|
||||
"' '",
|
||||
"\"\"\" \"\"\"",
|
||||
"''' '''",
|
||||
};
|
||||
// NOTE: StringName, NodePath and r-strings are not listed here.
|
||||
return delimiters;
|
||||
}
|
||||
|
||||
bool GDScriptLanguage::is_using_templates() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue