text/x-gdscript
*.gd
#
[_a-zA-Z][_a-zA-Z0-9]*
[1-9][0-9]*
% # leading % sign
\(\%{identifier}\)? # mapping key
[#0\-\ \+]* # conversion flags
(\-?\%{number}|\*)? # minimum field width
(\.(\-?\%{number}|\*))? # precision
(hlL)? # lentgh modifier
[diouxXeEfFgGcrs%] # conversion type
\\( # leading backslash
[\\\"\'nrbtfav\?] | # escaped character
[0-7]{1,3} | # one, two, or three octal digits
x[0-9A-Fa-f]+ # 'x' followed by hex digits
)
"
"
'
'
(?<![\w\.])
_init
_ready
(?<![\w\.])
false
true
( (\d+)?\.\d+ | \d+\. ) |
( (\d+|(\d+)?\.\d+|\d+\.)[eE][+-]?\d+ )
(?<![\w\.])(\%{float}|\d+)[jJ]\b
(?<![\w\.])\%{float}(?![\w\.])
(?<![\w\.])([1-9][0-9]*|0)[lL]?(?![\w\.])
(?<![\w\.])0[0-7]+[lL]?(?![\w\.])
(?<![\w\.])0[xX][0-9A-Fa-f]+[lL]?(?![\w\.])
extends
preload
(?<![\w\.])
null
and
assert
break
breakpoint
class
const
continue
elif
else
enum
export
extends
false
float
for
func
if
in
int
not
null
onready
or
pass
return
self
setget
signal
static
tool
true
var
while
yield
(?<![\w\.])
Vector2
Size2
Rect2
Vector3
Matrix32
Plane
Quat
AABB
Box3
Matrix3
Transform
Color
Image
NodePath
RID
Object
InputEvent
(?<![\w\.])
print
sin
cos
tan
sinh
cosh
tanh
asin
acos
atan
atan2
sqrt
fmod
fposmod
floor
ceil
round
abs
sign
pow
log
exp
isnan
isinf
ease
decimals
stepify
lerp
dectime
randomize
rand
randi
randf
rand_range
rand_seed
deg2rad
rad2deg
linear2db
db2linear
max
min
clamp
nearest_po2
weakref
convert
str
print
printt
printerr
printraw
range
load
inst2dict
dict2inst