diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.am | 10 | ||||
-rw-r--r-- | lib/lexers/woman.tes | 20 |
2 files changed, 29 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 53a9be8..a66aaef 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -11,9 +11,12 @@ colorschemedir = $(scitecolibdir)/colors dist_colorscheme_DATA = colors/terminal.tes \ colors/solarized.tes +lexerdir = $(scitecolibdir)/lexers + +# Lexer configurations for language +# syntax highlighting. # This list must be extended when adding # a new lexer configuration: -lexerdir = $(scitecolibdir)/lexers dist_lexer_DATA = lexers/verilog.tes \ lexers/php.tes \ lexers/pascal.tes \ @@ -85,3 +88,8 @@ dist_lexer_DATA = lexers/verilog.tes \ lexers/rust.tes \ lexers/blitzbasic.tes \ lexers/caml.tes + +# This lexer is responsible for styling +# womanpages and is thus useful even when omitting +# the syntax highlighting lexers. +dist_lexer_DATA += lexers/woman.tes diff --git a/lib/lexers/woman.tes b/lib/lexers/woman.tes new file mode 100644 index 0000000..23c6905 --- /dev/null +++ b/lib/lexers/woman.tes @@ -0,0 +1,20 @@ +!* + * Womanpage Lexing: These are internal or third-party + * on-line documentation files used by SciTECO. + * In contrast to normal lexers, Womanpages are styled + * using a SciTECO macro that ships with the woman-page + * document (.woman.tec). + *! + +@[lexer.test.woman]{ + :EN*.womanQ* +} + +@[lexer.set.woman]{ + 1ESSETWRAPMODE + 1ESSETWRAPINDENTMODE + 10,1#4ESSETYCARETPOLICY + 32ESSTYLESETFONTTimes ESSTYLECLEARALL + + 1:EN*Q*.tec"S EMQ*.tec ' +} |