~ecs/hare.lua

f0e75edbccd4806ed527bee58e246cd35db8052c — Alexey Yerin 3 years ago fdcccaa
Add rune type
1 files changed, 2 insertions(+), 2 deletions(-)

M hare.lua
M hare.lua => hare.lua +2 -2
@@ 54,8 54,8 @@ local string = token(l.STRING, "'" * rune * "'" + '"' * string_char^0 * '"')
-- TODO: highlight size correctly both as keyword and type
local type = token(l.TYPE, word_match{
	'u8', 'u16', 'u32', 'u64', 'i8', 'i16', 'i32', 'i64', 'uint',
	'int', 'uintptr', 'size', 'f32', 'f64', 'bool', 'char', 'str',
	'void', 'struct', 'union', 'enum', 'nullable', 'null',
	'int', 'uintptr', 'size', 'f32', 'f64', 'bool', 'char', 'rune',
	'str', 'void', 'struct', 'union', 'enum', 'nullable', 'null',
})

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