Skip to content

Commit

Permalink
use POSIX character set notation in sed
Browse files Browse the repository at this point in the history
  • Loading branch information
lyokha committed Oct 9, 2024
1 parent 29d7739 commit 70ea27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandoc/vimhl_latex_tmpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ fi
if [ -n "$HLCOMPAT" ] ; then
CRPL=$(echo -e '```c\n```' |
pandoc -tlatex -fmarkdown --highlight-style="$HL_STYLE" --standalone |
sed -n '/^\\newcommand{\\\w\+Tok}/{s/$/\\/; s/\\./\\&/gp}')
sed -n '/^\\newcommand{\\[[:alpha:]]\+Tok}/{s/$/\\/; s/\\./\\&/gp}')
[ -n "$CRPL" ] && CRPL=$CRPL$'\n'
RPL=$RPL$CRPL
fi
Expand Down

0 comments on commit 70ea27e

Please sign in to comment.