Commit 7f54c0178c3cad26441e2f5804c927eb56b5b783

Allow backquotes to include spaces
No apparent reason to not do this.

Closes #10 on GitHub.

Thanks to mralusw.
Author: xaizek
Author date (UTC): 2024-03-18 22:10
Committer name: xaizek
Committer date (UTC): 2024-03-18 22:10
Parent(s): d702b915d7f1d961a331b3a5b276ef9f8941d178
Signing key: 99DC5E4DB05F6BE2
Tree: fd22c650306d8af30a3f3ad10d23d7d49058bd8e
File Lines added Lines deleted
vimd2h.py 1 1
File vimd2h.py changed (mode: 100755) (index f2541cb..e2136b3)
... ... PAT_HEADER = r'(^.*~$)'
23 23 PAT_GRAPHIC = r'(^.* `$)' PAT_GRAPHIC = r'(^.* `$)'
24 24 PAT_PIPEWORD = r'(?<!\\)\|([#-)!+-~]+)\|' PAT_PIPEWORD = r'(?<!\\)\|([#-)!+-~]+)\|'
25 25 PAT_STARWORD = r'\*([#-)!+-~]+)\*(?:(?=\s)|$)' PAT_STARWORD = r'\*([#-)!+-~]+)\*(?:(?=\s)|$)'
26 PAT_COMMAND = r'`([^` ]+)`'
26 PAT_COMMAND = r'`([^`]+)`'
27 27 PAT_OPTWORD = r"('(?:[a-z]{2,}|t_..)')" PAT_OPTWORD = r"('(?:[a-z]{2,}|t_..)')"
28 28 PAT_CTRL = r'(CTRL-(?:W_)?(?:[\w\[\]^+-<>=@]|<[A-Za-z]+?>)?)' PAT_CTRL = r'(CTRL-(?:W_)?(?:[\w\[\]^+-<>=@]|<[A-Za-z]+?>)?)'
29 29 PAT_SPECIAL = r'(<.*?>|\{.*?}|' \ PAT_SPECIAL = r'(<.*?>|\{.*?}|' \
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vimdoc2html

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vimdoc2html

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master