-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathgdscript.min.js
More file actions
19 lines (19 loc) · 3.46 KB
/
gdscript.min.js
File metadata and controls
19 lines (19 loc) · 3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*! `gdscript` grammar compiled for Highlight.js 11.11.1 */
(()=>{var e=(()=>{"use strict";function e(e){
return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e
}var r,a;return e(a?r:(a=1,r=e=>({aliases:["gdscript","godot"],keywords:{
keyword:"class class_name const enum extends func namespace signal static trait var await breakpoint yield set get and in not or void as assert tool export onready break continue if elif else for pass return match when while remote sync master puppet remotesync mastersync puppetsync",
built_in:"abs absf absi acos acosh angle_difference asin asinh atan atan2 atanh bezier_derivative bezier_interpolate bytes_to_var bytes_to_var_with_objects ceil ceilf ceili clamp clampf clampi cos cosh cubic_interpolate cubic_interpolate_angle cubic_interpolate_angle_in_time cubic_interpolate_in_time db_to_linear deg_to_rad ease error_string exp floor floorf floori fmod fposmod hash instance_from_id inverse_lerp is_equal_approx is_finite is_inf is_instance_id_valid is_instance_valid is_nan is_same is_zero_approx lerp lerp_angle lerpf linear_to_db log max maxf maxi min minf mini move_toward nearest_po2 pingpong posmod pow print print_rich print_verbose printerr printraw prints printt push_error push_warning rad_to_deg rand_from_seed randf randf_range randfn randi randi_range randomize 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_string typeof var_to_bytes var_to_bytes_with_objects var_to_str weakref wrap wrapf wrapi Color8 assert char convert dict_to_inst get_stack inst_to_dict is_instance_of len load preload print_debug print_stack range type_exists",
type:"bool int float String Vector2 Vector2i Rect2 Rect2i Transform2D Vector3 Vector3i Vector4 Vector4i Plane AABB Quaternion Basis Transform3D Projection Color RID Object Callable Signal StringName NodePath Dictionary Array PackedByteArray PackedInt32Array PackedInt64Array PackedFloat32Array PackedFloat64Array PackedStringArray PackedVector2Array PackedVector3Array PackedColorArray PackedVector4Array Variant void",
"char.escape":"\\n \\t \\r \\a \\b \\f \\v \\\" \\' \\\\ \\u{[0-9a-fA-F]{1,4}} \\U{[0-9a-fA-F]{1,6}}",
"variable.language":"self super","variable.constant":"PI TAU INF NAN",
literal:"true false null"},contains:[e.NUMBER_MODE,{className:"string",
begin:/"""/,end:/"""/},{className:"string",begin:/'''/,end:/'''/},{
className:"meta",begin:/#(end)?region/,end:/\n/},e.COMMENT("#","$",{contains:[{
className:"doctag",begin:"@(tutorial|deprecated|experimental)+",end:/$/}]
}),e.QUOTE_STRING_MODE,{variants:[{className:"function",beginKeywords:"func"},{
className:"class",beginKeywords:"class"}],end:/:/,
contains:[e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:/@/,end:/[ ,\(,\n]/,
keywords:{
keyword:"@export @export_category @export_color_no_alpha @export_custom @export_dir @export_enum @export_exp_easing @export_file @export_flags @export_flags_2d_navigation @export_flags_2d_physics @export_flags_2d_render @export_flags_3d_navigation @export_flags_3d_physics @export_flags_3d_render @export_flags_avoidance @export_global_dir @export_global_file @export_group @export_multiline @export_node_path @export_placeholder @export_range @export_storage @export_subgroup @export_tool_button @icon @onready @rpc @static_unload @tool @warning_ignore @warning_ignore_restore @warning_ignore_start"
}}]})))})();hljs.registerLanguage("gdscript",e)})();