~ubuntu-branches/ubuntu/intrepid/mit-scheme/intrepid-updates

« back to all changes in this revision

Viewing changes to src/edwin/htmlmode.scm

  • Committer: Bazaar Package Importer
  • Author(s): Chris Hanson
  • Date: 2005-01-18 00:33:57 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050118003357-pv3i8iqlm5m80tl5
Tags: 7.7.90-5
* Add "libx11-dev" to build-depends.  (closes: Bug#290845)
* Fix debian/control and debian/menu to eliminate some lintian errors
  and warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
;;; -*-Scheme-*-
2
 
;;;
3
 
;;; $Id: htmlmode.scm,v 1.5 2001/12/18 22:12:18 cph Exp $
4
 
;;;
5
 
;;; Copyright (c) 1999-2001 Massachusetts Institute of Technology
6
 
;;;
7
 
;;; This program is free software; you can redistribute it and/or
8
 
;;; modify it under the terms of the GNU General Public License as
9
 
;;; published by the Free Software Foundation; either version 2 of the
10
 
;;; License, or (at your option) any later version.
11
 
;;;
12
 
;;; This program is distributed in the hope that it will be useful,
13
 
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
;;; General Public License for more details.
16
 
;;;
17
 
;;; You should have received a copy of the GNU General Public License
18
 
;;; along with this program; if not, write to the Free Software
19
 
;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
 
;;; 02111-1307, USA.
 
1
#| -*-Scheme-*-
 
2
 
 
3
$Id: htmlmode.scm,v 1.10 2003/08/19 01:05:46 cph Exp $
 
4
 
 
5
Copyright 1999,2000,2001,2002,2003 Massachusetts Institute of Technology
 
6
 
 
7
This file is part of MIT/GNU Scheme.
 
8
 
 
9
MIT/GNU Scheme is free software; you can redistribute it and/or modify
 
10
it under the terms of the GNU General Public License as published by
 
11
the Free Software Foundation; either version 2 of the License, or (at
 
12
your option) any later version.
 
13
 
 
14
MIT/GNU Scheme is distributed in the hope that it will be useful, but
 
15
WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
General Public License for more details.
 
18
 
 
19
You should have received a copy of the GNU General Public License
 
20
along with MIT/GNU Scheme; if not, write to the Free Software
 
21
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
22
USA.
 
23
 
 
24
|#
21
25
 
22
26
;;;; Major Mode for HTML
23
27
 
66
70
 
67
71
(define html-syntax-table
68
72
  (let ((syntax-table (make-char-syntax-table text-mode:syntax-table)))
69
 
    (set-char-syntax! syntax-table #\< "(>1")
70
 
    (set-char-syntax! syntax-table #\! ". 2")
71
 
    (set-char-syntax! syntax-table #\- "_ 3")
72
 
    (set-char-syntax! syntax-table #\> ")<4")
 
73
    (set-char-syntax! syntax-table #\< "(>")
 
74
    (set-char-syntax! syntax-table #\! ". ")
 
75
    (set-char-syntax! syntax-table #\- "_ 1234")
 
76
    (set-char-syntax! syntax-table #\> ")<")
73
77
    (set-char-syntax! syntax-table #\" "\"\"")
 
78
    (set-char-syntax! syntax-table #\. "_")
 
79
    (set-char-syntax! syntax-table #\_ "_")
 
80
    (set-char-syntax! syntax-table #\: "_")
74
81
    syntax-table))
75
82
 
76
83
(define (html-comment-locate mark)