Commit 2ec078d9 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Add vim modelines

parent f9059e58
......@@ -500,3 +500,5 @@ def CreateDeclarationsForAllTypes(names, leafTypeDict, badTypes: SetOfBadTypenam
for nodeTypename in names:
if not names[nodeTypename]._isArtificial and nodeTypename not in badTypes:
CreateDeclarationForType(nodeTypename, names, leafTypeDict)
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
......@@ -350,3 +350,5 @@ def OnChoice(nodeTypename, node, leafTypeDict):
def OnShutdown(unused_badTypes):
g_outputFile.write(g_doc.toprettyxml(indent=" ", encoding="UTF-8"))
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
......@@ -762,3 +762,5 @@ def sourceSequenceLimit(node, srcCVariable):
def targetSequenceLimit(node, dstCVariable):
return str(node._range[-1]) if not isSequenceVariable(node) else "%s.nCount" % dstCVariable
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
......@@ -761,9 +761,9 @@ class Module(Pretty):
_exportedVariables = None # type: List[str]
# (tuples of ModuleName, imported types, imported vars)
_importedModules = None # type: List[ Tuple[ str, List[str], List[str] ] ]
_importedModules = None # type: List[Tuple[str, List[str], List[str]]]
# (tuples of Typename, AsnNode)
_typeAssignments = None # type: List[ Tuple[ str, AsnNode] ]
_typeAssignments = None # type: List[Tuple[str, AsnNode]]
def VisitAsn1Module(xmlAsn1File, xmlModule, modules):
......@@ -985,3 +985,5 @@ if __name__ == "__main__":
elif "-testASN1" in sys.argv:
sys.argv.remove("-testASN1")
test_asn1()
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
......@@ -105,3 +105,5 @@ def DiscoverBadTypes() -> SetOfBadTypenames:
if not foundOne:
break
return badTypes
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
......@@ -429,3 +429,5 @@ def ConvertCatalogueToASN_AST(inputSmp2Files):
for nodeTypename in list(asnTypesDict.keys()):
FixupOutOfOrderIdReferences(nodeTypename, asnTypesDict, idToTypeDict)
return asnTypesDict, idToTypeDict
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
......@@ -115,3 +115,5 @@ class RecursiveMapper:
else:
panicWithCallStack("unsupported %s (%s)" % (str(node.__class__), node.Location()))
return lines
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
......@@ -149,3 +149,5 @@ def mysystem(cmd):
return os.system('"' + cmd + '"')
else:
return os.system(cmd)
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
......@@ -102,3 +102,5 @@ calling VerifyNodeRange for each Node.'''
VerifyNodeRange(node)
else:
panic("VerifyRanges: Unexpected %s\n" % str(node))
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment