File: text

package info (click to toggle)
cpphs 1.18.5-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 812 kB
  • ctags: 21
  • sloc: haskell: 1,707; sh: 120; makefile: 49; ansic: 11
file content (14 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Here is some ordinary text with embedded Haskell-ish constructs,
that should however /not/ be interpreted as Haskell if the --text
option is given to cpphs.  For instance, here is a Haskell comment
including a cpp definition: {-
#  define FOO bar
and now we end the comment: -}   and try out the definition:  FOO
Likewise, double and single quotes no longer delimit strings or chars: "
#  define BAZ FOO
and what do we have here?: "  ' BAZ  '

#  define expand(a,b,c)	  Some text including a, the b, and c.
Also, in text-mode, macros should be expanded inside Haskell comments:
    -- expand(this,other,that)
and strings "expand(this,other,that)".