Return a Tokens list from ``text``.
(text)
| 368 | |
| 369 | |
| 370 | def get_tokens(text): |
| 371 | """ |
| 372 | Return a Tokens list from ``text``. |
| 373 | """ |
| 374 | lexer = BashShellLexer() |
| 375 | pygtokens = lexer.get_tokens_unprocessed(text) |
| 376 | return list(Token.from_pygments_tokens(pygtokens)) |
| 377 | |
| 378 | |
| 379 | def parse_shell(text, grammar=variables_grammar, loop=1, trace=TRACE, validate=VALIDATE): |
no test coverage detected