diff options
author | jannick0 <jannick0@users.noreply.github.com> | 2017-07-09 22:36:14 +0200 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2017-07-15 18:52:28 -0400 |
commit | 7af066b952fc81eb1a29079c7206e50ffed80c40 (patch) | |
tree | d8b5021d35046a251bdffcb856816082a01f0139 | |
parent | e784a805ef8f33ab4de544eee1876f41d2bd9dbc (diff) |
scanner: Ignore comment lines in skeleton files.
In skeleton files comments are indicated by leading `%#` and when
directly read in using `flex -S <skeleton.skl>` they should be
ignored. Example: `flex.skl`.
Amending commit 2f21edac99b5efc432417233e6e53326d630e08f which removed
this conditional branch.
-rw-r--r-- | src/misc.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -732,7 +732,10 @@ void skelout (void) */ #define cmd_match(s) (strncmp(buf,(s),strlen(s))==0) - if (buf[1] == '%') { + if (buf[1] == '#') { + /* %# indicates comment line to be ignored */ + } + else if (buf[1] == '%') { /* %% is a break point for skelout() */ return; } |