Ignore:
Timestamp:
Aug 8, 2014, 8:23:46 PM (5 years ago)
Author:
cameron
Message:

Bug fix for Advance chains; if-hierarchy options; grep option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/charsetcompiler/CC_compiler.py

    r3964 r3978  
    273273            elif isinstance(expr, Adv):
    274274               e = self.expr_string_to_variable(self.expr2py(expr.operand))
    275                return 'Advance(%s, %i)' % (e, expr.offset)
     275               if expr.offset == 1: return 'Advance(%s)' % (e)
     276               else: return 'Advance(%s, %i)' % (e, expr.offset)
    276277            else: raise Exception("Bad expression: %s" % repr(expr))
    277278
Note: See TracChangeset for help on using the changeset viewer.