summaryrefslogtreecommitdiff
path: root/src/fspec
diff options
context:
space:
mode:
Diffstat (limited to 'src/fspec')
-rw-r--r--src/fspec/lexer.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fspec/lexer.rl b/src/fspec/lexer.rl
index 8fdc960..51d1a54 100644
--- a/src/fspec/lexer.rl
+++ b/src/fspec/lexer.rl
@@ -530,7 +530,7 @@ state_finish_declaration(struct state *state, const enum fspec_declaration decl)
esc = [abfnrtv\\'"e];
esc_chr = '\\';
esc_hex = 'x' <: xdigit{2};
- hex = '0' <: esc_hex;
+ hex = '0x' <: xdigit{1,};
oct = [0-7]{1,3};
dec = [\-+]? <: (([1-9] <: digit*) | '0');
valid = ^cntrl;