summaryrefslogtreecommitdiffstats
path: root/cadr.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-03-17 10:30:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-03-17 10:30:50 -0700
commit2c3a4ff60e91bf71911dd8c68f22871a7e11da55 (patch)
tree906d6406f569a453d92a7dda5b4bc847df42d2e7 /cadr.h
parent8e7bba1e12c8d5f583c958b9eac0a68c18bf1c9a (diff)
downloadtxr-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 'cadr.h')
0 files changed, 0 insertions, 0 deletions