summaryrefslogtreecommitdiff
path: root/colm/parsetree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-05-23 13:52:19 +0000
committerAdrian Thurston <thurston@complang.org>2012-05-23 13:52:19 +0000
commitb628bd6037bea333bccadc0850707616a730275b (patch)
tree75795189a3707a4818471e626ce93a28941383b8 /colm/parsetree.h
parent77aac5d2c534e3206fd150b4e2b29688f6230ee1 (diff)
downloadcolm-b628bd6037bea333bccadc0850707616a730275b.tar.gz
added a syntax for specifying no ignores
Added the keyword 'ni', which can go ahead of or before a token pattern (literal or usual), which means no-ignore. Sets the noPreIgnore and noPostIgnore bits in the token, which affect the ignore scanning and attaching.
Diffstat (limited to 'colm/parsetree.h')
-rw-r--r--colm/parsetree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/colm/parsetree.h b/colm/parsetree.h
index 2d39b4ee..fa0e5ab7 100644
--- a/colm/parsetree.h
+++ b/colm/parsetree.h
@@ -398,7 +398,7 @@ struct TokenDef
longestMatchId(longestMatchId), inLmSelect(false),
nspace(nspace), tokenRegion(tokenRegion), objectDef(objectDef),
contextIn(contextIn),
- dupOf(0), postNoIgnore(false), preNoIgnore(false)
+ dupOf(0), noPostIgnore(false), noPreIgnore(false)
{
if ( pReCaptureVect != 0 )
reCaptureVect = *pReCaptureVect;
@@ -429,8 +429,8 @@ struct TokenDef
Context *contextIn;
TokenDef *dupOf;
- bool postNoIgnore;
- bool preNoIgnore;
+ bool noPostIgnore;
+ bool noPreIgnore;
};
struct LelDefList;