diff options
| author | Simen Heggestøyl | 2013-06-14 17:37:49 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-06-14 17:37:49 -0700 |
| commit | 12e5e86e89a667a64e2e2b14bc66739339c2cf57 (patch) | |
| tree | 8bd655d8de011e88d1a2b752a7efd892871df36f | |
| parent | 230dcbaf2ff0615d72c5d2ca41edb999b6bc1b87 (diff) | |
| download | emacs-12e5e86e89a667a64e2e2b14bc66739339c2cf57.tar.gz emacs-12e5e86e89a667a64e2e2b14bc66739339c2cf57.zip | |
Add some new scheme features (tiny change)
* lisp/progmodes/scheme.el (scheme-font-lock-keywords-2):
Add export, import, library.
(library): Set indent function.
Fixes: debbugs:9164
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/scheme.el | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2605247244a..783cd2d864b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-06-15 Simen Heggestøyl <simenheg@ifi.uio.no> (tiny change) | ||
| 2 | |||
| 3 | * progmodes/scheme.el (scheme-font-lock-keywords-2): | ||
| 4 | Add export, import, library. (Bug#9164) | ||
| 5 | (library): Set indent function. | ||
| 6 | |||
| 1 | 2013-06-14 Glenn Morris <rgm@gnu.org> | 7 | 2013-06-14 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * term/xterm.el (xterm--query): | 9 | * term/xterm.el (xterm--query): |
diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el index fab20102097..fda7d6b6852 100644 --- a/lisp/progmodes/scheme.el +++ b/lisp/progmodes/scheme.el | |||
| @@ -312,6 +312,8 @@ See `run-hooks'." | |||
| 312 | "call-with-input-file" "call-with-output-file" "case" "cond" | 312 | "call-with-input-file" "call-with-output-file" "case" "cond" |
| 313 | "do" "else" "for-each" "if" "lambda" "λ" | 313 | "do" "else" "for-each" "if" "lambda" "λ" |
| 314 | "let" "let*" "let-syntax" "letrec" "letrec-syntax" | 314 | "let" "let*" "let-syntax" "letrec" "letrec-syntax" |
| 315 | ;; R6RS library subforms. | ||
| 316 | "export" "import" | ||
| 315 | ;; SRFI 11 usage comes up often enough. | 317 | ;; SRFI 11 usage comes up often enough. |
| 316 | "let-values" "let*-values" | 318 | "let-values" "let*-values" |
| 317 | ;; Hannes Haug <hannes.haug@student.uni-tuebingen.de> wants: | 319 | ;; Hannes Haug <hannes.haug@student.uni-tuebingen.de> wants: |
| @@ -330,6 +332,10 @@ See `run-hooks'." | |||
| 330 | ;; | 332 | ;; |
| 331 | ;; Scheme `:' and `#:' keywords as builtins. | 333 | ;; Scheme `:' and `#:' keywords as builtins. |
| 332 | '("\\<#?:\\sw+\\>" . font-lock-builtin-face) | 334 | '("\\<#?:\\sw+\\>" . font-lock-builtin-face) |
| 335 | ;; R6RS library declarations. | ||
| 336 | '("(\\(\\<library\\>\\)\\s-*(?\\(\\sw+\\)?" | ||
| 337 | (1 font-lock-keyword-face) | ||
| 338 | (2 font-lock-type-face)) | ||
| 333 | ))) | 339 | ))) |
| 334 | "Gaudy expressions to highlight in Scheme modes.") | 340 | "Gaudy expressions to highlight in Scheme modes.") |
| 335 | 341 | ||
| @@ -536,6 +542,7 @@ indentation." | |||
| 536 | (put 'letrec-syntax 'scheme-indent-function 1) | 542 | (put 'letrec-syntax 'scheme-indent-function 1) |
| 537 | (put 'syntax-rules 'scheme-indent-function 1) | 543 | (put 'syntax-rules 'scheme-indent-function 1) |
| 538 | (put 'syntax-case 'scheme-indent-function 2) ; not r5rs | 544 | (put 'syntax-case 'scheme-indent-function 2) ; not r5rs |
| 545 | (put 'library 'scheme-indent-function 1) ; R6RS | ||
| 539 | 546 | ||
| 540 | (put 'call-with-input-file 'scheme-indent-function 1) | 547 | (put 'call-with-input-file 'scheme-indent-function 1) |
| 541 | (put 'with-input-from-file 'scheme-indent-function 1) | 548 | (put 'with-input-from-file 'scheme-indent-function 1) |