Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pygments/lexers/factor.py: 100%

21 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-07-01 06:54 +0000

1""" 

2 pygments.lexers.factor 

3 ~~~~~~~~~~~~~~~~~~~~~~ 

4 

5 Lexers for the Factor language. 

6 

7 :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. 

8 :license: BSD, see LICENSE for details. 

9""" 

10 

11from pygments.lexer import RegexLexer, bygroups, default, words 

12from pygments.token import Text, Comment, Keyword, Name, String, Number, \ 

13 Whitespace, Punctuation 

14 

15__all__ = ['FactorLexer'] 

16 

17 

18class FactorLexer(RegexLexer): 

19 """ 

20 Lexer for the Factor language. 

21 

22 .. versionadded:: 1.4 

23 """ 

24 name = 'Factor' 

25 url = 'http://factorcode.org' 

26 aliases = ['factor'] 

27 filenames = ['*.factor'] 

28 mimetypes = ['text/x-factor'] 

29 

30 builtin_kernel = words(( 

31 '-rot', '2bi', '2bi@', '2bi*', '2curry', '2dip', '2drop', '2dup', '2keep', '2nip', 

32 '2over', '2tri', '2tri@', '2tri*', '3bi', '3curry', '3dip', '3drop', '3dup', '3keep', 

33 '3tri', '4dip', '4drop', '4dup', '4keep', '<wrapper>', '=', '>boolean', 'clone', 

34 '?', '?execute', '?if', 'and', 'assert', 'assert=', 'assert?', 'bi', 'bi-curry', 

35 'bi-curry@', 'bi-curry*', 'bi@', 'bi*', 'boa', 'boolean', 'boolean?', 'both?', 

36 'build', 'call', 'callstack', 'callstack>array', 'callstack?', 'clear', '(clone)', 

37 'compose', 'compose?', 'curry', 'curry?', 'datastack', 'die', 'dip', 'do', 'drop', 

38 'dup', 'dupd', 'either?', 'eq?', 'equal?', 'execute', 'hashcode', 'hashcode*', 

39 'identity-hashcode', 'identity-tuple', 'identity-tuple?', 'if', 'if*', 

40 'keep', 'loop', 'most', 'new', 'nip', 'not', 'null', 'object', 'or', 'over', 

41 'pick', 'prepose', 'retainstack', 'rot', 'same?', 'swap', 'swapd', 'throw', 

42 'tri', 'tri-curry', 'tri-curry@', 'tri-curry*', 'tri@', 'tri*', 'tuple', 

43 'tuple?', 'unless', 'unless*', 'until', 'when', 'when*', 'while', 'with', 

44 'wrapper', 'wrapper?', 'xor'), suffix=r'(\s+)') 

45 

46 builtin_assocs = words(( 

47 '2cache', '<enum>', '>alist', '?at', '?of', 'assoc', 'assoc-all?', 

48 'assoc-any?', 'assoc-clone-like', 'assoc-combine', 'assoc-diff', 

49 'assoc-diff!', 'assoc-differ', 'assoc-each', 'assoc-empty?', 

50 'assoc-filter', 'assoc-filter!', 'assoc-filter-as', 'assoc-find', 

51 'assoc-hashcode', 'assoc-intersect', 'assoc-like', 'assoc-map', 

52 'assoc-map-as', 'assoc-partition', 'assoc-refine', 'assoc-size', 

53 'assoc-stack', 'assoc-subset?', 'assoc-union', 'assoc-union!', 

54 'assoc=', 'assoc>map', 'assoc?', 'at', 'at+', 'at*', 'cache', 'change-at', 

55 'clear-assoc', 'delete-at', 'delete-at*', 'enum', 'enum?', 'extract-keys', 

56 'inc-at', 'key?', 'keys', 'map>assoc', 'maybe-set-at', 'new-assoc', 'of', 

57 'push-at', 'rename-at', 'set-at', 'sift-keys', 'sift-values', 'substitute', 

58 'unzip', 'value-at', 'value-at*', 'value?', 'values', 'zip'), suffix=r'(\s+)') 

59 

60 builtin_combinators = words(( 

61 '2cleave', '2cleave>quot', '3cleave', '3cleave>quot', '4cleave', 

62 '4cleave>quot', 'alist>quot', 'call-effect', 'case', 'case-find', 

63 'case>quot', 'cleave', 'cleave>quot', 'cond', 'cond>quot', 'deep-spread>quot', 

64 'execute-effect', 'linear-case-quot', 'no-case', 'no-case?', 'no-cond', 

65 'no-cond?', 'recursive-hashcode', 'shallow-spread>quot', 'spread', 

66 'to-fixed-point', 'wrong-values', 'wrong-values?'), suffix=r'(\s+)') 

67 

68 builtin_math = words(( 

69 '-', '/', '/f', '/i', '/mod', '2/', '2^', '<', '<=', '<fp-nan>', '>', 

70 '>=', '>bignum', '>fixnum', '>float', '>integer', '(all-integers?)', 

71 '(each-integer)', '(find-integer)', '*', '+', '?1+', 

72 'abs', 'align', 'all-integers?', 'bignum', 'bignum?', 'bit?', 'bitand', 

73 'bitnot', 'bitor', 'bits>double', 'bits>float', 'bitxor', 'complex', 

74 'complex?', 'denominator', 'double>bits', 'each-integer', 'even?', 

75 'find-integer', 'find-last-integer', 'fixnum', 'fixnum?', 'float', 

76 'float>bits', 'float?', 'fp-bitwise=', 'fp-infinity?', 'fp-nan-payload', 

77 'fp-nan?', 'fp-qnan?', 'fp-sign', 'fp-snan?', 'fp-special?', 

78 'if-zero', 'imaginary-part', 'integer', 'integer>fixnum', 

79 'integer>fixnum-strict', 'integer?', 'log2', 'log2-expects-positive', 

80 'log2-expects-positive?', 'mod', 'neg', 'neg?', 'next-float', 

81 'next-power-of-2', 'number', 'number=', 'number?', 'numerator', 'odd?', 

82 'out-of-fixnum-range', 'out-of-fixnum-range?', 'power-of-2?', 

83 'prev-float', 'ratio', 'ratio?', 'rational', 'rational?', 'real', 

84 'real-part', 'real?', 'recip', 'rem', 'sgn', 'shift', 'sq', 'times', 

85 'u<', 'u<=', 'u>', 'u>=', 'unless-zero', 'unordered?', 'when-zero', 

86 'zero?'), suffix=r'(\s+)') 

87 

88 builtin_sequences = words(( 

89 '1sequence', '2all?', '2each', '2map', '2map-as', '2map-reduce', '2reduce', 

90 '2selector', '2sequence', '3append', '3append-as', '3each', '3map', '3map-as', 

91 '3sequence', '4sequence', '<repetition>', '<reversed>', '<slice>', '?first', 

92 '?last', '?nth', '?second', '?set-nth', 'accumulate', 'accumulate!', 

93 'accumulate-as', 'all?', 'any?', 'append', 'append!', 'append-as', 

94 'assert-sequence', 'assert-sequence=', 'assert-sequence?', 

95 'binary-reduce', 'bounds-check', 'bounds-check?', 'bounds-error', 

96 'bounds-error?', 'but-last', 'but-last-slice', 'cartesian-each', 

97 'cartesian-map', 'cartesian-product', 'change-nth', 'check-slice', 

98 'check-slice-error', 'clone-like', 'collapse-slice', 'collector', 

99 'collector-for', 'concat', 'concat-as', 'copy', 'count', 'cut', 'cut-slice', 

100 'cut*', 'delete-all', 'delete-slice', 'drop-prefix', 'each', 'each-from', 

101 'each-index', 'empty?', 'exchange', 'filter', 'filter!', 'filter-as', 'find', 

102 'find-from', 'find-index', 'find-index-from', 'find-last', 'find-last-from', 

103 'first', 'first2', 'first3', 'first4', 'flip', 'follow', 'fourth', 'glue', 'halves', 

104 'harvest', 'head', 'head-slice', 'head-slice*', 'head*', 'head?', 

105 'if-empty', 'immutable', 'immutable-sequence', 'immutable-sequence?', 

106 'immutable?', 'index', 'index-from', 'indices', 'infimum', 'infimum-by', 

107 'insert-nth', 'interleave', 'iota', 'iota-tuple', 'iota-tuple?', 'join', 

108 'join-as', 'last', 'last-index', 'last-index-from', 'length', 'lengthen', 

109 'like', 'longer', 'longer?', 'longest', 'map', 'map!', 'map-as', 'map-find', 

110 'map-find-last', 'map-index', 'map-integers', 'map-reduce', 'map-sum', 

111 'max-length', 'member-eq?', 'member?', 'midpoint@', 'min-length', 

112 'mismatch', 'move', 'new-like', 'new-resizable', 'new-sequence', 

113 'non-negative-integer-expected', 'non-negative-integer-expected?', 

114 'nth', 'nths', 'pad-head', 'pad-tail', 'padding', 'partition', 'pop', 'pop*', 

115 'prefix', 'prepend', 'prepend-as', 'produce', 'produce-as', 'product', 'push', 

116 'push-all', 'push-either', 'push-if', 'reduce', 'reduce-index', 'remove', 

117 'remove!', 'remove-eq', 'remove-eq!', 'remove-nth', 'remove-nth!', 'repetition', 

118 'repetition?', 'replace-slice', 'replicate', 'replicate-as', 'rest', 

119 'rest-slice', 'reverse', 'reverse!', 'reversed', 'reversed?', 'second', 

120 'selector', 'selector-for', 'sequence', 'sequence-hashcode', 'sequence=', 

121 'sequence?', 'set-first', 'set-fourth', 'set-last', 'set-length', 'set-nth', 

122 'set-second', 'set-third', 'short', 'shorten', 'shorter', 'shorter?', 

123 'shortest', 'sift', 'slice', 'slice-error', 'slice-error?', 'slice?', 

124 'snip', 'snip-slice', 'start', 'start*', 'subseq', 'subseq?', 'suffix', 

125 'suffix!', 'sum', 'sum-lengths', 'supremum', 'supremum-by', 'surround', 'tail', 

126 'tail-slice', 'tail-slice*', 'tail*', 'tail?', 'third', 'trim', 

127 'trim-head', 'trim-head-slice', 'trim-slice', 'trim-tail', 'trim-tail-slice', 

128 'unclip', 'unclip-last', 'unclip-last-slice', 'unclip-slice', 'unless-empty', 

129 'virtual-exemplar', 'virtual-sequence', 'virtual-sequence?', 'virtual@', 

130 'when-empty'), suffix=r'(\s+)') 

131 

132 builtin_namespaces = words(( 

133 '+@', 'change', 'change-global', 'counter', 'dec', 'get', 'get-global', 

134 'global', 'inc', 'init-namespaces', 'initialize', 'is-global', 'make-assoc', 

135 'namespace', 'namestack', 'off', 'on', 'set', 'set-global', 'set-namestack', 

136 'toggle', 'with-global', 'with-scope', 'with-variable', 'with-variables'), 

137 suffix=r'(\s+)') 

138 

139 builtin_arrays = words(( 

140 '1array', '2array', '3array', '4array', '<array>', '>array', 'array', 

141 'array?', 'pair', 'pair?', 'resize-array'), suffix=r'(\s+)') 

142 

143 builtin_io = words(( 

144 '(each-stream-block-slice)', '(each-stream-block)', 

145 '(stream-contents-by-block)', '(stream-contents-by-element)', 

146 '(stream-contents-by-length-or-block)', 

147 '(stream-contents-by-length)', '+byte+', '+character+', 

148 'bad-seek-type', 'bad-seek-type?', 'bl', 'contents', 'each-block', 

149 'each-block-size', 'each-block-slice', 'each-line', 'each-morsel', 

150 'each-stream-block', 'each-stream-block-slice', 'each-stream-line', 

151 'error-stream', 'flush', 'input-stream', 'input-stream?', 

152 'invalid-read-buffer', 'invalid-read-buffer?', 'lines', 'nl', 

153 'output-stream', 'output-stream?', 'print', 'read', 'read-into', 

154 'read-partial', 'read-partial-into', 'read-until', 'read1', 'readln', 

155 'seek-absolute', 'seek-absolute?', 'seek-end', 'seek-end?', 

156 'seek-input', 'seek-output', 'seek-relative', 'seek-relative?', 

157 'stream-bl', 'stream-contents', 'stream-contents*', 'stream-copy', 

158 'stream-copy*', 'stream-element-type', 'stream-flush', 

159 'stream-length', 'stream-lines', 'stream-nl', 'stream-print', 

160 'stream-read', 'stream-read-into', 'stream-read-partial', 

161 'stream-read-partial-into', 'stream-read-partial-unsafe', 

162 'stream-read-unsafe', 'stream-read-until', 'stream-read1', 

163 'stream-readln', 'stream-seek', 'stream-seekable?', 'stream-tell', 

164 'stream-write', 'stream-write1', 'tell-input', 'tell-output', 

165 'with-error-stream', 'with-error-stream*', 'with-error>output', 

166 'with-input-output+error-streams', 

167 'with-input-output+error-streams*', 'with-input-stream', 

168 'with-input-stream*', 'with-output-stream', 'with-output-stream*', 

169 'with-output>error', 'with-output+error-stream', 

170 'with-output+error-stream*', 'with-streams', 'with-streams*', 

171 'write', 'write1'), suffix=r'(\s+)') 

172 

173 builtin_strings = words(( 

174 '1string', '<string>', '>string', 'resize-string', 'string', 

175 'string?'), suffix=r'(\s+)') 

176 

177 builtin_vectors = words(( 

178 '1vector', '<vector>', '>vector', '?push', 'vector', 'vector?'), 

179 suffix=r'(\s+)') 

180 

181 builtin_continuations = words(( 

182 '<condition>', '<continuation>', '<restart>', 'attempt-all', 

183 'attempt-all-error', 'attempt-all-error?', 'callback-error-hook', 

184 'callcc0', 'callcc1', 'cleanup', 'compute-restarts', 'condition', 

185 'condition?', 'continuation', 'continuation?', 'continue', 

186 'continue-restart', 'continue-with', 'current-continuation', 

187 'error', 'error-continuation', 'error-in-thread', 'error-thread', 

188 'ifcc', 'ignore-errors', 'in-callback?', 'original-error', 'recover', 

189 'restart', 'restart?', 'restarts', 'rethrow', 'rethrow-restarts', 

190 'return', 'return-continuation', 'thread-error-hook', 'throw-continue', 

191 'throw-restarts', 'with-datastack', 'with-return'), suffix=r'(\s+)') 

192 

193 tokens = { 

194 'root': [ 

195 # factor allows a file to start with a shebang 

196 (r'#!.*$', Comment.Preproc), 

197 default('base'), 

198 ], 

199 'base': [ 

200 (r'\s+', Whitespace), 

201 

202 # defining words 

203 (r'((?:MACRO|MEMO|TYPED)?:[:]?)(\s+)(\S+)', 

204 bygroups(Keyword, Whitespace, Name.Function)), 

205 (r'(M:[:]?)(\s+)(\S+)(\s+)(\S+)', 

206 bygroups(Keyword, Whitespace, Name.Class, Whitespace, 

207 Name.Function)), 

208 (r'(C:)(\s+)(\S+)(\s+)(\S+)', 

209 bygroups(Keyword, Whitespace, Name.Function, Whitespace, 

210 Name.Class)), 

211 (r'(GENERIC:)(\s+)(\S+)', 

212 bygroups(Keyword, Whitespace, Name.Function)), 

213 (r'(HOOK:|GENERIC#)(\s+)(\S+)(\s+)(\S+)', 

214 bygroups(Keyword, Whitespace, Name.Function, Whitespace, 

215 Name.Function)), 

216 (r'(\()(\s)', bygroups(Name.Function, Whitespace), 'stackeffect'), 

217 (r'(;)(\s)', bygroups(Keyword, Whitespace)), 

218 

219 # imports and namespaces 

220 (r'(USING:)(\s+)', 

221 bygroups(Keyword.Namespace, Whitespace), 'vocabs'), 

222 (r'(USE:|UNUSE:|IN:|QUALIFIED:)(\s+)(\S+)', 

223 bygroups(Keyword.Namespace, Whitespace, Name.Namespace)), 

224 (r'(QUALIFIED-WITH:)(\s+)(\S+)(\s+)(\S+)', 

225 bygroups(Keyword.Namespace, Whitespace, Name.Namespace, 

226 Whitespace, Name.Namespace)), 

227 (r'(FROM:|EXCLUDE:)(\s+)(\S+)(\s+=>\s)', 

228 bygroups(Keyword.Namespace, Whitespace, Name.Namespace, 

229 Whitespace), 'words'), 

230 (r'(RENAME:)(\s+)(\S+)(\s+)(\S+)(\s+)(=>)(\s+)(\S+)', 

231 bygroups(Keyword.Namespace, Whitespace, Name.Function, Whitespace, 

232 Name.Namespace, Whitespace, Punctuation, Whitespace, 

233 Name.Function)), 

234 (r'(ALIAS:|TYPEDEF:)(\s+)(\S+)(\s+)(\S+)', 

235 bygroups(Keyword.Namespace, Whitespace, Name.Function, Whitespace, 

236 Name.Function)), 

237 (r'(DEFER:|FORGET:|POSTPONE:)(\s+)(\S+)', 

238 bygroups(Keyword.Namespace, Whitespace, Name.Function)), 

239 

240 # tuples and classes 

241 (r'(TUPLE:|ERROR:)(\s+)(\S+)(\s+)(<)(\s+)(\S+)', 

242 bygroups(Keyword, Whitespace, Name.Class, Whitespace, Punctuation, 

243 Whitespace, Name.Class), 'slots'), 

244 (r'(TUPLE:|ERROR:|BUILTIN:)(\s+)(\S+)', 

245 bygroups(Keyword, Whitespace, Name.Class), 'slots'), 

246 (r'(MIXIN:|UNION:|INTERSECTION:)(\s+)(\S+)', 

247 bygroups(Keyword, Whitespace, Name.Class)), 

248 (r'(PREDICATE:)(\s+)(\S+)(\s+)(<)(\s+)(\S+)', 

249 bygroups(Keyword, Whitespace, Name.Class, Whitespace, 

250 Punctuation, Whitespace, Name.Class)), 

251 (r'(C:)(\s+)(\S+)(\s+)(\S+)', 

252 bygroups(Keyword, Whitespace, Name.Function, Whitespace, Name.Class)), 

253 (r'(INSTANCE:)(\s+)(\S+)(\s+)(\S+)', 

254 bygroups(Keyword, Whitespace, Name.Class, Whitespace, Name.Class)), 

255 (r'(SLOT:)(\s+)(\S+)', bygroups(Keyword, Whitespace, Name.Function)), 

256 (r'(SINGLETON:)(\s+)(\S+)', bygroups(Keyword, Whitespace, Name.Class)), 

257 (r'SINGLETONS:', Keyword, 'classes'), 

258 

259 # other syntax 

260 (r'(CONSTANT:|SYMBOL:|MAIN:|HELP:)(\s+)(\S+)', 

261 bygroups(Keyword, Whitespace, Name.Function)), 

262 (r'(SYMBOLS:)(\s+)', bygroups(Keyword, Whitespace), 'words'), 

263 (r'(SYNTAX:)(\s+)', bygroups(Keyword, Whitespace)), 

264 (r'(ALIEN:)(\s+)', bygroups(Keyword, Whitespace)), 

265 (r'(STRUCT:)(\s+)(\S+)', bygroups(Keyword, Whitespace, Name.Class)), 

266 (r'(FUNCTION:)(\s+)' 

267 r'(\S+)(\s+)(\S+)(\s+)' 

268 r'(\()(\s+)([^)]+)(\))(\s)', 

269 bygroups(Keyword.Namespace, Whitespace, 

270 Text, Whitespace, Name.Function, Whitespace, 

271 Punctuation, Whitespace, Text, Punctuation, Whitespace)), 

272 (r'(FUNCTION-ALIAS:)(\s+)' 

273 r'(\S+)(\s+)(\S+)(\s+)' 

274 r'(\S+)(\s+)' 

275 r'(\()(\s+)([^)]+)(\))(\s)', 

276 bygroups(Keyword.Namespace, Whitespace, 

277 Text, Whitespace, Name.Function, Whitespace, 

278 Name.Function, Whitespace, 

279 Punctuation, Whitespace, Text, Punctuation, Whitespace)), 

280 

281 # vocab.private 

282 (r'(<PRIVATE|PRIVATE>)(\s)', bygroups(Keyword.Namespace, Whitespace)), 

283 

284 # strings 

285 (r'"""\s(?:.|\n)*?\s"""', String), 

286 (r'"(?:\\\\|\\"|[^"])*"', String), 

287 (r'(\S+")(\s+)((?:\\\\|\\"|[^"])*")', 

288 bygroups(String, Whitespace, String)), 

289 (r'(CHAR:)(\s+)(\\[\\abfnrstv]|[^\\]\S*)(\s)', 

290 bygroups(String.Char, Whitespace, String.Char, Whitespace)), 

291 

292 # comments 

293 (r'!\s+.*$', Comment), 

294 (r'#!\s+.*$', Comment), 

295 (r'/\*\s+(?:.|\n)*?\s\*/', Comment), 

296 

297 # boolean constants 

298 (r'[tf]\b', Name.Constant), 

299 

300 # symbols and literals 

301 (r'[\\$]\s+\S+', Name.Constant), 

302 (r'M\\\s+\S+\s+\S+', Name.Constant), 

303 

304 # numbers 

305 (r'[+-]?(?:[\d,]*\d)?\.(?:\d([\d,]*\d)?)?(?:[eE][+-]?\d+)?\s', Number), 

306 (r'[+-]?\d(?:[\d,]*\d)?(?:[eE][+-]?\d+)?\s', Number), 

307 (r'0x[a-fA-F\d](?:[a-fA-F\d,]*[a-fA-F\d])?(?:p\d([\d,]*\d)?)?\s', Number), 

308 (r'NAN:\s+[a-fA-F\d](?:[a-fA-F\d,]*[a-fA-F\d])?(?:p\d([\d,]*\d)?)?\s', Number), 

309 (r'0b[01]+\s', Number.Bin), 

310 (r'0o[0-7]+\s', Number.Oct), 

311 (r'(?:\d([\d,]*\d)?)?\+\d(?:[\d,]*\d)?/\d(?:[\d,]*\d)?\s', Number), 

312 (r'(?:\-\d([\d,]*\d)?)?\-\d(?:[\d,]*\d)?/\d(?:[\d,]*\d)?\s', Number), 

313 

314 # keywords 

315 (r'(?:deprecated|final|foldable|flushable|inline|recursive)\s', 

316 Keyword), 

317 

318 # builtins 

319 (builtin_kernel, bygroups(Name.Builtin, Whitespace)), 

320 (builtin_assocs, bygroups(Name.Builtin, Whitespace)), 

321 (builtin_combinators, bygroups(Name.Builtin, Whitespace)), 

322 (builtin_math, bygroups(Name.Builtin, Whitespace)), 

323 (builtin_sequences, bygroups(Name.Builtin, Whitespace)), 

324 (builtin_namespaces, bygroups(Name.Builtin, Whitespace)), 

325 (builtin_arrays, bygroups(Name.Builtin, Whitespace)), 

326 (builtin_io, bygroups(Name.Builtin, Whitespace)), 

327 (builtin_strings, bygroups(Name.Builtin, Whitespace)), 

328 (builtin_vectors, bygroups(Name.Builtin, Whitespace)), 

329 (builtin_continuations, bygroups(Name.Builtin, Whitespace)), 

330 

331 # everything else is text 

332 (r'\S+', Text), 

333 ], 

334 'stackeffect': [ 

335 (r'\s+', Whitespace), 

336 (r'(\()(\s+)', bygroups(Name.Function, Whitespace), 'stackeffect'), 

337 (r'(\))(\s+)', bygroups(Name.Function, Whitespace), '#pop'), 

338 (r'(--)(\s+)', bygroups(Name.Function, Whitespace)), 

339 (r'\S+', Name.Variable), 

340 ], 

341 'slots': [ 

342 (r'\s+', Whitespace), 

343 (r'(;)(\s+)', bygroups(Keyword, Whitespace), '#pop'), 

344 (r'(\{)(\s+)(\S+)(\s+)([^}]+)(\s+)(\})(\s+)', 

345 bygroups(Text, Whitespace, Name.Variable, Whitespace, 

346 Text, Whitespace, Text, Whitespace)), 

347 (r'\S+', Name.Variable), 

348 ], 

349 'vocabs': [ 

350 (r'\s+', Whitespace), 

351 (r'(;)(\s+)', bygroups(Keyword, Whitespace), '#pop'), 

352 (r'\S+', Name.Namespace), 

353 ], 

354 'classes': [ 

355 (r'\s+', Whitespace), 

356 (r'(;)(\s+)', bygroups(Keyword, Whitespace), '#pop'), 

357 (r'\S+', Name.Class), 

358 ], 

359 'words': [ 

360 (r'\s+', Whitespace), 

361 (r'(;)(\s+)', bygroups(Keyword, Whitespace), '#pop'), 

362 (r'\S+', Name.Function), 

363 ], 

364 }