Skip to content

Commit

Permalink
SNP: Fix tex/lstinput syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHermitte committed Jan 24, 2025
1 parent b830dc5 commit 63876d2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions after/template/tex/lstinput.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ VimL: let s:value_end = s:value_start
VimL: let s:marker_open = '{+'
VimL: let s:marker_close = '+}'
VimL: let s:reindent = 1
VimL: let s:params = s:Surround(2, s:Param("params", lh#option#unset()))
VimL: let s:params2 = lh#option#is_set(s:params) ? '[' . s:params . ']' : lh#marker#txt('[basicstyle=\tiny]')
VimL: let s:file = s:Surround(1, s:Param("file", lh#marker#txt('file')))
\lstinputlisting{+ s:params2 +}{{+s:file+}}
VimL: unlet s:params
VimL: unlet s:params2
VimL: unlet s:file
MuT: let s:params = s:Surround(2, s:Param("params", lh#option#unset()))
MuT: let s:params2 = lh#option#is_set(s:params) ? '[' . s:params . ']' : lh#marker#txt('[basicstyle=\tiny]')
MuT: let s:file = s:Surround(1, s:Param("file", lh#marker#txt('file')))
\lstinputlisting{+s:params2+}{{+s:file+}}

0 comments on commit 63876d2

Please sign in to comment.