--- name: TXT2TAGS fileTypes: - t2t scopeName: source.t2t foldingStartMarker: ^[^#]\s*.*:(\s*\[?| &.+)?$ expressions: patt_img : '(\[)([\w_,.+%$#@!?+~/-]+\.(png|PNG|jpe?g|JPE?G|gif|GIF|eps|EPS|bmp|BMP))(\])' proto : '(https?|ftp|news|telnet|gopher|wais)://' guess : '(www[23]?|ftp)\.' login : 'A-Za-z0-9_.-' pass : '[^ @]*' chars : 'A-Za-z0-9%._/~:,=$@&+-' anchor : 'A-Za-z0-9%._-' form : 'A-Za-z0-9/%&=+;.,$@*_-' punct : '.,;:!?' patt_url_login : '([(?#login)]+(:(?#pass))?@)?' retxt_url : '\b((?#proto)(?#patt_url_login)|(?#guess))[(?#chars)]+\b/*(\?[(?#form)]+)?(#[(?#anchor)]*)?' retxt_url_local : '[(?#chars)]+|[(?#chars)]*(#[(?#anchor)]*)' patt_email : '\b[(?#login)]+@([A-Za-z0-9_-]+\.)+[A-Za-z]{2,4}\b(\?[(?#form)]+)?' patterns: - contentName: markup.other.paragraph begin: ^\s*^ *(?!```|"""|%|\t|\+|=|-|:|\s) end: ([\n\r])(\s*[\n\r]|\t|"""(?!")|```(?!`)|=|-) endCaptures: "1": { name: line.blank } - contentName: markup.raw.verbatim.block begin: ^(```)([ \t]*[\n\r]) end: ^(```)([ \t]*[\n\r]) captures: "1": { name: keyword.other.marker.verbatim } "2": { name: line.blank } - contentName: markup.raw.block begin: ^(""")\s*$ end: ^(""")\s*$ captures: "1": { name: keyword.other.marker.raw } - name: comment.block begin: ^%%%\s*$ end: ^%%%\s*$ - match: ^(\t+)(.+?\n) captures: "1": { name: keyword.other.marker.quote } "2": { name: markup.quote.line } - match: ((?\[)(?