summaryrefslogtreecommitdiff
path: root/tools/kconf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/kconf')
-rw-r--r--tools/kconf/grammar.y2
-rw-r--r--tools/kconf/scan.l3
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/kconf/grammar.y b/tools/kconf/grammar.y
index 2f131fc..3b445a4 100644
--- a/tools/kconf/grammar.y
+++ b/tools/kconf/grammar.y
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2023-2024 Ian Marco Moffett and the Osmora Team.
+ * Copyright (c) 2023-2025 Ian Marco Moffett and the Osmora Team.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/tools/kconf/scan.l b/tools/kconf/scan.l
index 11c9d70..38cb028 100644
--- a/tools/kconf/scan.l
+++ b/tools/kconf/scan.l
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2023-2024 Ian Marco Moffett and the Osmora Team.
+ * Copyright (c) 2023-2025 Ian Marco Moffett and the Osmora Team.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -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 */ }