From cbabb4710f4ac890d94024e0c8be5687527215ca Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 17 Apr 2025 04:14:21 -0400 Subject: tools: kconf: Recognize hexadecimal Signed-off-by: Ian Moffett --- tools/kconf/scan.l | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/kconf/scan.l') diff --git a/tools/kconf/scan.l b/tools/kconf/scan.l index e9daec0..38cb028 100644 --- a/tools/kconf/scan.l +++ b/tools/kconf/scan.l @@ -42,6 +42,7 @@ "yes" { return YES; } "no" { return NO; } \"([^\"])*\" { yylval.str = strdup(yytext); return STRING; } +0[xX][0-9a-fA-F]+ { yylval.str = strdup(yytext); return STRING; } [a-zA-Z_][a-zA-Z0-9_]+ { yylval.str = strdup(yytext); return IDENTIFIER; } [0-9]+ { yylval.num = atoi(yytext); return NUMBER; } [ \t] { /* Ignore */ } -- cgit v1.2.3