summaryrefslogtreecommitdiff
path: root/tools/kconf/scan.l
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-04-18 21:57:44 -0400
committerIan Moffett <ian@osmora.org>2025-04-18 21:57:44 -0400
commit9906547712a88cf4dc012a6f6bd6e2ad04c5e3f3 (patch)
tree41b40ec97f5082793b08a495f6a935bc3c1ed25f /tools/kconf/scan.l
parent0b5adaff02190dad76d845381a41b998696d9e97 (diff)
parent92d4f9dae64ab5325feca1f39e5955415e8275b9 (diff)
Merge branch 'expt' into aarch64
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'tools/kconf/scan.l')
-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 */ }