diff --git a/languages/gdscript/highlights.scm b/languages/gdscript/highlights.scm index 685373a..c086869 100644 --- a/languages/gdscript/highlights.scm +++ b/languages/gdscript/highlights.scm @@ -17,6 +17,138 @@ (attribute_call (identifier) @function.method) (base_call (identifier) @function.method) (call (identifier) @function) + +; Global built-in functions from @GlobalScope and @GDScript. +((call (identifier) @function @function.builtin) + (#any-of? @function.builtin + "Color8" + "abs" + "absf" + "absi" + "acos" + "acosh" + "angle_difference" + "asin" + "asinh" + "assert" + "atan" + "atan2" + "atanh" + "bezier_derivative" + "bezier_interpolate" + "bytes_to_var" + "bytes_to_var_with_objects" + "ceil" + "ceilf" + "ceili" + "char" + "clamp" + "clampf" + "clampi" + "convert" + "cos" + "cosh" + "cubic_interpolate" + "cubic_interpolate_angle" + "cubic_interpolate_angle_in_time" + "cubic_interpolate_in_time" + "db_to_linear" + "deg_to_rad" + "dict_to_inst" + "ease" + "error_string" + "exp" + "floor" + "floorf" + "floori" + "fmod" + "fposmod" + "get_stack" + "hash" + "inst_to_dict" + "instance_from_id" + "inverse_lerp" + "is_equal_approx" + "is_finite" + "is_inf" + "is_instance_id_valid" + "is_instance_of" + "is_instance_valid" + "is_nan" + "is_same" + "is_zero_approx" + "len" + "lerp" + "lerp_angle" + "lerpf" + "linear_to_db" + "log" + "max" + "maxf" + "maxi" + "min" + "minf" + "mini" + "move_toward" + "nearest_po2" + "ord" + "pingpong" + "posmod" + "pow" + "print" + "print_debug" + "print_rich" + "print_stack" + "print_verbose" + "printerr" + "printraw" + "prints" + "printt" + "push_error" + "push_warning" + "rad_to_deg" + "rand_from_seed" + "randf" + "randf_range" + "randfn" + "randi" + "randi_range" + "randomize" + "range" + "remap" + "rid_allocate_id" + "rid_from_int64" + "rotate_toward" + "round" + "roundf" + "roundi" + "seed" + "sign" + "signf" + "signi" + "sin" + "sinh" + "smoothstep" + "snapped" + "snappedf" + "snappedi" + "sqrt" + "step_decimals" + "str" + "str_to_var" + "tan" + "tanh" + "type_convert" + "type_exists" + "type_string" + "typeof" + "var_to_bytes" + "var_to_bytes_with_objects" + "var_to_str" + "weakref" + "wrap" + "wrapf" + "wrapi")) ; Super calls have two forms: ; - super() to call this method's parent implementation, ; - super.other() to call another method's parent implementation.