summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1994-12-10 17:52:55 +0000
committerVern Paxson <vern@ee.lbl.gov>1994-12-10 17:52:55 +0000
commit8954558446e9d5c64486cca5e59154c8958dc45a (patch)
tree4e8b90080c5bf7131ab58c314eb06fb50b5cb384 /parse.y
parentf2173ceeaf86e55dc4dd00a46fcc6547c3d7a5de (diff)
treat [:upper:] as [:lower:] if -i
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index dea8178..71bfb9d 100644
--- a/parse.y
+++ b/parse.y
@@ -740,7 +740,12 @@ ccl_expr: CCE_ALNUM { CCL_EXPR(isalnum) }
| CCE_PRINT { CCL_EXPR(isprint) }
| CCE_PUNCT { CCL_EXPR(ispunct) }
| CCE_SPACE { CCL_EXPR(isspace) }
- | CCE_UPPER { CCL_EXPR(isupper) }
+ | CCE_UPPER {
+ if ( caseins )
+ CCL_EXPR(islower)
+ else
+ CCL_EXPR(isupper)
+ }
| CCE_XDIGIT { CCL_EXPR(isxdigit) }
;