File: quote.lsed

package info (click to toggle)
stx2any 1.56-2.3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 748 kB
  • sloc: sh: 312; python: 288; lisp: 137; makefile: 126; sed: 1
file content (22 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
This file is copyright (c) 2004,2005,2006 by Panu Kalliokoski
and released under the license in ../LICENSE

Quoting of possible special characters.
{{{
s#<#`'w_lt`'#g
s#>#`'w_gt`'#g
s#&#`'w_amp`'#g
s#^\.#w_bldot`'#
s#^'#w_blap`'#
s#\\#`'w_bs`'#g
s#{#`'w_obr`'#g
s#|#`'w_bar`'#g
s#}#`'w_cbr`'#g
s#\^#`'w_ct`'#g
s#~#`'w_td`'#g
s/\([^,]\)#/\1`'w_hs`'/g
s#%#`'w_pct`'#g
}}}

The special case of ''w_hs'' is because numbered lists put it in the
call of w_item.