From: Chris Hanson Date: Fri, 16 Jan 2004 19:26:06 +0000 (+0000) Subject: Fix syntax definitions to reflect what the parser does, and simplify X-Git-Tag: 20090517-FFI~1719 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=443c7bed55c8775747ff8d32d52ee11b4245529d;p=mit-scheme.git Fix syntax definitions to reflect what the parser does, and simplify them for clarity. --- diff --git a/v7/src/edwin/schmod.scm b/v7/src/edwin/schmod.scm index 384439ab6..eaaf2ed13 100644 --- a/v7/src/edwin/schmod.scm +++ b/v7/src/edwin/schmod.scm @@ -1,9 +1,9 @@ #| -*-Scheme-*- -$Id: schmod.scm,v 1.67 2003/08/01 19:23:23 cph Exp $ +$Id: schmod.scm,v 1.68 2004/01/16 19:26:06 cph Exp $ Copyright 1986,1989,1990,1991,1992,1998 Massachusetts Institute of Technology -Copyright 2000,2001,2002,2003 Massachusetts Institute of Technology +Copyright 2000,2001,2002,2003,2004 Massachusetts Institute of Technology This file is part of MIT/GNU Scheme. @@ -99,33 +99,45 @@ The following commands evaluate Scheme expressions: (define scheme-mode:syntax-table (make-char-syntax-table)) -(modify-syntax-entries! scheme-mode:syntax-table #\nul #\/ "_") -(modify-syntax-entries! scheme-mode:syntax-table #\: #\@ "_") -(modify-syntax-entries! scheme-mode:syntax-table #\[ #\` "_") -(modify-syntax-entries! scheme-mode:syntax-table #\{ #\rubout "_") - -(set-char-syntax! scheme-mode:syntax-table #\space " ") (set-char-syntax! scheme-mode:syntax-table #\tab " ") -(set-char-syntax! scheme-mode:syntax-table #\page " ") -(set-char-syntax! scheme-mode:syntax-table #\[ "(]") -(set-char-syntax! scheme-mode:syntax-table #\] ")[") -(set-char-syntax! scheme-mode:syntax-table #\{ "(}") -(set-char-syntax! scheme-mode:syntax-table #\} "){") -(set-char-syntax! scheme-mode:syntax-table #\| "\" 23") - -(set-char-syntax! scheme-mode:syntax-table #\; "< ") (set-char-syntax! scheme-mode:syntax-table #\newline "> ") +(set-char-syntax! scheme-mode:syntax-table #\page " ") +(set-char-syntax! scheme-mode:syntax-table #\space " ") +(set-char-syntax! scheme-mode:syntax-table #\! "_") +(set-char-syntax! scheme-mode:syntax-table #\" "\" ") +(set-char-syntax! scheme-mode:syntax-table #\# "_ p14") +(set-char-syntax! scheme-mode:syntax-table #\$ "_") +(set-char-syntax! scheme-mode:syntax-table #\% "_") +(set-char-syntax! scheme-mode:syntax-table #\& "_") (set-char-syntax! scheme-mode:syntax-table #\' " p") -(set-char-syntax! scheme-mode:syntax-table #\` " p") -(set-char-syntax! scheme-mode:syntax-table #\, "_ p") +(set-char-syntax! scheme-mode:syntax-table #\( "()") +(set-char-syntax! scheme-mode:syntax-table #\) ")(") +(set-char-syntax! scheme-mode:syntax-table #\* "_") +(set-char-syntax! scheme-mode:syntax-table #\+ "_") +(set-char-syntax! scheme-mode:syntax-table #\, " p") +(set-char-syntax! scheme-mode:syntax-table #\- "_") +(set-char-syntax! scheme-mode:syntax-table #\. "_") +(set-char-syntax! scheme-mode:syntax-table #\/ "_") (set-char-syntax! scheme-mode:syntax-table #\@ "_ p") -(set-char-syntax! scheme-mode:syntax-table #\# "_ p14") -(set-char-syntax! scheme-mode:syntax-table #\" "\" ") +(set-char-syntax! scheme-mode:syntax-table #\: "_") +(set-char-syntax! scheme-mode:syntax-table #\; "< ") +(set-char-syntax! scheme-mode:syntax-table #\< "_") +(set-char-syntax! scheme-mode:syntax-table #\= "_") +(set-char-syntax! scheme-mode:syntax-table #\> "_") +(set-char-syntax! scheme-mode:syntax-table #\? "_") + +(set-char-syntax! scheme-mode:syntax-table #\[ "(]") (set-char-syntax! scheme-mode:syntax-table #\\ "\\ ") -(set-char-syntax! scheme-mode:syntax-table #\( "()") -(set-char-syntax! scheme-mode:syntax-table #\) ")(") +(set-char-syntax! scheme-mode:syntax-table #\] ")[") +(set-char-syntax! scheme-mode:syntax-table #\^ "_") +(set-char-syntax! scheme-mode:syntax-table #\_ "_") +(set-char-syntax! scheme-mode:syntax-table #\` " p") +(set-char-syntax! scheme-mode:syntax-table #\{ "(}") +(set-char-syntax! scheme-mode:syntax-table #\| "\" 23") +(set-char-syntax! scheme-mode:syntax-table #\} "){") +(set-char-syntax! scheme-mode:syntax-table #\? "_") ;;;; Indentation