EDITOR FUNCTIONS */
| 2745 | |
| 2746 | /* EDITOR FUNCTIONS */ |
| 2747 | Vector<String> GDScriptLanguage::get_reserved_words() const { |
| 2748 | // Please keep alphabetical order within categories. |
| 2749 | static const Vector<String> ret = { |
| 2750 | // Control flow. |
| 2751 | "break", |
| 2752 | "continue", |
| 2753 | "elif", |
| 2754 | "else", |
| 2755 | "for", |
| 2756 | "if", |
| 2757 | "match", |
| 2758 | "pass", |
| 2759 | "return", |
| 2760 | "when", |
| 2761 | "while", |
| 2762 | // Declarations. |
| 2763 | "class", |
| 2764 | "class_name", |
| 2765 | "const", |
| 2766 | "enum", |
| 2767 | "extends", |
| 2768 | "func", |
| 2769 | "namespace", // Reserved for potential future use. |
| 2770 | "signal", |
| 2771 | "static", |
| 2772 | "trait", // Reserved for potential future use. |
| 2773 | "var", |
| 2774 | // Other keywords. |
| 2775 | "await", |
| 2776 | "breakpoint", |
| 2777 | "self", |
| 2778 | "super", |
| 2779 | "yield", // Reserved for potential future use. |
| 2780 | // Operators. |
| 2781 | "and", |
| 2782 | "as", |
| 2783 | "in", |
| 2784 | "is", |
| 2785 | "not", |
| 2786 | "or", |
| 2787 | // Special values (tokenizer treats them as literals, not as tokens). |
| 2788 | "false", |
| 2789 | "null", |
| 2790 | "true", |
| 2791 | // Constants. |
| 2792 | "INF", |
| 2793 | "NAN", |
| 2794 | "PI", |
| 2795 | "TAU", |
| 2796 | // Functions (highlighter uses global function color instead). |
| 2797 | "assert", |
| 2798 | "preload", |
| 2799 | // Types (highlighter uses type color instead). |
| 2800 | "void", |
| 2801 | }; |
| 2802 | |
| 2803 | return ret; |
| 2804 | } |
no outgoing calls
no test coverage detected