Skip to content

Commit

Permalink
Merge pull request godotengine#6383 from Piralein/update-highlighter
Browse files Browse the repository at this point in the history
update the gdscript highlighter
  • Loading branch information
mhilbrunner authored Mar 23, 2023
2 parents c93375e + 1395a92 commit 5d91451
Showing 1 changed file with 33 additions and 14 deletions.
47 changes: 33 additions & 14 deletions _extensions/gdscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,35 +184,46 @@ def innerstring_rules(ttype):
"asin",
"atan",
"atan2",
"bytes2var",
"bytes2var_with_objects",
"bezier_derivative",
"bezier_interpolate",
"bytes_to_var",
"bytes_to_var_with_objects",
"ceil",
"ceilf",
"ceili",
"clamp",
"clampf",
"clampi",
"cos",
"cosh",
"cubic_interpolate",
"db2linear",
"deg2rad",
"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_zero_approx",
"lerp",
"lerp_angle",
"linear2db",
"lerpf",
"linear_to_db",
"log",
"max",
"maxf",
Expand All @@ -226,26 +237,28 @@ def innerstring_rules(ttype):
"posmod",
"pow",
"print",
"print_rich",
"print_verbose",
"printerr",
"printraw",
"prints",
"printt",
"push_error",
"push_warning",
"rad2deg",
"rad_to_deg",
"rand_from_seed",
"randf",
"randf_range",
"randfn",
"randi",
"randi_range",
"randomize",
"range_lerp",
"range_step_decimals",
"remap",
"rid_allocate_id",
"rid_from_int64",
"round",
"roundf",
"roundi",
"seed",
"sign",
"signf",
Expand All @@ -254,17 +267,20 @@ def innerstring_rules(ttype):
"sinh",
"smoothstep",
"snapped",
"snappedf",
"snappedi",
"sqrt",
"step_decimals",
"str",
"str2var",
"str_to_var",
"tan",
"tanh",
"typeof",
"var2bytes",
"var2bytes_with_objects",
"var2str",
"var_to_bytes",
"var_to_bytes_with_objects",
"var_to_str",
"weakref",
"wrap",
"wrapf",
"wrapi",

Expand All @@ -273,9 +289,9 @@ def innerstring_rules(ttype):
"assert",
"char",
"convert",
"dict2inst",
"dict_to_inst",
"get_stack",
"inst2dict",
"inst_to_dict",
"len",
"load",
"preload",
Expand Down Expand Up @@ -342,6 +358,7 @@ def innerstring_rules(ttype):
words(
(
"@export",
"@export_category",
"@export_color_no_alpha",
"@export_dir",
"@export_enum",
Expand All @@ -356,10 +373,12 @@ def innerstring_rules(ttype):
"@export_flags_3d_render",
"@export_global_dir",
"@export_global_file",
"@export_group",
"@export_multiline",
"@export_node_path",
"@export_placeholder",
"@export_range",
"@export_subgroup",
"@icon",
"@onready",
"@rpc",
Expand Down

0 comments on commit 5d91451

Please sign in to comment.