From 5bc23671b5569d86196643f58f4f70997383b4a4 Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 16 Aug 2022 05:33:10 +0200 Subject: syntax --- misc/cff.vim | 3 ++- src/cffc.hff | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/cff.vim b/misc/cff.vim index 4b87313..00f586a 100644 --- a/misc/cff.vim +++ b/misc/cff.vim @@ -13,9 +13,10 @@ syn keyword Include import syn keyword Macro defmacro syn keyword Type i8 u8 i16 u16 i32 u32 i64 u64 syn keyword Type int uint isize usize iptrint uptrint +syn keyword Type c_char c_long c_ulong c_llong c_ullong syn keyword Type bool void f32 f64 typeof syn keyword Structure struct enum union -syn keyword Operator sizeof as not and or +syn keyword Operator sizeof as and or syn match PreProc "#\i*\>" syn match PreProc "#?\>" diff --git a/src/cffc.hff b/src/cffc.hff index 82c9081..3ff78c4 100644 --- a/src/cffc.hff +++ b/src/cffc.hff @@ -96,7 +96,7 @@ struct Parser { enum UnOp { neg, - lnot, + not, compl, deref, addrof, -- cgit v1.2.3