~ecs/hare.lua

b1c56f3b86e9b24b73b7536062094d85c5b8c17d — Sebastian 2 years ago f190ee0
vaargs updates

Signed-off-by: Sebastian <sebastian@sebsite.pw>
1 files changed, 2 insertions(+), 1 deletions(-)

M hare.lua
M hare.lua => hare.lua +2 -1
@@ 8,7 8,7 @@ local M = {_NAME = 'hare'}

local builtin = token(l.FUNCTION, word_match{
	'len', 'offset', 'free', 'alloc', 'assert', 'append', 'insert',
	'abort', 'delete',
	'abort', 'delete', 'vastart', 'vaarg', 'vaend',
})

local comment = token(l.COMMENT, '//' * l.nonnewline_esc^0)


@@ 57,6 57,7 @@ local type = token(l.TYPE, word_match{
	'u8', 'u16', 'u32', 'u64', 'i8', 'i16', 'i32', 'i64', 'uint',
	'int', 'uintptr', 'size', 'f32', 'f64', 'bool', 'char', 'rune',
	'str', 'void', 'struct', 'union', 'enum', 'nullable', 'null',
	'valist',
})

local ws = token(l.WHITESPACE, l.space^1)