format type's string correctly

This commit is contained in:
Gwenhael Le Moine 2021-12-08 12:35:19 +01:00
parent e318296e29
commit 169e5249db
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -25,9 +25,8 @@ module Rpl
def type( stack, dictionary )
stack, args = Rpl::Lang::Core.stack_extract( stack, [:any] )
stack << args[0]
stack << { type: :string,
value: args[0][:type].to_s }
value: "\"#{args[0][:type]}\"" }
[stack, dictionary]
end