" vim:tabstop=2:shiftwidth=2:expandtab:foldmethod=marker:textwidth=79 " Vimwiki syntax file " Desc: Defines default syntax " Home: https://github.com/vimwiki/vimwiki/ " s:default_syntax is kind of a reference to the dict in " g:vimwiki_syntax_variables['default']. It is used here simply as an " abbreviation for the latter. let s:default_syntax = g:vimwiki_syntax_variables['default'] " text: $ equation_inline $ let s:default_syntax.rxEqIn = '\$[^$`]\+\$' let s:default_syntax.char_eqin = '\$' " text: *strong* " let s:default_syntax.rxBold = '\*[^*]\+\*' let s:default_syntax.rxBold = '\%(^\|\s\|[[:punct:]]\)\@<='. \'\*'. \'\%([^*`[:space:]][^*`]*[^*`[:space:]]\|[^*`[:space:]]\)'. \'\*'. \'\%([[:punct:]]\|\s\|$\)\@=' let s:default_syntax.char_bold = '*' " text: _emphasis_ " let s:default_syntax.rxItalic = '_[^_]\+_' let s:default_syntax.rxItalic = '\%(^\|\s\|[[:punct:]]\)\@<='. \'_'. \'\%([^_`[:space:]][^_`]*[^_`[:space:]]\|[^_`[:space:]]\)'. \'_'. \'\%([[:punct:]]\|\s\|$\)\@=' let s:default_syntax.char_italic = '_' " text: *_bold italic_* or _*italic bold*_ let s:default_syntax.rxBoldItalic = '\%(^\|\s\|[[:punct:]]\)\@<='. \'\*_'. \'\%([^*_`[:space:]][^*_`]*[^*_`[:space:]]\|[^*_`[:space:]]\)'. \'_\*'. \'\%([[:punct:]]\|\s\|$\)\@=' let s:default_syntax.char_bolditalic = '\*_' let s:default_syntax.rxItalicBold = '\%(^\|\s\|[[:punct:]]\)\@<='. \'_\*'. \'\%([^*_`[:space:]][^*_`]*[^*_`[:space:]]\|[^*_`[:space:]]\)'. \'\*_'. \'\%([[:punct:]]\|\s\|$\)\@=' let s:default_syntax.char_italicbold = '_\*' " text: `code` let s:default_syntax.rxCode = '`[^`]\+`' let s:default_syntax.char_code = '`' " text: ~~deleted text~~ let s:default_syntax.rxDelText = '\~\~[^~`]\+\~\~' let s:default_syntax.char_deltext = '\~\~' " text: ^superscript^ let s:default_syntax.rxSuperScript = '\^[^^`]\+\^' let s:default_syntax.char_superscript = '^' " text: ,,subscript,, let s:default_syntax.rxSubScript = ',,[^,`]\+,,' let s:default_syntax.char_subscript = ',,' " generic headers let s:default_syntax.rxH = '=' let s:default_syntax.symH = 1 "