diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-03-17 10:30:50 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-03-17 10:30:50 -0700 |
commit | 2c3a4ff60e91bf71911dd8c68f22871a7e11da55 (patch) | |
tree | 906d6406f569a453d92a7dda5b4bc847df42d2e7 /termios.c | |
parent | 8e7bba1e12c8d5f583c958b9eac0a68c18bf1c9a (diff) | |
download | txr-2c3a4ff60e91bf71911dd8c68f22871a7e11da55.tar.gz txr-2c3a4ff60e91bf71911dd8c68f22871a7e11da55.tar.bz2 txr-2c3a4ff60e91bf71911dd8c68f22871a7e11da55.zip |
listener: fix poor regex handling in balance check.
* parser.c (is_balanced_line): Introduce the ST_RGXC state to
which we switch when we encounter a regex character class.
Also introduce ST_RGXE for regex subexpressions. In these
states, do not recognize / as the regex terminator.
Diffstat (limited to 'termios.c')
0 files changed, 0 insertions, 0 deletions