@foo syntax for encoding of strings into various formats.
Fixes part of #47 and #48.
This commit is contained in:
1 parent
52db8000c6
commit
89e26969ae
5 files changed
+307
-42
No files matched your search
@@ -68,6 +68,9 @@ struct lexer_param;
|
||||
return try_exit(yytext[0], YY_START, yyscanner);
|
||||
}
|
||||
|
||||
"@"[a-zA-Z0-9_]+ {
|
||||
yylval->literal = jv_string_sized(yytext + 1, yyleng - 1); return FORMAT;
|
||||
}
|
||||
|
||||
-?[0-9.]+([eE][+-]?[0-9]+)? {
|
||||
yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
|
||||
|
||||
Reference in new issue
Block a user