File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ import autoload '../../lib/utils.vim'
77
88links.GenerateLinksDict ()
99
10- var code_regex = ' \v(\\|`)@<!``@!'
10+ export var code_regex = ' \v(\\|`)@<!``@!'
1111# var italic_regex = ' \v(\\|\*)@<!\*\*@!'
1212# The following picks standalone * and the last * of \* *
1313# It excludes escaped * (i .e . \*\*\* , and sequences like **** )
14- var italic_regex = ' \v((\\|\*)@<!|(\\\*)@<=)\*\*@!'
15- var bold_regex = ' \v(\\|\*)@<!\*\*\*@!'
16- var strikethrough_regex = ' \v(\\|\~)@<!\~\~\~@!'
14+ export var italic_regex = ' \v((\\|\*)@<!|(\\\*)@<=)\*\*@!'
15+ export var bold_regex = ' \v(\\|\*)@<!\*\*\*@!'
16+ export var strikethrough_regex = ' \v(\\|\~)@<!\~\~\~@!'
1717
1818var text_style_dict = {' `' : code_regex,
1919 ' *' : italic_regex,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ type "%VIMRC%"
3333echo/
3434
3535REM Run Vim with the specified configuration and additional commands
36- SET " TEST_FILES = ['test_markdown_extras.vim', 'test_utils.vim']"
36+ SET " TEST_FILES = ['test_markdown_extras.vim', 'test_utils.vim', 'test_regex.vim' ]"
3737%VIM_CMD% -c " vim9cmd g:TestFiles = %TEST_FILES% " -S " runner.vim"
3838REM If things go wrong uncomment the following line and see e.g. if the
3939REM vimrc_for_test is valid, check :messages and so on.
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ echo ""
3737VIM_CMD=" $VIM_PRG --clean -u $VIMRC -i NONE --not-a-term"
3838
3939# Add test files here:
40- TESTS=(' test_markdown_extras.vim' ' test_utils.vim' )
40+ TESTS=(' test_markdown_extras.vim' ' test_utils.vim' ' test_regex.vim ' )
4141
4242# convert bash list to Vim list
4343TESTS_STRING=$( printf " '%s', " " ${TESTS[@]} " )
Original file line number Diff line number Diff line change 11vim9script
22
33# The global variable g: TestFiles is a list containing all the tests filenames.
4- if exists (' g:TestFiles' ) == 0
5- g: TestFiles = [' test_markdown_extras.vim' , ' test_utils.vim' ]
4+ if ! exists (' g:TestFiles' )
5+ g: TestFiles = [' test_markdown_extras.vim' , ' test_utils.vim' , ' test_regex.vim ' ]
66endif
77
88delete (' results.txt' )
You can’t perform that action at this time.
0 commit comments