Add vim syntax highlighting definition
[bitfield] / bitfield
index c70c6c6af86f2682906936f7d5338245031eb87d..8aab6f8b617bd868264f50f12a392f4bf7c43285 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -226,7 +226,7 @@ def decode_value(reg, value, options):
                        "for %d-bit register '%s'") % (value, reg.width, reg.id)
                return
 
-       print reg.decode(i, options.has_key('non_zero'))
+       print reg.decode(i, options['non-zero'])
 
 
 def main():