Jan Breuer
2015-09-10 39b7fbcb39edade740feb182c86cb43a43942cb7
Clarify disabled characters in program expression
1个文件已修改
12 ■■■■ 已修改文件
libscpi/src/lexer.c 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
libscpi/src/lexer.c
@@ -771,12 +771,12 @@
/* 7.7.7 <EXPRESSION PROGRAM DATA> */
static int isProgramExpression(int c) {
    if ((c >= 0x20) && (c <= 0x7e)) {
        if ((c != 0x22)
                && (c != 0x23)
                && (c != 0x27)
                && (c != 0x28)
                && (c != 0x29)
                && (c != 0x3B)) {
        if ((c != '"')
                && (c != '#')
                && (c != '\'')
                && (c != '(')
                && (c != ')')
                && (c != ';')) {
            return 1;
        }
    }