aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-04-17 04:14:21 -0400
committerIan Moffett <ian@osmora.org>2025-04-17 04:14:21 -0400
commitcbabb4710f4ac890d94024e0c8be5687527215ca (patch)
treeedb2f4432c3517183d914b5a188d4a9b331c4b50 /tools
parentb71e2c4eb42dd4f0279b4b4c1986e4d0983a78e5 (diff)
tools: kconf: Recognize hexadecimal
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/kconf/scan.l1
1 files changed, 1 insertions, 0 deletions
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 */ }