Added an additional expression to the list of recognized expressions.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2261 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-09-24 20:44:02 +00:00
parent 1c9d0cf043
commit 9ece28c4f5
+6
View File
@@ -201,6 +201,12 @@ function evaluate(stmnt) {
sub(pattern, (op[1] != 0) || (op[2] != 0), stmnt)
}
pattern="([01]) *\\|\\| *(!* *defined *\\( *[A-Za-z_]* *\\))"
while (match(stmnt, pattern, op) != 0)
{
sub(pattern, op[1] == 0 ? op[2] : op[1], stmnt)
}
pattern="\\((-*[0-9]+)\\)"
while (match(stmnt, pattern, op) != 0)
{