aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-03-25 21:55:40 +0800
committerTeddy <[email protected]>2014-03-25 21:55:40 +0800
commit8d67a696dcfcee098396eb0eab06d43999b29b98 (patch)
treeef9e69f8a6304f19bd74eb8ee61afba3bfe7fe42
parente9c783cec3496c3b84681ce162f6133bec8a709d (diff)
...
-rw-r--r--cibic.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/cibic.l b/cibic.l
index e616325..84b3239 100644
--- a/cibic.l
+++ b/cibic.l
@@ -11,7 +11,7 @@ int yycolumn = 1;
letter [a-zA-Z_$]
digit [0-9]
string ((\\.|[^\n\"\\])*)
-char ([^'\\]|\\.|\\[0-7][0-7]?[0-7]?|\\[xX][0-9a-fA-F]+)
+char ([^'\\]|\\.|\\[0-7]+|\\[xX][0-9a-fA-F]+)
%s IN_BLOCK_COMMENT IN_INLINE_COMMENT IN_DIRECTIVE
%option yylineno