From 9c7f5b90eea268f7eb732a02454f7cf883540b67 Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Mon, 28 Dec 2020 22:49:18 +0100 Subject: [PATCH] Make 'size_t' a class 3 keyword in C This is consistent with how we highlight recognized identifiers such as 'Real' in Modelica listings. --- mlsshared.sty | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlsshared.sty b/mlsshared.sty index ecb2fee86..f7c1b4fc7 100644 --- a/mlsshared.sty +++ b/mlsshared.sty @@ -135,7 +135,8 @@ else,enum,extern,float,for,goto,if,int,long,register,return,% short,signed,sizeof,static,struct,switch,typedef,union,unsigned,% void,volatile,while}, - % henrikt-ma: How about adding some highlighting of 'size_t' as a recognized name? + morekeywords=[3]{% + size_t}, sensitive=true, morecomment=[s]{/*}{*/}, morecomment=[l]//, % nonstandard