| # Skip text characters for text token, place those to pending buffer |
| # and increment current pos |
| from .state_inline import StateInline |
| # '{}$%@~+=:' reserved for extentions |
| # !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \, ], ^, _, `, {, |, }, or ~ |
| # !!!! Don't confuse with "Markdown ASCII Punctuation" chars |
| # http://spec.commonmark.org/0.15/#ascii-punctuation-character |
| def isTerminatorChar(ch): |
| def text(state: StateInline, silent: bool, **args): |
| while (pos < posMax) and not isTerminatorChar(state.srcCharCode[pos]): |
| state.pending += state.src[state.pos : pos] |