srclexer.py (ae54856b) | srclexer.py (77de67d5) |
---|---|
1# ************************************************************* 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 209 unchanged lines hidden (view full) --- 218 break 219 220 if len(self.token): 221 self.tokens.append(self.token) 222 223 if not self.parentLexer and self.debug: 224 progress ("-"*68 + "\n") 225 progress ("All defines found in this translation unit:\n") | 1# ************************************************************* 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 209 unchanged lines hidden (view full) --- 218 break 219 220 if len(self.token): 221 self.tokens.append(self.token) 222 223 if not self.parentLexer and self.debug: 224 progress ("-"*68 + "\n") 225 progress ("All defines found in this translation unit:\n") |
226 keys = self.defines.keys() 227 keys.sort() | 226 keys = sorted(self.defines.keys()) |
228 for key in keys: 229 progress ("@ %s\n"%key) 230 231 def dumpTokens (self, toError=False): 232 dumpTokens(self.tokens, toError) 233 234 235 def maybeAddToken (self): --- 274 unchanged lines hidden --- | 227 for key in keys: 228 progress ("@ %s\n"%key) 229 230 def dumpTokens (self, toError=False): 231 dumpTokens(self.tokens, toError) 232 233 234 def maybeAddToken (self): --- 274 unchanged lines hidden --- |