Skip to content

Commit 70ea27e

Browse files
committed
use POSIX character set notation in sed
1 parent 29d7739 commit 70ea27e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandoc/vimhl_latex_tmpl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ fi
188188
if [ -n "$HLCOMPAT" ] ; then
189189
CRPL=$(echo -e '```c\n```' |
190190
pandoc -tlatex -fmarkdown --highlight-style="$HL_STYLE" --standalone |
191-
sed -n '/^\\newcommand{\\\w\+Tok}/{s/$/\\/; s/\\./\\&/gp}')
191+
sed -n '/^\\newcommand{\\[[:alpha:]]\+Tok}/{s/$/\\/; s/\\./\\&/gp}')
192192
[ -n "$CRPL" ] && CRPL=$CRPL$'\n'
193193
RPL=$RPL$CRPL
194194
fi

0 commit comments

Comments
 (0)